public class Viewing extends Profile
This profile is suitable for converting PDFs to rasterized images for using in web and desktop viewing applications or as thumbnails.
By default, getImageOptions()
is set to
pdftools.pdf2image.PngImageOptions
which uses the output format
PNG and lossless compression.
If set to pdftools.pdf2image.JpegImageOptions
, the output format
is JPEG.
Constructor | Description |
---|---|
Viewing() |
Modifier and Type | Method | Description |
---|---|---|
ImageOptions |
getImageOptions() |
The settings for the output image (Getter)
|
ImageSectionMapping |
getImageSectionMapping() |
The image section mapping (Getter)
|
void |
setImageOptions(ImageOptions value) |
The settings for the output image (Setter)
|
void |
setImageSectionMapping(ImageSectionMapping value) |
The image section mapping (Setter)
|
equals, hashCode
getClass, notify, notifyAll, toString, wait, wait, wait
getContentOptions
public ImageOptions getImageOptions()
Supported types are:
pdftools.pdf2image.PngImageOptions
to create PNG imagespdftools.pdf2image.JpegImageOptions
to create JPEG images
Default: pdftools.pdf2image.PngImageOptions
public void setImageOptions(ImageOptions value)
Supported types are:
pdftools.pdf2image.PngImageOptions
to create PNG imagespdftools.pdf2image.JpegImageOptions
to create JPEG images
Default: pdftools.pdf2image.PngImageOptions
java.lang.IllegalArgumentException
- The given object has the wrong type.java.lang.IllegalArgumentException
- if value
is null
public ImageSectionMapping getImageSectionMapping()
This property specifies how a PDF page is placed onto the target image.
Supported types are:
pdftools.pdf2image.RenderPageAtResolution
to define the resolution of the output images.pdftools.pdf2image.RenderPageToMaxImageSize
to define the maximum image size of the output images.
Default: pdftools.pdf2image.RenderPageAtResolution
with 150 DPI.
public void setImageSectionMapping(ImageSectionMapping value)
This property specifies how a PDF page is placed onto the target image.
Supported types are:
pdftools.pdf2image.RenderPageAtResolution
to define the resolution of the output images.pdftools.pdf2image.RenderPageToMaxImageSize
to define the maximum image size of the output images.
Default: pdftools.pdf2image.RenderPageAtResolution
with 150 DPI.
java.lang.IllegalArgumentException
- The given object has the wrong type.java.lang.IllegalArgumentException
- if value
is null