leo3000 wrote:
> Hi,
> 
> I have a existing PDF with 3 Portfolio section’s on the left side with 20
> pages per portfolio.

I don't know what you mean with "3 Portfolio section's on the left side".

I assume you have 1 PDF that is a Portable Collection containing 3 
embedded files each of which has 20 pages.

Please rephrase if my assumption is wrong.

> I want to attach a PDF file to  the 2nd existing
> portfolio at the last page. 

You want to take 1 of the 3 files from the existing portable collection, 
and merge it with another PDF.

> I’m using the existing code,

Your code is not consistent with my assumptions, therefore I don't know 
if my assumptions are right.

> but it bundles the
> 3 portfolio’s into one and save’s the attached PDF to the document level not
> the portfolio. Does anyone have an idea on how to access the portfolio’s
> then attach a document? Thanks for the help.

If you want to add content to one of the embedded files in a portable 
collection, you need to extract the stream of the embedded file. Feed 
that stream to PdfReader, add the extra content, then replace the stream 
in the portable collection with the new stream that has the extra content.
-- 
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.itextpdf.com/book/
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