Hi all

I'm new to PoDoFo and this list, so please bear with me :-)

I'm trying to attach a file to an existing PDF using PoDoFo such that it 
appears in the attachments pane of the Adobe Reader. I tried naively with the 
following code:

PdfMemDocument document("in.pdf");
document.AttachFile( PdfFileSpec("test.txt", true, &document ) );
document.Write("out.pdf");

and it kind of works. podofopdfinfo and podofobrowser both show me that the 
attachment is there (I can even see the contents in the podofobrowser), but the 
Adobe Reader seems to ignore it completely.

Am I missing something? Are there additional steps required?

Thanks for any help

Michael

--
There is always a well-known solution to every human problem -- neat, 
plausible, and wrong.
H. L. Mencken


------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to