Confirm output of trial form field merger

7.3.2

Detailed description of issue
I just want to quickly confirm that the file being generated by the REST merge API for me is mangling the form fields because it’s a trial version, and not just an issue with my usage or the way my PDF forms are working. Basically the merger works great for annotations and inserted stamps / signatures, but for the form fields that I have populated they appear to pasted on the merged file twice and look terrible. I tried putting fields: false for the options to exportAnnotations, but then the default values were in the form locations rather than the new values… See image below what

Expected behaviour

Does your issue happen with every document, or just one?
Every document done with the forms filled in.

Link to document
See above image

Code snippet
const xfdfString = await viewer.annotManager.exportAnnotations({ links: false, widgets: false });
pdfUtils.setFile(await viewer.docViewer.getDocument().getFileData()).setXFDF(xfdfString);
const response = await pdfUtils.merge();
const mergedFile = await response.getBlob();
await response.deleteFile();

Thank you, I believe this will be a quick answer.

Scott

Hello, I’m Ron, an automated tech support bot :robot:

While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:

Guides:APIs:Forums:

I should also add that when viewed in the WebViewer component before the merge / download is performed, the PDF form fields look as expected:

image

Hey there,

How are you loading the document after you merge the annotations? This is not expected behaviour and it looks like the annotations are being loaded twice. Can you please share a code snippet showing what you do with the document after you get mergedFile?

Thanks!
Logan

Thanks for the feedback, after fiddling further with the merge / set / export /import for the xfdf data the double loading seems to have dissappeared. However, it’s still a bit frustrating trying to debug my code (building a POC with the trial before can get approved to purchase) for the annotation / form fields because I don’t know what falls under the ‘mangled’ according to the documentation for trial version, vs just a mistake in my code or incorrect understanding of the data - is there a list somewhere of what differences between the trial output of the REST API and the complete version (ie. description of ‘mangled’)?

For example, right now the custom text annotation I added is sometimes displayed with various colored backgrounds, sometimes without, and it seems to be at random for me, without changing the file data?

image

That’s one with the colored background, after reloading my page which only triggers a document reload (no saving, the file data is the same), it looks normal again, with no background color.

Any thoughts on this?

Scott