The following Application Programming Interface functions to Image to PDF change the contents of an image. These items can be combined but of course the more image transformation commands that are used the slower the overall conversion will be.
I2PDF_Rotate | |
---|---|
Parameters: | angle - integer specifying the angle that the image is rotated clockwise by. Must be either 90, 180 or 270 degrees. |
Return Value: | 0 - success 1 - invalid angle |
Notes: |
I2PDF_AutoRotate | |
---|---|
Parameters: | orientation - must be one of the following: AUTOROTATE_PORTRAIT (1) or AUTOROTATE_LANDSCAPE (2) angle - integer specifying the angle that the image is to be rotated clockwise by. Must be either 90 or 270 degrees. |
Return Value: | 0 - success 1 - invalid orientation 2 - invalid angle |
Notes: |
I2PDF_Flip | |
---|---|
Parameters: | orientation - must be one of the following: FLIP_HORIZONTAL (1) and/or FLIP_VERTICAL (2) |
Return Value: | 0 - success 1 - invalid orientation |
Notes: |
I2PDF_Grayscale | |
---|---|
Parameters: | None |
Return Value: | None |
Notes: |
I2PDF_Negative | |
---|---|
Parameters: | None |
Return Value: | None |
Notes: |
I2PDF_JpegCompress | |
---|---|
Parameters: | quality - specifies the JPEG compression quality, must be a value between 1 (low) and 35 (high). A value of 0 will turn off re-compression. |
Return Value: | 0 - success 1 - invalid quality |
Notes: |