NTPSetOptionString (packed file attachments)

The following is a description of all supported options for the conversion of packed file attachments. All options are set via the function NTPSetOptionString.

 

 

NTPOPTION_ATTACHMENT_ADD_PASSWORD

This 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 NTPSetOptionString ( JobID,NTPOPTION_ATTACHMENT_ADD_PASSWORD, "1234", "" )

 

Call NTPSetOptionString ( JobID,NTPOPTION_ATTACHMENT_ADD_PASSWORD, "ABC", "" )

 

 

NTPOPTION_ATTACHMENT_CLEAR_PASSWORD

This option resets all passwords, which were previously transferred with the option NTPOPTION_ATTACHMENT_ADD_PASSWORD in the current reportID.

 

Example: Delete password list

Call NTPSetOptionString ( JobID,NTPOPTION_ATTACHMENT_CLEAR_PASSWORD, "", "" )

 

 

NTPOPTION_ATTACHMENT_ADD_ARC_FILESPEC

This option allows the definition of the file extensions, which are to be used from a compressed archive. Normally NotesToPaper 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 NTPSetOptionString ( JobID,NTPOPTION_ATTACHMENT_ADD_ARC_FILESPEC, "*.bmp", "" )

 

Call NTPSetOptionString ( JobID,NTPOPTION_ATTACHMENT_ADD_ARC_FILESPEC, "*.jpg", "" )