|
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 is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 a threshold of 1.4 times the target resolution are down-sampled.
Valid values are 1.0, or 10000, or in between.
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 TPdfToolsOptimizationProfiles_MinimalFileSize *PDFTOOLS_CALL PdfToolsOptimizationProfiles_MinimalFileSize_New | ( | void | ) |
NULL if there is an error.
NULL is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 a threshold of 1.4 times the target resolution are down-sampled.
Valid values are 1.0, or 10000, or in between.
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 TPdfToolsOptimizationProfiles_Print *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Print_New | ( | void | ) |
NULL if there is an error.
NULL is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 a threshold of 1.4 times the target resolution are down-sampled.
Valid values are 1.0, or 10000, or in between.
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 TPdfToolsOptimizationProfiles_Web *PDFTOOLS_CALL PdfToolsOptimizationProfiles_Web_New | ( | void | ) |
NULL if there is an error.
NULL is returned. The specific error code can be retrieved by calling PdfTools_GetLastError. The error message can be obtained by calling 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 a threshold of 1.4 times the target resolution are down-sampled.
Valid values are 1.0, or 10000, or in between.
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. |