N2PDFTerm

Start page  Previous page  Next page

 

N2PDFTerm ( <JobID>)  -> <ErrorCode>

 

Description

This function aborts a job initialized by N2PDFInit, deletes any temporary files which may be present and releases the occupied storage space. No further use of the initialized job or the job handle is possible after this call.

 

This function is available in combination with N2PDFExport. For a graphics export, a job handle is required that has not been deleted automatically by N2PDFProcess. Therefore, the option N2PDFOPTION_SYSTEM_RELEASE_JOB is used to disable the automatic deletion of the job handle. After completion of the export, N2PDFTerm must be used to manually clear the job handle.

 

112

When the N2PDFTerm function is called, the job handle is set to “no longer valid", which means that function calls with the <JobID> are no longer possible.

 

 

Declaration for LotusScript

Declare Function N2PDFTerm Lib LibName_

( Byval JobID 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.

 

Return

<ErrorCode> (LONG)

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