Dan,

One way to do this is to crop the page to be inserted, wrap it in an Image 
object, and include it inline between the Paragraph objects. Perhaps not what 
you had hoped for, but definitely possible (See attached PDF, in which the 
inserted PDF content is indented for clarity).

Cheers,
Bill Segraves




________________________________
From: Dan Olsen Iii <[email protected]>
To: [email protected]
Sent: Tue, December 8, 2009 11:39:31 AM
Subject: [iText-questions] Merging two PDFs


I am creating a new PDF with iText. I have another PDF that contains a single 
paragraph. I want to be able to add that paragraph to my new PDF document. I 
don't want to just add the page but I want the paragraph in the existing PDF to 
be included in a page with the rest of the text in the new PDF. 

For example if my existing PDF has the paragraph:

"This is a paragraph that already exists in a PDF."

I want it to be included in the new PDF on the same page as the new PDF text. 
So my new PDF would be a single page with:

"This is a new PDF that includes text from an existing PDF.

This is a paragraph that already exists in a PDF.

This is the end of my PDF."

Is there any way to do this?

Attachment: hello_paragraph_to_be_inserted_cropped_then_wrapped_in_an_image.pdf
Description: Adobe PDF document

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to