Create Image from PDF
Connector ID: CreateThumbnail
Generate images from specified PDF pages using the Create Image action. Converting PDF pages to images is done with precision in PDF4me by this feature.
- Method: POST
- Endpoint: /api/v2/CreateImages
Parameters
- File ContentBase64, Required
Map source PDF file content from the previous action
- File NameString, Required
Source PDF file name with .pdf extension
- Image ExtensionEnum, Required
Choose desired image output format from the list. The supported formats are -
jpg, jpeg, bmp, gif, jb2, jp2, jpf, jpx, png, tif, tiff.
- Width PixelsNumeric, Required
Width of the image in Pixels
- Page NumberNumeric Array, Required
- Specify page indices as comma-separated values or ranges to process (e.g. “0, 1, 2-” or “1, 2, 3-7”).
- If not specified, the default configuration processes all pages. The input must be in string format.
Output
- File ContentBinary
Output file content from the PDF4me Create Thumbnail action
- File NameString
Output file name from the PDF4me Create Thumbnail action
Payload
{
"docContent": "please put image base64 content",
"docname": "output",
"imageAction": {
"WidthPixel": "50",
"ImageExtension": "jpeg",
"PageSelection": {
"PageNrs": [
1,
1
]
}
},
"pageNrs": "1"
}
PDF4me api samples
- CSharp(C#)
- Java
- JavaScript
- Python
- Salesforce
- n8n
- Google Script
- AWS Lambda