Package com.pdftools.pdf2image
Class RenderPageToMaxImageSize
java.lang.Object
com.pdftools.internal.NativeBase
com.pdftools.internal.NativeObject
com.pdftools.pdf2image.ImageSectionMapping
com.pdftools.pdf2image.RenderPageToMaxImageSize
The image section mapping to render entire pages using a specific image pixel size
Render a PDF page and scale it, thereby preserving the aspect ratio, to fit best on the target image size. The image size is specified in number of pixels.
For example, this mapping is suitable to create thumbnail images.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.pdftools.internal.NativeObject
equals, hashCode
-
Constructor Details
-
RenderPageToMaxImageSize
- Parameters:
size- The maximum size of the image in pixels.- Throws:
IllegalArgumentException- The dimensions ofsizeare smaller than 1.IllegalArgumentException- ifsizeisnull
-
-
Method Details
-
getSize
The maximum size of the image in pixels (Getter)
Set or get the image size.
The dimensions of
sizemust be 1 or greater. -
setSize
The maximum size of the image in pixels (Setter)
Set or get the image size.
The dimensions of
sizemust be 1 or greater.- Throws:
IllegalArgumentException- The dimensions ofsizeare smaller than 1.IllegalArgumentException- ifvalueisnull
-