Package com.ironsoftware.ironpdf.image
Class ToImageOptions
java.lang.Object
com.ironsoftware.ironpdf.image.ToImageOptions
Defines options when rasterizing (converting) an PDf to image objects and files.
See: PdfDocument.toImages(String, String, ToImageOptions) and PdfDocument.toBufferedImages(ToImageOptions options)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetDpi()Gets dpi.Gets image max height.Gets image max width.voidsetDpi(int dpi) Sets dpi.voidsetImageMaxHeight(Integer imageMaxHeight) Sets image max height.voidsetImageMaxWidth(Integer imageMaxWidth) Sets image max width.
-
Constructor Details
-
ToImageOptions
public ToImageOptions()
-
-
Method Details
-
getDpi
public int getDpi()Gets dpi. The desired resolution of the output Images. Default is 96dpi.- Returns:
- the dpi
-
setDpi
public void setDpi(int dpi) Sets dpi. The desired resolution of the output Images. Default is 96dpi.- Parameters:
dpi- the dpi
-
getImageMaxHeight
Gets image max height. The target maximum height of the output images. Default is null.- Returns:
- the image max height
-
setImageMaxHeight
Sets image max height. The target maximum height of the output images. Default is null.- Parameters:
imageMaxHeight- the image max height
-
getImageMaxWidth
Gets image max width. The target maximum width of the output images. Default is null.- Returns:
- the image max width
-
setImageMaxWidth
Sets image max width. The target maximum width of the output images. Default is null.- Parameters:
imageMaxWidth- the image max width
-