Export formats

Start page  Previous page  Next page

 

n2pdf was primarily developed as an extension for Lotus Notes for the creation of PDF files. It allows the structured and managed conversion of entire documents or individual Rich Text fields into PDF – a format that can be used across different software platforms. Using the export function, the contents created can also be saved in other file formats.

 

The settings for the export can be made using the N2PDFSetOption function. The individual options for the export function are shown below. The individual values are set via <OptionStr> and <SubOptionStr> of the N2PDFSetOption function.

 

N2PDFOPTION_TARGET_FILE_FORMAT

This parameter can be used to set a different output format for creating the file; the default output format is PDF.

 

N2PDFVALUE_TARGET_FILE_FORMAT_PDF

1

N2PDFVALUE_TARGET_FILE_FORMAT_RTF

2

N2PDFVALUE_TARGET_FILE_FORMAT_TXT

4

N2PDFVALUE_TARGET_FILE_FORMAT_HTML

8

N2PDFVALUE_TARGET_FILE_FORMAT_DOCX

16

 

Call N2PDFSetOption ( JobID,_

N2PDFOPTION_TARGET_FILE_FORMAT, N2PDFVALUE_TARGET_FILE_FORMAT_DOCX , "" )

 

 

114

 

It is also possible to create several file formats at the same time during export. To do so, the numerical values of the export formats must simply be added together and passed as a sum.

 

z. B. Call N2PDFSetOption ( JobID, N2PDFOPTION_TARGET_FILE_FORMAT, 1+16, "" )

 

 

112

Please bear in mind that it is not always possible to depict all of the functions offered by n2pdf and/or the PDF format in the new target formats. This is due to limitations arising from the formats.