Pdftools SDK
|
Go to the source code of this file.
Macros | |
#define | PDFTOOLS_CALL |
#define PDFTOOLS_CALL |
PDFTOOLS_EXPORT TPdfToolsOptimizationProfiles_Archive *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Archive_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_MinimalFileSize_GetResolutionDPI | ( | TPdfToolsOptimizationProfiles_MinimalFileSize * | pMinimalFileSize, |
double * | pResolutionDPI ) |
The target resolution of images in DPI.
The target resolution in DPI (dots per inch) for color and grayscale images.
Images with a resolution above PdfToolsOptimizationProfiles_MinimalFileSize_GetThresholdDPI are down-sampled.
Valid values are in the range 1.0 to 10000.
If NULL
, then resolution setting is disabled.
Default: 130
.
[in,out] | pMinimalFileSize | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_MinimalFileSize. |
[out] | pResolutionDPI | Retrieved value. |
[out]
argument returns NULL
. To determine if an error has occurred, check the error code as described in the note section below. PDFTOOLS_EXPORT double PDFTOOLS_CALL PdfToolsOptimizationProfiles_MinimalFileSize_GetThresholdDPI | ( | TPdfToolsOptimizationProfiles_MinimalFileSize * | pMinimalFileSize | ) |
The threshold resolution of images in DPI.
The threshold resolution in DPI (dots per inch) to selectively activate downsampling for color and grayscale images.
Valid values are in the range 1.0 to 10000. To deactivate down-sampling of images set PdfToolsOptimizationProfiles_MinimalFileSize_GetResolutionDPI to NULL
.
Default: 1.4
times PdfToolsOptimizationProfiles_MinimalFileSize_GetResolutionDPI.
[in,out] | pMinimalFileSize | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_MinimalFileSize. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsOptimizationProfiles_MinimalFileSize *PDFTOOLS_CALL PdfToolsOptimizationProfiles_MinimalFileSize_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_MinimalFileSize_SetResolutionDPI | ( | TPdfToolsOptimizationProfiles_MinimalFileSize * | pMinimalFileSize, |
const double * | pResolutionDPI ) |
The target resolution of images in DPI.
The target resolution in DPI (dots per inch) for color and grayscale images.
Images with a resolution above PdfToolsOptimizationProfiles_MinimalFileSize_GetThresholdDPI are down-sampled.
Valid values are in the range 1.0 to 10000.
If NULL
, then resolution setting is disabled.
Default: 130
.
[in,out] | pMinimalFileSize | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_MinimalFileSize. |
[in] | pResolutionDPI | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_MinimalFileSize_SetThresholdDPI | ( | TPdfToolsOptimizationProfiles_MinimalFileSize * | pMinimalFileSize, |
double | dThresholdDPI ) |
The threshold resolution of images in DPI.
The threshold resolution in DPI (dots per inch) to selectively activate downsampling for color and grayscale images.
Valid values are in the range 1.0 to 10000. To deactivate down-sampling of images set PdfToolsOptimizationProfiles_MinimalFileSize_GetResolutionDPI to NULL
.
Default: 1.4
times PdfToolsOptimizationProfiles_MinimalFileSize_GetResolutionDPI.
[in,out] | pMinimalFileSize | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_MinimalFileSize. |
[in] | dThresholdDPI | Set value. |
PDFTOOLS_EXPORT double PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_GetLayerCompressionQuality | ( | TPdfToolsOptimizationProfiles_Mrc * | pMrc | ) |
The image quality for MRC foreground and background layers.
This is a value between 0
(lowest quality) and 1
(highest quality).
Default:
1
.0.25
.0.25
.[in,out] | pMrc | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Mrc. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:0
or greater than 1
. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_GetLayerResolutionDPI | ( | TPdfToolsOptimizationProfiles_Mrc * | pMrc, |
double * | pLayerResolutionDPI ) |
The target resolution in DPI (dots per inch) for downsampling MRC foreground and background layers.
Valid values are 1, or 10000, or in between. Set to NULL
to deactivate downsampling of images.
Default: 70
.
[in,out] | pMrc | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Mrc. |
[out] | pLayerResolutionDPI | Retrieved value. |
[out]
argument returns NULL
. To determine if an error has occurred, check the error code as described in the note section below. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_GetRecognizePictures | ( | TPdfToolsOptimizationProfiles_Mrc * | pMrc | ) |
The option to recognize photographic regions when doing MRC.
Regardless of this property’s setting, monochrome (grayscale) images are always treated as entire photographic regions (cutout pictures) by the MRC algorithm.
Default: FALSE.
[in,out] | pMrc | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Mrc. |
May indicate an error in certain scenarios. For further information see the note section below.
PDFTOOLS_EXPORT TPdfToolsOptimizationProfiles_Mrc *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_SetLayerCompressionQuality | ( | TPdfToolsOptimizationProfiles_Mrc * | pMrc, |
double | dLayerCompressionQuality ) |
The image quality for MRC foreground and background layers.
This is a value between 0
(lowest quality) and 1
(highest quality).
Default:
1
.0.25
.0.25
.[in,out] | pMrc | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Mrc. |
[in] | dLayerCompressionQuality | Set value. |
0
or greater than 1
. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_SetLayerResolutionDPI | ( | TPdfToolsOptimizationProfiles_Mrc * | pMrc, |
const double * | pLayerResolutionDPI ) |
The target resolution in DPI (dots per inch) for downsampling MRC foreground and background layers.
Valid values are 1, or 10000, or in between. Set to NULL
to deactivate downsampling of images.
Default: 70
.
[in,out] | pMrc | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Mrc. |
[in] | pLayerResolutionDPI | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Mrc_SetRecognizePictures | ( | TPdfToolsOptimizationProfiles_Mrc * | pMrc, |
BOOL | bRecognizePictures ) |
The option to recognize photographic regions when doing MRC.
Regardless of this property’s setting, monochrome (grayscale) images are always treated as entire photographic regions (cutout pictures) by the MRC algorithm.
Default: FALSE.
[in,out] | pMrc | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Mrc. |
[in] | bRecognizePictures | Set value. |
PDFTOOLS_EXPORT TPdfToolsOptimizationProfiles_Print *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Print_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Profile_GetCopyMetadata | ( | TPdfToolsOptimizationProfiles_Profile * | pProfile | ) |
Whether to copy metadata Copy document information dictionary and XMP metadata. Default: TRUE.
[in,out] | pProfile | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Profile. |
May indicate an error in certain scenarios. For further information see the note section below.
PDFTOOLS_EXPORT TPdfToolsOptimization_FontOptions *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Profile_GetFontOptions | ( | TPdfToolsOptimizationProfiles_Profile * | pProfile | ) |
The font optimization options.
[in,out] | pProfile | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Profile. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsOptimization_ImageRecompressionOptions *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Profile_GetImageRecompressionOptions | ( | TPdfToolsOptimizationProfiles_Profile * | pProfile | ) |
The image recompression options.
[in,out] | pProfile | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Profile. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsOptimization_RemovalOptions *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Profile_GetRemovalOptions | ( | TPdfToolsOptimizationProfiles_Profile * | pProfile | ) |
The parameters defining the optional data to remove or flatten.
[in,out] | pProfile | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Profile. |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT TPdfToolsOptimizationProfiles_ProfileType PDFTOOLS_CALL PdfToolsOptimizationProfiles_Profile_GetType | ( | TPdfToolsOptimizationProfiles_Profile * | pProfile | ) |
Get actual derived type of base type TPdfToolsOptimizationProfiles_Profile.
This function is invoked prior to downcasting to ascertain the derived object type.
[in,out] | pProfile | Acts as a handle to a native object. |
0
in case of an error.0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Profile_SetCopyMetadata | ( | TPdfToolsOptimizationProfiles_Profile * | pProfile, |
BOOL | bCopyMetadata ) |
Whether to copy metadata Copy document information dictionary and XMP metadata. Default: TRUE.
[in,out] | pProfile | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Profile. |
[in] | bCopyMetadata | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Web_GetResolutionDPI | ( | TPdfToolsOptimizationProfiles_Web * | pWeb, |
double * | pResolutionDPI ) |
The target resolution of images in DPI.
The target resolution in DPI (dots per inch) for color and grayscale images.
Images with a resolution above PdfToolsOptimizationProfiles_Web_GetThresholdDPI are down-sampled.
Valid values are in the range 1.0 to 10000.
Set to NULL
to deactivate down-sampling of images.
Default: 150
.
[in,out] | pWeb | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Web. |
[out] | pResolutionDPI | Retrieved value. |
[out]
argument returns NULL
. To determine if an error has occurred, check the error code as described in the note section below. PDFTOOLS_EXPORT double PDFTOOLS_CALL PdfToolsOptimizationProfiles_Web_GetThresholdDPI | ( | TPdfToolsOptimizationProfiles_Web * | pWeb | ) |
The threshold resolution of images in DPI.
The threshold resolution in DPI (dots per inch) to selectively activate downsampling for color and grayscale images.
Valid values are in the range 1.0 to 10000. To deactivate down-sampling of images set PdfToolsOptimizationProfiles_Web_GetResolutionDPI to NULL
.
Default: 1.4
times PdfToolsOptimizationProfiles_Web_GetResolutionDPI.
[in,out] | pWeb | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Web. |
May indicate an error in certain scenarios. For further information see the note section below.
0
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. Possible error codes:PDFTOOLS_EXPORT TPdfToolsOptimizationProfiles_Web *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Web_New | ( | void | ) |
NULL
if there is an error.
NULL
was returned. Retrieve specific error code by calling PdfTools_GetLastError. Get the error message with PdfTools_GetLastErrorMessage. PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Web_SetResolutionDPI | ( | TPdfToolsOptimizationProfiles_Web * | pWeb, |
const double * | pResolutionDPI ) |
The target resolution of images in DPI.
The target resolution in DPI (dots per inch) for color and grayscale images.
Images with a resolution above PdfToolsOptimizationProfiles_Web_GetThresholdDPI are down-sampled.
Valid values are in the range 1.0 to 10000.
Set to NULL
to deactivate down-sampling of images.
Default: 150
.
[in,out] | pWeb | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Web. |
[in] | pResolutionDPI | Set value. |
PDFTOOLS_EXPORT BOOL PDFTOOLS_CALL PdfToolsOptimizationProfiles_Web_SetThresholdDPI | ( | TPdfToolsOptimizationProfiles_Web * | pWeb, |
double | dThresholdDPI ) |
The threshold resolution of images in DPI.
The threshold resolution in DPI (dots per inch) to selectively activate downsampling for color and grayscale images.
Valid values are in the range 1.0 to 10000. To deactivate down-sampling of images set PdfToolsOptimizationProfiles_Web_GetResolutionDPI to NULL
.
Default: 1.4
times PdfToolsOptimizationProfiles_Web_GetResolutionDPI.
[in,out] | pWeb | Acts as a handle to the native object of type TPdfToolsOptimizationProfiles_Web. |
[in] | dThresholdDPI | Set value. |