PDF4Java.Render Reference Documentation
com.o2sol.pdf4java.render Package / PDFPageRenderer Class / convertPageToImage Method / convertPageToImage(double,Stream,PDFPageImageFormat) Method
The resolution used for converting the vector PDF page to raster.
Output stream where the image will be saved.
The format used for saving the page image.
Collapse All Expand All
In This Topic

convertPageToImage(double,Stream,PDFPageImageFormat) Method
In This Topic
Converts the PDF page to an image.
Syntax

    public PDFSize convertPageToImage(
       double resolution,
       Stream stream,
       PDFPageImageFormat pageImageFormat
    )

#### Parameters

resolution
  The resolution used for converting the vector PDF page to raster.
stream
  Output stream where the image will be saved.
pageImageFormat
  The format used for saving the page image.

#### Return Value

Image size in pixels.
See Also

#### Reference

PDFPageRenderer Class
PDFPageRenderer Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.