Hello again, when I say a question doesn't make sense, it doesn't help posting it again literally. Let me explain what I don't understand:
jergi wrote: > Hi, > I want to generate a new Pdf-file. OK. > First I want to insert some paragraphs (I > do this by using PdfWriter) Not exactly, you do something like: document.add(new Paragraph("text")); The documents controls the lay-out and sends this to a PdfWriter in charge of writing the corresponding PDF syntax. > and after that I want to copy same other Pdfs to > the new Pdf (using PdfCopy). What do you want to copy? When you say 'same other Pdfs', do you mean you want to copy the same file (the one you generated) to a new PDF or other files to the first PDF? I assume you want to insert the content of some other files into the first document you mentioned. However: you do know that PDF is not a format for editing, don't you? You know you can only copy complete pages and you can't change the lay-out. You can copy clipped pages, but you can't copy one paragraph of a page to one new page, and another paragraph of that page to another new page. > At least I want to link the inserted paragraphs > to the inserted pdfs. So we're talking about COMPLETE pages from existing PDFs inserted into a new PDF. You could easily make those pages 'clickable' and have them link to anywhere. > But my problem is, that I can´t append the pdfs to the paragraphs. The sentence above doesn't make any sense. It's like saying you're not succeeding in catching an elephant with a fishing rod. Honestly, you'll have to rephrase that sentence. > They > paragraphs are always overwritten. Eh? What do you mean? > Does anyone know, how I can solve this problem? That's like asking: how can I eat soup with a fork? The answer is: use a spoon! > My PdfWriter: > PdfWriter writer2.getInstance(document, new FileOutputStream(outFile)); OK, so you have created a document to which you add paragraphs. > My PdfCopy: > PdfCopy writer = new PdfCopy( document, new FileOutputStream( outFile, true > ) ); What is this? You're creating a new PdfWriter (in casu: its subclass PdfCopy) using the same document instance? Why? How would that work? I don't understand this. > The way I link to: > Chunk localGoto = new Chunk("Siehe Erklärung"); > localGoto.setLocalGoto( "LINK01" ); > document.add( localGoto ); Eh? How does this relate to the code above? > Chunk localDestination = new Chunk("d "); > localDestination.setLocalDestination( "LINK01" ); > document.add( localDestination ); Same question here. best regards, Bruno ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/