We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Merge PDF, bookmark, tag and attachment will be gone if it isn't the 1st PDF to be merged


We are using Aspose.pdf 19.2 and we find that if we merge a PDF file(with a bookmark, tag or attachment in it) with other PDF files, the bookmark, tag or attachment will be gone due to the page number is changed if it isn’t the 1st PDF. If it’s the 1st PDF to be merged, the bookmark, tag and attachment will still be there.

Here’s our code to merge file
// Open first document
Document pdfDocument1 = new Document(“Concat1.pdf”);
// Open second document
Document pdfDocument2 = new Document(“Concat2.pdf”);

// Add pages of second document to the first

// Save concatenated output file

Here’s our test pdf
bookmark_target_attachment_tags.pdf (3.2 MB)

Please have a check. Thanks.


Thanks for contacting support.

We were able to replicate the issue using Aspose.PDF for .NET 19.3 and logged it as PDFNET-46148 in our issue tracking system. We will further look into details of the issue and keep you posted with the status of its correction. Please be patient and spare us little time.

We are sorry for the inconvenience.