PDF4Java.Render Reference Documentation
com.o2sol.pdf4java.render Package / PDFPageRenderer Class / convertPageToImage Method / convertPageToImage(PDFRendererSettings) Method
Settings for the rendering process.
Collapse All Expand All
In This Topic

convertPageToImage(PDFRendererSettings) Method
In This Topic
Converts the PDF page to an image.
A valid rendering surface must be provided in the settings parameter because the rendered page will be available only in the surface's storage.
Syntax

    public PDFSize convertPageToImage(
       PDFRendererSettings settings
    )

#### Parameters

settings
  Settings for the rendering process.

#### Return Value

Image size in pixels.
Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | when settings is null.

See Also

#### Reference

PDFPageRenderer Class
PDFPageRenderer Members
Overload List

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.