Documentation

Operations

Each operation is a POST /v1/pdf/<operation> request with JSON: the file_id of the uploaded file (or file_ids for operations on several files: merging, photos and images) and parameters. The response is 202 and a task_id; then see status and download.

OperationRequestMCP toolPrice unit
To PDF
Word to PDFPOST /v1/pdf/word-to-pdfword_to_pdf10 MB
JPG to PDFPOST /v1/pdf/jpg-to-pdfjpg_to_pdf10 MB of all files
Photo to PDFPOST /v1/pdf/photo-to-pdfphoto_to_pdf10 MB of all files
Excel to PDFPOST /v1/pdf/xlsx-to-pdfxlsx_to_pdf10 MB
PowerPoint to PDFPOST /v1/pdf/pptx-to-pdfpptx_to_pdf10 MB
DjVu to PDFPOST /v1/pdf/djvu-to-pdfdjvu_to_pdf10 MB
FB2 to PDFPOST /v1/pdf/fb2-to-pdffb2_to_pdf10 MB
EPUB to PDFPOST /v1/pdf/epub-to-pdfepub_to_pdf10 MB
HTML to PDFPOST /v1/pdf/html-to-pdfhtml_to_pdf10 MB
From PDF
PDF to WordPOST /v1/pdf/to-wordpdf_to_word10 MB or 50 pages
PDF to JPGPOST /v1/pdf/to-jpgpdf_to_jpg10 MB or 50 pages (300 dpi: 25)
PDF to PNGPOST /v1/pdf/to-pngpdf_to_png10 MB
PDF to ExcelPOST /v1/pdf/to-excelpdf_to_excel10 MB or 50 pages
PDF to PowerPointPOST /v1/pdf/to-pptxpdf_to_pptx10 MB or 50 pages
PDF to MarkdownPOST /v1/pdf/to-markdownpdf_to_markdown10 MB or 50 pages
PDF to textPOST /v1/pdf/to-txtpdf_to_txt10 MB
Images
Compress imagePOST /v1/pdf/compress-imagecompress_image10 MB of all files
HEIC to JPGPOST /v1/pdf/heic-to-jpgheic_to_jpg10 MB of all files
Image to textPOST /v1/pdf/image-to-textimage_to_text10 MB of all files or 10 photos
PNG to JPGPOST /v1/pdf/png-to-jpgpng_to_jpg10 MB of all files
JPG to PNGPOST /v1/pdf/jpg-to-pngjpg_to_png10 MB of all files
WEBP to JPGPOST /v1/pdf/webp-to-jpgwebp_to_jpg10 MB of all files
Resize imagePOST /v1/pdf/resize-imageresize_image10 MB of all files
Crop imagePOST /v1/pdf/crop-imagecrop_image10 MB
Rotate imagePOST /v1/pdf/rotate-imagerotate_image10 MB of all files
Word to JPGPOST /v1/pdf/word-to-jpgword_to_jpg10 MB
Manage
PDF editorPOST /v1/pdf/editedit_pdf10 MB
Compress PDFPOST /v1/pdf/compresscompress_pdf10 MB
Grayscale PDFPOST /v1/pdf/grayscalegrayscale_pdf10 MB
PDF to PDF/APOST /v1/pdf/to-pdfapdf_to_pdfa10 MB
Repair PDFPOST /v1/pdf/repairrepair_pdf10 MB
Merge PDFPOST /v1/pdf/mergemerge_pdfs10 MB of all files
Split PDFPOST /v1/pdf/splitsplit_pdf10 MB
OCR PDFPOST /v1/pdf/ocrocr_pdf10 MB or 10 pages
Flatten PDFPOST /v1/pdf/flattenflatten_pdf10 MB
Pages
Delete pagesPOST /v1/pdf/delete-pagesdelete_pages10 MB
Crop PDFPOST /v1/pdf/cropcrop_pdf10 MB
Extract pagesPOST /v1/pdf/extract-pagesextract_pages10 MB
Rotate pagesPOST /v1/pdf/rotaterotate_pdf10 MB
Reorder pagesPOST /v1/pdf/reorder-pagesreorder_pages10 MB
Add page numbersPOST /v1/pdf/add-page-numbersadd_page_numbers10 MB
Sign & protect
Sign PDFPOST /v1/pdf/signsign_pdf10 MB
Protect PDFPOST /v1/pdf/protectprotect_pdf10 MB
Unlock PDFPOST /v1/pdf/unlockunlock_pdf10 MB
Redact personal dataPOST /v1/pdf/redactredact_pdf10 MB
Find personal dataPOST /v1/pdf/find-personal-datafind_personal_data10 MB
Add watermarkPOST /v1/pdf/watermarkwatermark_pdf10 MB

Common parameter

All operations accept an optional webhook_url — an https address: when the operation finishes, SmartPDF sends a POST request with the result and a signature to it. Details: Webhooks.

Operation chains

The PDF result of one operation can be passed straight to the next one — without downloading and re-uploading it:

curl -X POST https://api.smartpdf.ru/v1/upload/from-task/$TASK_ID -H "X-API-Key: $SMARTPDF_API_KEY"

The response is the same as for an upload: a new file_id that’s valid for an hour. This way you can, for example, recognize the text in a scan and then compress the result. It works only for PDF results (otherwise 422); before the operation finishes, you get 409, and after the result is deleted, 410. On the Free plan, this doesn’t use up the one-time download link. Each operation in a chain is paid for separately.

This page for agents: Markdown · llms.txt