As the title suggests, the pdffileEditor.setMergeDuplicateOutlines(true); discards some bookmarks and only keep the first bookmark. I have attached the files to merge and you can try it using below code:
public static v…...PdfFileEditor editor = new PdfFileEditor(); editor.setMergeDuplicateOut(true);...setMergeDuplicateOut(true); editor.concatenate(in1, in2, out); } bookmark3...