Importing attachments |
Start page Previous page Next page |
Example: Import the attachment to the main text of the PDF
Call N2PDFSetOption ( JobID,_ N2PDFOPTION_ATTACHMENT_MODE,_ N2PDFVALUE_ATTACHMENT_IMPORT_MODE,_ "" )
Call N2PDFAddAttachment ( JobID,_ 0,_ N2PDFVALUE_CRLF_BEFORE,_ db.Server,_ db.FilePath,_ doc.UniversalID,_ "File",_ "" )
N2PDFOPTION_ATTACHMENT_IMPORT_AT_POSThis option is used to define whether the imported file should be attached to the end of the document or placed into the same position in which it is in the original document.
Example: Embed file in original position Call N2PDFSetOption ( JobID, N2PDFOPTION_ATTACHMENT_IMPORT_AT_POS,_ N2PDFVALUE_True, "" )
|