Class Viewing
- java.lang.Object
-
- com.pdftools.internal.NativeBase
-
- com.pdftools.internal.NativeObject
-
- com.pdftools.pdf2image.profiles.Profile
-
- com.pdftools.pdf2image.profiles.Viewing
-
public class Viewing extends Profile
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 topdftools.pdf2image.PngImageOptionswhich uses the output format PNG and lossless compression. If set topdftools.pdf2image.JpegImageOptions, the output format is JPEG.
-
-
Constructor Summary
Constructors Constructor Description Viewing()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageOptionsgetImageOptions()The settings for the output image (Getter)ImageSectionMappinggetImageSectionMapping()The image section mapping (Getter)voidsetImageOptions(ImageOptions value)The settings for the output image (Setter)voidsetImageSectionMapping(ImageSectionMapping value)The image section mapping (Setter)-
Methods inherited from class com.pdftools.pdf2image.profiles.Profile
getContentOptions
-
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
-
-
-
Method Detail
-
getImageOptions
public ImageOptions 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
public void setImageOptions(ImageOptions value)
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:
java.lang.IllegalArgumentException- The given object has the wrong type.java.lang.IllegalArgumentException- ifvalueisnull
-
-
getImageSectionMapping
public ImageSectionMapping 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
public void setImageSectionMapping(ImageSectionMapping value)
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:
java.lang.IllegalArgumentException- The given object has the wrong type.java.lang.IllegalArgumentException- ifvalueisnull
-
-
-