public class Web extends Profile
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
setResolutionDPI(java.lang.Double)
has influence on both values.
When an image is recompressed, the
pdftools.optimization.CompressionAlgorithmSelection.BALANCED
strategy is used; this can be overridden through
Profile.getImageRecompressionOptions()
.
With this profile, the output PDF version is updated to PDF 1.7 or higher and PDF/A conformance removed.
Constructor | Description |
---|---|
Web() |
Modifier and Type | Method | Description |
---|---|---|
java.lang.Double |
getResolutionDPI() |
The target resolution of images in DPI (Getter)
|
void |
setResolutionDPI(java.lang.Double value) |
The target resolution of images in DPI (Setter)
|
equals, hashCode
getClass, notify, notifyAll, toString, wait, wait, wait
getFontOptions, getImageRecompressionOptions, getRemovalOptions
public java.lang.Double getResolutionDPI()
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
.
public void setResolutionDPI(java.lang.Double value)
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
.