AnyConvert
← All docs

JPG to PDF

Send one or more JPG, PNG, or TIFF images as repeated file parts, in page order; get a single PDF delivered to your webhook.

See the JPG to PDF tool page, or the docs index for authentication, the shared request/webhook contract, and the generic error table.

Request

POST /webhooks/trigger, same endpoint and fields as every tool, with tool="jpg-to-pdf" set explicitly (it's not the default).

curl
curl -X POST https://api.anyconvert.app/webhooks/trigger \
  -H "x-api-key: your_api_key_here" \
  -F "file=@photo.jpg" \
  -F "fileId=image-001" \
  -F "referenceId=reference-001" \
  -F "tool=jpg-to-pdf"

Options

An optional options multipart field carrying a JSON object, validated synchronously before a credit is charged; a bad value is rejected with 400, not charged and not queued.

pageSizestring | object, optional"image" (default, each page sized from the image's own DPI), a named size (a4, a3, letter, legal), or { widthMm, heightMm }.
orientationstring, optional"auto" (default), "portrait", or "landscape": only meaningful with a fixed pageSize.
fitstring, optional"into" (default), "shrink", or "fill": how the image fits a fixed page size.
marginMmnumber, optional0 to 50, default 0.
dpinumber, optional72 to 1200. Overrides each image's own DPI metadata, only used with pageSize: "image".
autoOrientboolean, optionalDefault true: rotate pages per each image’s EXIF orientation.
onBadInputstring, optional"fail" (default) or "skip": skip an unreadable image instead of failing the whole job.
titlestring, optionalUp to 200 characters, set as the PDF’s title.

Response

Send the file field multiple times in the same request (up to 200 files), one per output page, in order. A multi-frame TIFF expands into one page per frame automatically. A single file still works as before.

Pricing

Billed per conversion, charged in full every time (not accumulated like DWG to PDF): $1 (1 credit) buys 5 conversions, at 0.2 credits each, however many images go into a single output PDF.

Failure reasons

Delivered via the webhook as outcome=failure with a reason below; see the docs index for the full delivery shape.

invalid_fileThe file could not be read, or was not the format this tool expects.
render_failedSomething failed during conversion that wasn’t a problem with the input itself.
timeoutThe job did not finish within its time budget.
internal_errorAn unexpected error on our side.
AnyConvert
A simple conversion API for teams that need documents turned into the right format, automatically.
Tools
PDF to WordMerge PDFJPG to PDFSign PDFEdit PDFCompress PDFExtract Text with CoordinatesView all tools →
Product
DocsPricing
Legal
Terms of ServicePrivacy PolicyRefund Policy
Support
support@anyconvert.app
© 2026 AnyConvert. All rights reserved.