Hello everyone. I'd like to bring your attention to something that might be a bug in PdfSmartCopy (but maybe it's just a feature - who knows?)
Ok, here is the issue (occuring with todays svn snapshot): Merging two Pdfs using PdfSmartCopy corrupts internal links between different pages. This does not happen with when using PdfCopy! Paulo fixed this in PdfCopy.copyIndirect in svn commit number 2627. However PdfSmartCopy duplicates the same code and this specific part was not fixed for PdfSmartCopy. The easiest solution is to copy the missing code from PdfCopy.copyIndirect to PdfSmartCopy.copyIndirect. However preferable would be to modularize copyIndirect in such a way that no code needs to be duplicated. I tried to figure out a solution so I could provide a patch but I utterly failed due to the recursion inside copyIndirect calling copyObject internally together. Maybe someone more into it comes up with a better solution? Best regards, Ludger -- Dipl.-Inf. Ludger Bünger Product Development - - - - - - - - - - - - - - - - RealObjects GmbH Altenkesseler Str. 17/B4 66115 Saarbrücken, Germany Tel +49 (0)681 98579 0 Fax +49 (0)681 98579 29 http://www.realobjects.com [EMAIL PROTECTED] - - - - - - - - - - - - - - - - Commercial Register: Amtsgericht Saarbrücken, HRB 12016 Managing Directors: Michael Jung, Markus Neurohr VAT-ID: DE210373115 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Do you like iText? Buy the iText book: http://www.1t3xt.com/docs/book.php Or leave a tip: https://tipit.to/itexttipjar