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();
--
View this message in context:
http://old.nabble.com/AddFileAttachment-to-PDF-MakePackage-tp28141280p28141280.html
Sent from the iText - General mailing list archive at Nabble.com.
------------------------------------------------------------------------------
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/