Hello:
A week earlier, i posted a query about the following
code that whether we can do that or not. But Paulo
replied that i will need to open another PdfReader
object to successfully complete this task. But he also
told me that he had fixed the code in the CVS
(PdfCopy) which would work even in the following case.
This code does work with the change he did but the
problem is that if my source file contains any links
(not bookmarks), they become dead and do not point to
any target. 

      Document doc = new Document();
      PdfCopy copy = new PdfCopy(doc, new
FileOutputStream("d:\\123.pdf"));
      PdfReader reader = new PdfReader("d:\\12.pdf");
      reader.consolidateNamedDestinations();
      doc.open();
      copy.addPage(copy.getImportedPage(reader,1));
      copy.addPage(copy.getImportedPage(reader,1));
      doc.close();
      copy.close();
      reader.close();

I think its related to that change. Because I have
downloaded the previous version of PdfCopy and it
works fine but some how that "HACK" in PdfCopy seems
to be not working.

Thanks in advance,

Shoaib Ahmad


 
____________________________________________________________________________________
Cheap talk?
Check out Yahoo! Messenger's low PC-to-Phone call rates.
http://voice.yahoo.com

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to