Merged PDF: Losing tags

Could you kindly help with the aspose pdf api for placing (merging) a pdf file at specific location(ex: page numbers) of existing pdf document with out losing tag information.

Testing:

I used below code to merge two pdf documents footnoteleft.pdf (52.1 KB)
endnotenum.pdf (49.8 KB)
The resulted merged document merged.pdf (99.6 KB)
is losing tags for the second document.

PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.setCopyLogicalStructure(true);
pdfEditor.setCopyOutlines(true);
pdfEditor.append(inp2, inp1, 1, 1, out2 );

When I tried with below code using concatenate the merged document preseved the tags.4.pdf (49.9 KB)
conmerged.pdf (129.3 KB)

PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.setCopyLogicalStructure(true);
pdfEditor.setCopyOutlines(true);
pdfEditor.concatenate(“4.pdf”, “4.pdf”, “merged.pdf”);

But we need to place the pdf based on page numbers or somewhere in in middle of the document and need tag information.

Kindly help. Thank you.

@vijji

Thank you for contacting support.

We have been able to reproduce the issue in our environment. A ticket with ID PDFJAVA-38243 has been logged in our issue management system for further investigation and resolution. The ticket ID has been linked with this thread so that you will receive notification as soon as the ticket is resolved.

We are sorry for the inconvenience.