Thanks, this works fine...

Best regards,

Ludger

----- Original Message -----
Date: Wed, 9 Apr 2008 22:48:14 +0100
From: "Paulo Soares" <[EMAIL PROTECTED]>
Subject: Re: [iText-questions] PdfSmartCopy corrupting internal links.
To: "Post all your questions about iText here"
        <itext-questions@lists.sourceforge.net>
Message-ID: <[EMAIL PROTECTED]>
Content-Type: text/plain; format=flowed; charset="iso-8859-1";
        reply-type=original

Fixed in the SVN. Please check if it works for you.

Paulo

----- Original Message -----
From: "Ludger Buenger" <[EMAIL PROTECTED]>
To: <itext-questions@lists.sourceforge.net>
Sent: Wednesday, April 09, 2008 6:52 PM
Subject: [iText-questions] PdfSmartCopy corrupting internal links.



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

Reply via email to