Annotation import on compressed/uncompressed file

Which product are you using?
PDF.js Express

PDF.js Express Version

Detailed description of issue
We are working on enabling PDF file compression on large files, and we are wondering whether the same annotations made on uncompressed files will get imported and displayed on the compressed documents as correctly as on the initial document/ uncompressed one.

Expected behaviour
We would like the annotation to be imported and displayed as expected on both compressed and uncompressed documents.

Does your issue happen with every document, or just one?
Will happen on any compressed documents

Link to document
Any compressed/uncompressed PDF document

Code snippet
annotationManager.importAnnotations(xml annotation)

Hello ons.othmen,

Yes, the XFDF standard ensures that annotations should appear the same if imported and exported in the same document, regardless of the PDFs compression.

Best regards,