Which product are you using?
PDF.js Express Plus
PDF.js Express Version
UI Version: 8.7.0
Core Version: 8.7.5
webviewer.min.js: 8.7.5
Detailed description of issue
There are many form fields in my PDF document. When I fill some of them then download, some of fields are not merged into the downloaded version, but some are merged
Expected behaviour
All of field should be merged into my downloaded version.
Does your issue happen with every document, or just one?
Many documents
Link to document
asguard.pdf (73.0 KB)
After downloaded, the “Product Name” field and the “Title” fields are missing value after editting and downloading.
Code snippet
I am using ReactJS and this is my code for download function.
import WebViewer from '@pdftron/pdfjs-express';
import ExpressUtils from '@pdftron/pdfjs-express-utils';
import saveAs from 'file-saver';
const { documentViewer, annotationManager } = instance.Core;
const utils = new ExpressUtils({
serverKey: serverKey,
clientKey: clientKey,
});
const fileData = await documentViewer.getDocument().getFileData({});
const xfdf = await annotationManager.exportAnnotations({});
const resp = await utils.setFile(fileData).setXFDF(xfdf).merge();
const mergedBlob = await resp.getBlob();
saveAs(mergedBlob, attachment.fileName);