Skip to main content

Get page as picture

Render one page as a PNG picture, returned as data (data: URI) with the page size in points; used by OneAgentStudio to draw an area to read, and to show a page in forms or emails.

Command in the PDF toolkit · id ooa.pdf/render_page · 4 inputs (1 required), 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
PathFileYesPDF file.
PageNumberNo11-based page number.
Resolution (DPI)NumberNo96Resolution of the picture.
PasswordCredentialNoPassword for protected PDFs.

Outputs​

OutputTypeWhat it is
imageStringThe page as a data:image/png;base64 URI.
width_pointsNumberPage width in points (72 per inch), as Extract text from area measures it.
height_pointsNumberPage height in points.
page_countNumberNumber of pages in the file.