There's a difference. PdfCopy creates a new document by concatenating full pages. A regular PdfWriter creates a blank page and the imported page is placed as a template. If you don't have annotations the final result is the same with the difference that the latter method allow other content to be added.
Best regards, Paulo Soares > -----Original Message----- > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2003 14:38 > To: Paulo Soares > Subject: RE: [iText-questions] BookMarks (Outlines) in iText > > If I can't use the PdfCopy.add(PdfOutline outline) method what about the > PdfContentByte.addOutline(PdfOutline outline, String name) method. I > don't > care about losing annotations there should be none in these documents > anyways. > You say, "Currently the only to do what you want is to place the pages in > a new > document." This is what I'm doing...merging pdfs into a new pdf. > > > > Quoting Paulo Soares <[EMAIL PROTECTED]>: > > > PdfCopy can only be used to add pages, no extra content, annotation or > > bookmarks are allowed. > > Currently the only to do what you want is to place the pages in a new > > document. The problem you'll have is that the annotations are lost. > > This features are on the top of my to-do list but are very tricky, > specially > > the bookmarks. > > > > Best Regards, > > Paulo Soares > > > > > -----Original Message----- > > > From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED] > > > Sent: Wednesday, July 09, 2003 20:42 > > > To: [EMAIL PROTECTED] > > > Subject: [iText-questions] BookMarks (Outlines) in iText > > > > > > Anyone have any quick code samples on howto create Outlines(bookmarks) > in > > > iText? I see there is a PdfOutline class, but on every call to the > > > PdfCopy.add > > > () method requires a PdfOutline Object which in turn is instantiated > > > through > > > specifying: > > > > > > 1) a PdfOutline parent Object > > > 2) PdfDestination or PdfAction Object > > > 3) String Title. > > > 4) boolean open (depending on which overloaded constructor is invoked) > > > > > > So my specific questions: > > > 1) How do I create the Main Parent PdfOutline Object (root of > bookmarks) > > > which > > > has no parent? > > > 2) Do I need to be create a PdfAction or PdfDestination Object that > goes > > > to a > > > specific page within the merged document? > > > (My inclination here is to create a PdfAction Object through the > PdfAction > > > (String filename, int pagenumber) constructor ) > > > > > > Overview of what I'm doing: > > > I am merging 'x' number of pdf documents (up to 200) and need to > create a > > > bookmark that refers to each document merged within the final file. > > > Ideally, > > > if there is a way to keep any of the read document's bookmarks as > children > > > > > > under the new bookmark that would be awesome! > > > > > > Thanks any and all for reading this lengthy email... > > > > > > Brett Favro > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email sponsored by: Parasoft > > > Error proof Web apps, automate testing & more. > > > Download & eval WebKing and get a free book. > > > www.parasoft.com/bulletproofapps > > > _______________________________________________ > > > iText-questions mailing list > > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > ------------------------------------------------------- This SF.Net email sponsored by: Parasoft Error proof Web apps, automate testing & more. Download & eval WebKing and get a free book. www.parasoft.com/bulletproofapps _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions
