Convert to PDF
Turn Word, Excel, PowerPoint, images and EPUB into PDF.
POST /v1/convert/pdf takes one file in the document field and answers with a PDF. The
conversion runs on the NexPDF engine, with no Office or LibreOffice behind it, so layout, fonts and
tables come out the same every time.
Accepted: Word (.docx), Excel (.xlsx), PowerPoint (.pptx), EPUB, JPEG and PNG images, and
PDF (passed through, so you can use the same call for any upload).
Cost: 1 unit per file.
Convert one file
curl https://api.nexpdf.dev/v1/convert/pdf \
-H "Authorization: Bearer $NEXPDF_API_KEY" \
-F document=@report.docx \
-o report.pdfImages to one PDF
To join several images or documents into one PDF, list them as parts of a build. Without output, a build makes a PDF.
curl https://api.nexpdf.dev/v1/build \
-H "Authorization: Bearer $NEXPDF_API_KEY" \
-F front=@front.jpg \
-F back=@back.png \
-F 'instructions={
"parts": [
{
"file": "front"
},
{
"file": "back"
}
]
}' \
-o id-card.pdfRelated
- HTML to PDF
- Merge and pages
- PDF/A, to make the result fit for archiving in the same call