Data Sources
Office to PDF
Convert Microsoft Office documents (Word, Excel, PowerPoint) natively into PDFs. This engine utilizes LibreOffice under the hood to guarantee high-fidelity document layout retention.
.docx
.xlsx
.pptx
.rtf
.txt
Implementation Example
Multipart Form Data Required
Office 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://api.pdfkong.com/v1/convert" \
-H "Authorization: Bearer YOUR_API_KEY" \
-F "file=@/path/to/your/report.docx" \
-o "report.pdf"
Parameters Explained
file
Required
The binary file content uploaded via
multipart/form-data. The engine automatically detects the office format (e.g., DOCX, XLSX) and converts it accordingly.