The following Application Programming Interface functions to Image to PDF are always required:
I2PDF_License | |
---|---|
Parameters: | code - required to remove the "Evaluation Mode" message that is stamped over the top of every page in the output PDF document |
Return Value: | None |
Notes: |
I2PDF_AddImage | |
---|---|
Parameters: | image - must be one of the following image types: JPG, TIF, PNG, GIF, BMP, WMF, EMF, PCX or TGA |
Return Value: | 0 - success 1 - invalid parameter 2 - maximum number of images already added 3 - invalid image type 4 - image does not exist |
Notes: |
I2PDF_AddImageBookmark | |
---|---|
Parameters: | image - must be one of the following image types: JPG, TIF, PNG, GIF, BMP, WMF, EMF, PCX or TGA bookmark name - specifies the bookmark name to be shown in the outline. A maximum of 256 characters can be used. |
Return Value: | 0 - success 1 - invalid image parameter 2 - maximum number of images already added 3 - invalid image type 4 - invalid bookmark name parameter 5 - image does not exist |
Notes: |
I2PDF_MakePDF | |
---|---|
Parameters: | output - specifies the name and location of the output PDF document options - must be one or more of the following: OPTION_NONE (0) OPTION_OPEN_PDF (1) - open produced PDF in default PDF viewer OPTION_RESET (2) - resets all settings apart from the License Code errorText - pre-allocated string/byte array buffer that any internal PDF generation error is returned into errorMaxLen - maximum error text buffer length |
Return Value: | 0 - success 1 - invalid parameter 2 - output pdf could not be opened 3 - internal PDF generation error - error description returned in errorText 4 - PDF file already exists and could not be overwritten - it is possibly being held open by a PDF viewer application 5 - no images have been added |
Notes: |