Data Sources
Image to PDF
Convert image files (like PNG, JPG, WebP) natively into PDFs. The engine automatically handles resizing and fitting the image securely inside a high-quality PDF document.
.png
.jpg
.jpeg
.webp
.gif
Implementation Example
Multipart Form Data Required
Image conversions require file uploads. You cannot use a JSON payload for this mode. You must submit your request as
multipart/form-data.
curl -X POST "https://pdfkong.online/api/v1/convert" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@/path/to/your/image.png" \
-o "image.pdf"
Parameters Explained
file
Required
The binary image file uploaded via
multipart/form-data. Supported formats are png, jpg, jpeg, webp, and gif.