Greetings,
 
I have a PDF that contains Javascript with this pattern:
 
     var oDoc = event.target;
     oDoc.importDataObject(localAttachmentName);
 
The importDataObject method adds an attachment to the
PDF file.  The other related pattern is:
 
      var oDoc = event.target;
      var oAttachments = oDoc.dataObjects;
      . . .
      for(var i = 0; i < oAttachments.length; i++) {
            var attMent = oAttachments[i];
            recordAttachment(attMent.name, attMent.path);
      }
 
Is there any way in iText to add an attachment to a PDF
file like importDataObject() does?  In particular I need the
attachment to appear on the dataObjects list.
 
-Sam
 
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to