PDF.js Express Plus 8.x.x.
Detailed description of issue
Tried to download pdf with annotations, xfdfs. It happens every document.
Link to document
Code snippet
WebViewer(…)
.then(instance => {
const { documentViewer, annotationManager } = instance.Core;
// Add header button that will get file data on click
instance.UI.setHeaderItems(header => {
header.push({
type: 'actionButton',
img: '...',
onClick: async () => {
const xfdfString = await annotationManager.exportAnnotations();
const options = {
filename: 'myDocument.pdf',
xfdfString,
downloadType: 'pdf'
};
instance.UI.downloadPdf(options);
}
});
});
})
Would like to know how to download xfdfs.
Thanks in advance.
Heejung