Skip to main content
Version: 10.0

Image export

The Toolbox web service with the image operation allows you to create image exports from a PDF document.

The operation renders the selected page of a PDF document into one of the following graphics formats:

  • JPEG
  • PNG
  • GIF
  • TIFF
  • BMP
  • SVG

Example of exporting a single page as a PNG image

{
"toolbox": [
{
"image": {
"fileNameTemplate": "page[%d]",
"pages": "1",
"png": {
"dpi": 72,
"height": 0,
"metrics": "mm",
"width": 0
}
}
}
]
}

If a single page of a PDF document is selected via pages, the graphics format is created directly. If multiple pages are selected, a ZIP archive is created, which then contains the graphics for the individual pages.

Depending on the selected target format, further options are available in the Parameters.

note

With the TIFF format, it is also possible to export multiple pages as a mutipage TIFF.

SVG export

In the SVG format (“Scalable Vector Graphics”), in contrast to the other raster graphic formats mentioned above, no visual image of the PDF document is created, but the PDF document is transferred into a new format syntax. Most of the path-related drawing instructions in the PDF document are transferred to SVG format as accurately as possible. More complex drawing operations such as color gradients, patterns and the like are transferred in raster graphics.

SVG export is very similar to HTML export (transcribe).

Limitations

Fonts are never translated or embedded. Text content is transferred directly into glyph character paths and is therefore always included in the result. However, both the selectability of the glyphs and their Unicode mapping are lost.