pdftools_sdk.optimization.profiles.web
Classes
|
The optimization profile suitable for electronic document exchange |
- class pdftools_sdk.optimization.profiles.web.Web[source]
Bases:
ProfileThe optimization profile suitable for electronic document exchange
All colors are converted to RGB. Spider (web capture) information is removed.
Images above 210 DPI are down-sampled and recompressed to 150 DPI. This leads to smaller output files. The property pdftools_sdk.optimization.profiles.web.Web.resolution_d_p_i has influence on both values.
When an image is recompressed, the pdftools_sdk.optimization.compression_algorithm_selection.CompressionAlgorithmSelection.BALANCED strategy is used; this can be overridden through pdftools_sdk.optimization.profiles.profile.Profile.image_recompression_options.
With this profile, the output PDF version is updated to PDF 1.7 or higher and PDF/A conformance removed.
- property resolution_d_p_i: float | None
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 pdftools_sdk.optimization.profiles.web.Web.threshold_d_p_i are down-sampled.
Valid values are in the range 1.0 to 10000.
Set to None to deactivate down-sampling of images.
Default: 150.
- Returns:
Optional[float]
- property threshold_d_p_i: float
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 pdftools_sdk.optimization.profiles.web.Web.resolution_d_p_i to None.
Default: 1.4 times pdftools_sdk.optimization.profiles.web.Web.resolution_d_p_i.
- Returns:
float