N2PDFExport

Start page  Previous page  Next page

 

N2PDFExport ( <JobID>, <ExportFormat>)  -> <ErrorCode>

 

Description

Using this function, you can also save (export) the created PDF file by specifying the ExportFormat as either a TIFF, JPEG, PNG or BMP graphic. The export files are saved to the same directory in which the PDF file has already been saved. There are further options available to you for controlling the export file(s).

 

115

In order for an export to function properly, the option N2PDFOPTION_SYSTEM_RELEASE_JOB must be set to N2PDFVALUE_FALSE so that the handle is still valid after N2PDFProcess.

 

 

112

Not all options are available for every export format.

 

 

Declaration for LotusScript

Declare Function N2PDFExport Lib LibName_

( Byval JobID As Long, Byval ExportFormat As Long ) As Long

 

 

Parameters

<JobID> (LONG)

The number that is returned when N2PDFInit is invoked and which references the PDF file in the memory. You use this ID to control which PDF you want to access with the function.

 

 

<ExportFormat> (LONG)

Use this parameter to specify the export format.

 

 

N2PDFVALUE_EXPORT_TIFF

One file per page with the number [x] in the filename, the same directory as the PDF, the extension is "tif" - optionally also multi-page TIFF

N2PDFVALUE_EXPORT_JPEG

One file per page with the number [x] in the filename, the same directory as the PDF, the extension is “jpg"

N2PDFVALUE_EXPORT_PNG

One file per page with the number [x] in the filename, the same directory as the PDF, the extension is “png"

N2PDFVALUE_EXPORT_BMP

One file per page with the number [x] in the filename, the same directory as the PDF, the extension is “bmp"

 

 

Return

<ErrorCode> (LONG)

The code number of the error that has occurred when performing the function (see "Error Codes ").

 

Examples:

The PDF file is also exported as TIFF, JPG, PNG or BMP

 

Call N2PDFExport ( JobID, N2PDFVALUE_EXPORT_TIFF )

 

Call N2PDFExport ( JobID, N2PDFVALUE_EXPORT_JPEG )

 

Call N2PDFExport ( JobID, N2PDFVALUE_EXPORT_PNG )

 

Call N2PDFExport ( JobID, N2PDFVALUE_EXPORT_BMP )