Hi,
I have a existing PDF with 3 Portfolio section's on the left side with
20 pages per portfolio. I want to attach a PDF file to the 2nd existing
portfolio at the last page. I'm using the existing code, 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.
PdfReader reader = new PdfReader(addPage);
FileStream outputstream = new FileStream(destpath,
FileMode.Create);
PdfStamper stamp = new PdfStamper(reader, outputstream,
(char)8);
PdfWriter attachment = stamp.Writer;
PdfFileSpecification pdfAttch =
PdfFileSpecification.FileEmbedded(attachment, addfiles, addfiles, null);
stamp.AddFileAttachment(addfiles, pdfAttch);
stamp.MakePackage(PdfName.T);
stamp.Close();
-----------------------------------------
This electronic communication and any files transmitted with it, or
attached to it, are confidential and are intended solely for the
use of the individual or entity to who it is addressed and may
contain information that is confidential, legally privileged,
protected by privacy laws, or otherwise restricted from disclosure
to anyone else. If you are not the intended recipient or the
person responsible for delivering the e-mail to the intended
recipient, be advised that you have received this e-mail in error,
and that any use, dissemination, forwarding, printing, or copying
of this e-mail is strictly prohibited.
If you received this e-mail in error, please return the e-mail to
the sender, delete it from your computer and destroy any printed
copy of it. Although our company attempts to sweep e-mail and
attachments for viruses, it does not guarantee that either are
virus-free and accepts no liability for any damage sustained as a
result of viruses.
------------------------------------------------------------------------------
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
iText-questions@lists.sourceforge.net
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/