Skip to main content

pdf-image


Use the pdf-image endpoint to convert pages from a PDF to images.

The pdf-image endpoint converts pages from a PDF to an image. A single-page PDF rasterizes into a single image which is returned as a byte-array. A multi-page PDF returns a JSON document where each rasterized image is converted to base64 and returned in the JSON document. The following example illustrates converting a single page from a PDF to an image and converting a multi-page PDF to images.

Parameters

TBD

C#

URL ParameterDescriptionAbbreviatedDefault
startPageNumber1..nsp1
pageCount1..npc0 (prints all pages)
imageFormatjpeg | gif | bmp | png | tiffifpng
quality1..100qt60
ditheringPercent1..100dp25
ditheringAlgorithmfloydSteinberg | bayer | nonedafloydSteinberg
colorFormatrgb | monochrome | indexdcfrgb
multiPagetrue | falsempfalse
blackThreshold0..255btna
quantizationAlgorithmoctree | webSafe | werner | wuqaoctree
imageSizedpi | fixed | max | percentage-dpi
horizontalDpi0..nhd96
verticalDpi0..nvd96
height0..nhtna
width0..nwdna
unitmillimeter | inch | pointutpoint
maxHeight0..nmhna
maxWidth0..nmwna
horizontalPercentage1..100hp100
verticalPercentage1..100vp100
TBD
Source: PdfExample
   Follow us on social media for latest news!