# Merging the XFDF file into a PDF document

**URL:** <https://pdfjs.community/t/merging-the-xfdf-file-into-a-pdf-document/644>\
**Category:** Technical Support\
**Created:** [March 18, 2021, 3:19pm UTC](https://pdfjs.community/t/merging-the-xfdf-file-into-a-pdf-document/644 "2021-03-18T15:19:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![stefans](https://avatars.discourse-cdn.com/v4/letter/s/9d8465/32.png) [@stefans](https://pdfjs.community/u/stefans)\
**Post date:** [March 18, 2021, 3:19pm UTC](https://pdfjs.community/t/merging-the-xfdf-file-into-a-pdf-document/644/1 "2021-03-18T15:19:38Z")

</div>

When i try to merge the XFDF file into a PDF document using Apache PDFBox I cannot see appearance of the Stamp annotation.

I have used the pdfjs express web viewer to create annotations on PDF document. Later, I exported the XFDF file of the created annotations.  
When I try to merge the XFDF file into a PDF document using Apache PDFBox, it does not show the appearance of the Stamp annotations. Same behaviour is observed, when I tried to merge using Adobe Acrobat.  
The sample XFDF file (generated using pdfjs express), PDF document (on which it was created using pdfjs express web viewer) and the output PDF (after merging using Adobe Acrobat) image are attached for your input.

**Expected behaviour**  
I expect to see all annotations on PDF file.

**Link to document**

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/829ea59ac0da1b44b2b8018f5b703426857ab3f5.png)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex031/uploads/pdfjscommunity/original/1X/ffbcd25c7d423db8d5acd5db201c272f4db306dd.png) [@system](https://pdfjs.community/u/system)\
**Post date:** [March 18, 2021, 3:19pm UTC](https://pdfjs.community/t/merging-the-xfdf-file-into-a-pdf-document/644/2 "2021-03-18T15:19:39Z")

</div>

**Hello, I’m an automated tech support bot.**

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

- [Tools.RubberStampCreateTool - getStandardStampAnnotations()](https://pdfjs.express/api/Tools.RubberStampCreateTool.html#getStandardStampAnnotations__anchor)
- [Import & export annotations - Learn more](https://pdfjs.express/documentation/annotation/import-export/overview#learn-more)
- [Import and export annotations using a database](https://pdfjs.express/documentation/annotation/import-export/database)
- [Lower level document APIs - Create documents - Create a PDF Document](https://pdfjs.express/documentation/learn-more/advanced/low-level-api#create-a-pdf-document)
- [PDF.js Express Web Viewer Samples](https://pdfjs.express/documentation/samples)
