Compressed attachments |
Start page Previous page Next page |
N2PDFOPTION_ATTACHMENT_ADD_PASSWORDThis option allows the passing of a password which will be used when handling compressed attachments. You may use this option more than once to pass a list of passwords.
Example: Use the passwords "1234" and "ABC" for compressed attachments Call N2PDFSetOption ( JobID,_ N2PDFOPTION_ATTACHMENT_ADD_PASSWORD, "1234", "" )
Call N2PDFSetOption ( JobID,_ N2PDFOPTION_ATTACHMENT_ADD_PASSWORD, "ABC", "" )
N2PDFOPTION_ATTACHMENT_ADD_ARC_FILESPECThis option allows the definition of the file extensions which are to be used from a compressed archive. Normally n2pdf unpacks archives completely and uses all the files in an archive. If however you want to use only e.g. *.bmp or *.jpg files, then you can use this option accordingly.
Example: Use only "*.bmp" and "*.jpg" files from compressed attachments Call N2PDFSetOption ( JobID,_ N2PDFOPTION_ATTACHMENT_ADD_ARC_FILESPEC, "*.bmp", "" )
Call N2PDFSetOption ( JobID,_ N2PDFOPTION_ATTACHMENT_ADD_ARC_FILESPEC, "*.jpg", "" )
N2PDFOPTION_ATTACHMENT_EXTRACT_ARCHIVE This option lets you specify whether compressed attachments should be unpacked and their content should be processed, or whether the compressed file itself should be used.. This is important e.g. for the linking of attachments. If this option is set to N2PDFVALUE_FALSE, then the attachment itself is linked, while if the setting is N2PDFVALUE_TRUE, then the attachment is unpacked and all files from the archive are linked.
Example: Do not unpack attachments Call N2PDFSetOption ( JobID,_ N2PDFOPTION_ATTACHMENT_EXTRACT_ARCHIVE, N2PDFVALUE_FALSE, "" )
|