You can get the attachments with PdfReader but it requires dictionary
access. The sequence is:

- get page dic
- locate file attachment annotation
- find the stream with the annotation. Starting from the annotation and
traveling the dics is: /FS/EF/F
- decode the stream with PdfReader.getStreamBytes()

You'll need the pdf reference to know what you're doing. This is a lot
simpler than it looks. I'll try to create an example this weekend.

Best Regards,
Paulo Soares

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On 
> Behalf Of Vedder, Maria
> Sent: Wednesday, March 10, 2004 3:26 PM
> To: '[EMAIL PROTECTED]'
> Subject: [iText-questions] File attachment using iText: How 
> to read/download the embedded fi le on the PDF document
> 
> Hello Paolo and all of you,
> 
> file attachment using iText:
> I managed to attach files to a PDF file. Needed Acrobat 6.0 to test.
> 
> Question:
> How can I read/download the file attachment (XML and other) 
> from the PDF
> file 
> created?
> I would like to extract the file attachment and store it on a 
> local file
> system 
> using iText.
> 
> The PDFReader ignores attachment, or?
> 
> 
> Thanks for your help,
> Maria 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> 


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to