Class Viewing
The profile to convert PDF documents to JPEG or PNG images for viewing
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe settings for the output image (Getter)The image section mapping (Getter)voidsetImageOptions(ImageOptions value) The settings for the output image (Setter)voidThe image section mapping (Setter)Methods inherited from class com.pdftools.pdf2image.profiles.Profile
getContentOptionsMethods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
Viewing
public Viewing()
-
-
Method Details
-
getImageOptions
The settings for the output image (Getter)
Supported types are:
-
pdftools.pdf2image.PngImageOptionsto create PNG images -
pdftools.pdf2image.JpegImageOptionsto create JPEG images
Default:
pdftools.pdf2image.PngImageOptions -
-
setImageOptions
The settings for the output image (Setter)
Supported types are:
-
pdftools.pdf2image.PngImageOptionsto create PNG images -
pdftools.pdf2image.JpegImageOptionsto create JPEG images
Default:
pdftools.pdf2image.PngImageOptions- Throws:
IllegalArgumentException- The given object has the wrong type.IllegalArgumentException- ifvalueisnull
-
-
getImageSectionMapping
The image section mapping (Getter)
This property specifies how a PDF page is placed onto the target image.
Supported types are:
-
pdftools.pdf2image.RenderPageAtResolutionto define the resolution of the output images. -
pdftools.pdf2image.RenderPageToMaxImageSizeto define the maximum image size of the output images.
Default:
pdftools.pdf2image.RenderPageAtResolutionwith 150 DPI. -
-
setImageSectionMapping
The image section mapping (Setter)
This property specifies how a PDF page is placed onto the target image.
Supported types are:
-
pdftools.pdf2image.RenderPageAtResolutionto define the resolution of the output images. -
pdftools.pdf2image.RenderPageToMaxImageSizeto define the maximum image size of the output images.
Default:
pdftools.pdf2image.RenderPageAtResolutionwith 150 DPI.- Throws:
IllegalArgumentException- The given object has the wrong type.IllegalArgumentException- ifvalueisnull
-
-