apyhub
Back
▣ INGESTION KIT · DOCUMENT INTELLIGENCE KIT

Convert Office Documents to PDF API

What it does

Office to PDF converts common office files into a PDF binary you can store, share, or archive. Send a document, spreadsheet, presentation, or text file and get a PDF back.

Use the file upload with one of the supported formats: doc, docx, odt, rtf, txt, xls, xlsx, ods, csv, ppt, pptx, or odp. The request also accepts pdfa when you need an archival PDF/A output, with PDF/A-1b, PDF/A-2b, or PDF/A-3b available. Set landscape to true if you need wider page layout.

The response is a binary PDF, so it fits cleanly into document pipelines, download flows, and file-generation jobs. A typical use case is converting uploaded office attachments into a consistent PDF format before long-term storage, review, or downstream extraction.

Use Office to PDF when you want a predictable PDF output from user-uploaded office documents without adding conversion logic to your app.

POST
Office to PDF
https://api.eu.apyhub.com/frolic/convert-office-documents-to-pdf/office-to-pdf

QUICKSTART

GUIDE

Quickstart

Convert an Office document to a PDF by uploading the source file as multipart form data.

curl -X POST "https://api.eu.apyhub.com/frolic/convert-office-documents-to-pdf/office-to-pdf" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.docx"

What you'll get back

Returns a binary file (string with format: binary) containing the generated PDF.

<PDF file content>
TRY ITLIVE · 25 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.
body
doc, docx, odt, rtf, txt, xls, xlsx, ods, csv, ppt, pptx or odp
Archival format: PDF/A-1b, PDF/A-2b or PDF/A-3b
Landscape pages

About this endpoint

What it does

Converts an uploaded Office or text file to a PDF document and returns the resulting PDF as binary output.

Request Body

ParameterTypeMandatoryDescription
fileStringYesBinary file input. Supported formats: doc, docx, odt, rtf, txt, xls, xlsx, ods, csv, ppt, pptx, or odp.
pdfaENUMNoArchival output format. Allowed values: PDF/A-1b, PDF/A-2b, PDF/A-3b.
landscapeBooleanNoLandscape pages. Default: false.

Response

Returns a binary PDF file as the successful response body.

ParameterTypeMandatoryDescription
binaryStringYesThe generated PDF file content returned as binary data.

Max 100MB total per request (all files combined). Larger? Use this API's URL-based endpoint instead, if it has one.

▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.