|
Importing attachments |
Top Previous Next |
|
Note: The following options only take effect if N2PDFOPTION_ATTACHMENT_MODE has been set to N2PDFVALUE_ATTACHMENT_IMPORT_MODE. An import filter is required for importing attachments into the content. The section "Supported formats" describes the file formats that are supported by the import mode option ("Import as contenct").
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_POS This 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, "" )
|