The following Application Programming Interface functions to Image to PDF all control what can be done
with the PDF document. These items notify the PDF viewer what activity has been
allowed by the author, and whether outlines/bookmarks have been enabled.
Note: A PDF viewer may choose to ignore any or all of these settings.
I2PDF_SetDPI | |
---|---|
Parameters: | dpi - integer between 9 and 2880 inclusive, specify 0 to use the actual DPI recorded in the image file |
Return Value: | 0 - success 1 - invalid parameter - dpi specified is less than 9 2 - invalid parameter - dpi specified is greater than 2880 |
Notes: |
I2PDF_SetOutline | |
---|---|
Parameters: | format - must be one of the following: OUTLINE_FORMAT_FILENAME (1) - this is the name of the image file including the image extension but not including the full filepath) OUTLINE_FORMAT_NAME (2) - same as filename but without the image extension. style - must be one of the following: STYLE_LOWERCASE (1), STYLE_UPPERCASE (2), STYLE_CAPITALISE (3) or STYLE_NONE (0) |
Return Value: | 0 - success 1 - invalid format parameter 2 - invalid style parameter |
Notes: |
I2PDF_SetOutlineTitle | |
---|---|
Parameters: | title - of the outline root node which can be up to 256 characters long. |
Return Value: | 0 - success 1 - title not specified 2 - title too long |
Notes: |
I2PDF_SetOwnerPassword | |
---|---|
Parameters: | password - string between 1 and 32 characters. |
Return Value: | 0 - success 1 - invalid parameter |
Notes: |
I2PDF_SetUserPassword | |
---|---|
Parameters: | password - string between 1 and 32 characters. |
Return Value: | 0 - success 1 - invalid parameter |
Notes: |
I2PDF_EncryptionLevel | |
---|---|
Parameters: | level - integer which must be either 40 (low) or 128 (high) force - integer which must be 1 to force the encryption (see note below) or 0 |
Return Value: | 0 - success 1 - invalid parameter |
Notes: |
I2PDF_SetPermissionEdit | |
---|---|
Parameters: | None |
Return Value: | None |
Notes: |
I2PDF_SetPermissionEditExtra | |
---|---|
Parameters: | None |
Return Value: | None |
Notes: |
I2PDF_SetPermissionCopy | |
---|---|
Parameters: | None |
Return Value: | None |
Notes: |
I2PDF_SetPermissionPrint | |
---|---|
Parameters: | None |
Return Value: | None |
Notes: |
I2PDF_SetPermissions | |
---|---|
Parameters: | permissions - must be one or more of the following: PDF_PERMISSION_READ_ONLY (0), PDF_PERMISSION_EDIT (1), PDF_PERMISSION_EDIT_EXTRA (2), PDF_PERMISSION_COPY (4), PDF_PERMISSION_PRINT (8) |
Return Value: | 0 - success 1 - invalid permissions |
Notes: |