I used below code to merge two pdf files.1.PDF (58.2 KB)
Expecting that generated pdf filemerged.pdf (115.5 KB)
will preserve the tags. But we are losing tag information when we create a merged pdf. Kindly help. Thank you.
PdfFileEditor pdfEditor = new PdfFileEditor();
pdfEditor.setCopyLogicalStructure(true);
pdfEditor.setCopyOutlines(true);
pdfEditor.concatenate(“1.pdf”, “1.pdf”, “merged.pdf”);