apyhub
FILE CONVERSION

Convert Word to PDF API

What it does

Word to PDF Converter turns a Word document into a PDF from a file upload, a remote URL, or base64-encoded content. You can download the PDF directly or request a signed link, depending on how you want to handle the output in your app.

Send a .doc, .docx, .odt, or .rtf file in body.file, a document URL in body.url, or base64 file bytes in body.base64. The conversion endpoints return either a binary PDF download or an object with data, a signed URI to the generated PDF. The download variants also accept landscape as a query boolean to control page orientation.

Use Word to PDF Converter when you need to generate printable documents from uploads, third-party document links, or stored file bytes. Common cases include turning user-submitted contracts into PDFs, exporting reports from a document store, or returning a finished PDF to another service without exposing the original file.

▣ ENDPOINT 01 / 06
POST
Convert Word document upload to PDF download (PDF-01)
https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/file/download

QUICKSTART

GUIDE

Quickstart

Upload a Word document to convert it into a PDF download.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/file/download?output=output.pdf" \
  -H "apy-token: $APY_TOKEN" \
  -F "file=@/path/to/document.docx"

What you'll get back

Returns a binary file download, which is the converted PDF.

(binary PDF file)
TRY ITLIVE · 60 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, or .rtf

About this endpoint

What it does

Converts an uploaded Word document into a PDF and returns the PDF as a binary download. The request sends the source file in the body, and the response is the generated PDF file.

Query Parameter(s)

AttributeTypeMandatoryDescription
outputStringNoOutput filename for the generated PDF.
landscapeBooleanNoWhether to generate the PDF in landscape mode. Default: false.

Request Body

ParameterTypeMandatoryDescription
fileStringYesThe document to convert. Binary upload. Supported formats: .doc, .docx, .odt, or .rtf.

Response

Returns a binary file containing the converted PDF. The success response is a raw binary download rather than a JSON object.

ParameterTypeMandatoryDescription
responseStringYesBinary PDF content returned by the endpoint.

Query parameters

Name
Type
Description
outputOPTIONAL
string
landscapeOPTIONAL
boolean
DEFAULT false

Body

Name
Type
Description
bodyREQUIRED
object

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

▣ ENDPOINT 02 / 06
POST
Convert Word document upload to PDF signed link (PDF-01)
https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/file/link

QUICKSTART

GUIDE

Quickstart

Upload a Word file to convert it to PDF.

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

What you'll get back

Returns a JSON object with a data string field containing the URI of the generated PDF.

{
  "data": "https://example.com/output.pdf"
}
TRY ITLIVE · 60 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*

About this endpoint

What it does

Converts an uploaded Word document into a PDF and returns a signed link to the generated PDF. The request uploads the source file, and the response contains the resulting PDF URL as a string.

Query Parameter(s)

AttributeTypeMandatoryDescription
landscapeBooleanNoDefault: false. When true, the PDF is generated in landscape orientation.

Request Body

ParameterTypeMandatoryDescription
fileStringYesThe Word document file to convert. Must be sent as binary data.

Response

Returns a JSON object with a data string field containing a URI to the generated PDF. The data field is required in the success response.

ParameterTypeMandatoryDescription
dataStringYesA signed link to the converted PDF file.

Query parameters

Name
Type
Description
landscapeOPTIONAL
boolean
DEFAULT false

Body

Name
Type
Description
bodyREQUIRED
object

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

▣ ENDPOINT 03 / 06
POST
Convert remote Word document URL to PDF download (PDF-01)
https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/url/download

QUICKSTART

GUIDE

Quickstart

Convert a Word file from a public URL into a PDF. This minimal call sends the required document URL only.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/url/download" \
  -H "apy-token: $APY_TOKEN" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.docx"}'

What you'll get back

Returns the PDF as binary data, not a JSON object.

TRY ITLIVE · 60 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.
body*

About this endpoint

What it does

Converts a remote Word document at the given URL into a PDF and returns the generated file as binary content.

Query Parameter(s)

AttributeTypeMandatoryDescription
landscapeBooleanNoOptional page orientation flag. Default: false.

Request Body

ParameterTypeMandatoryDescription
urlStringYesThe remote Word document URL to convert. Must be a valid URI.

Response

Returns binary PDF content as the success response. The output schema is a string with binary format, so the response body is the downloadable PDF file.

ParameterTypeMandatoryDescription
(binary body)StringYesPDF file content returned by the endpoint.

Query parameters

Name
Type
Description
landscapeOPTIONAL
boolean
DEFAULT false

Body

Name
Type
Description
bodyREQUIRED
object
▣ ENDPOINT 04 / 06
POST
Convert remote Word document URL to PDF signed link (PDF-01)
https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/url/link

QUICKSTART

GUIDE

Quickstart

Convert a Word document from a public URL into a PDF.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/url/link" \
  -H "apy-token: $APY_TOKEN" \
  -d '{"url":"https://assets.apyhub.com/samples/sample.docx"}'

What you'll get back

Returns a JSON object with a data string field containing the URI of the generated PDF.

{
  "data": "https://..."
}
TRY ITLIVE · 60 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.
body*

About this endpoint

What it does

Converts a remote Word document accessible by URL into a PDF and returns a signed link to the generated PDF. The request sends the source document URL, and the response contains the PDF URL.

Request Body

ParameterTypeMandatoryDescription
urlStringYesRemote Word document URL. Must be a URI.

Response

Returns a JSON object with a data string field containing a URI to the generated PDF file.

ParameterTypeMandatoryDescription
dataStringYesSigned PDF URL returned by the conversion.

Body

Name
Type
Description
bodyREQUIRED
object
▣ ENDPOINT 05 / 06
POST
Convert base64-encoded Word document to PDF download (PDF-01)
https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/base64/download

QUICKSTART

GUIDE

Quickstart

Convert a Word file from a base64 string into a downloadable PDF.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/base64/download" \
  -H "apy-token: $APY_TOKEN" \
  -d '{"base64":"SGVsbG8gV29ybGQh"}'

What you'll get back

Returns a binary file response (format: binary) containing the converted PDF.

TRY ITLIVE · 60 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.
body*
Base64-encoded file bytes.

About this endpoint

What it does

Converts a base64-encoded Word document into a PDF and returns the PDF as a binary download. The request sends the document bytes in the body and can optionally request landscape orientation through a query parameter.

Query Parameter(s)

AttributeTypeMandatoryDescription
landscapeBooleanNoPDF orientation flag. Default: false.

Request Body

ParameterTypeMandatoryDescription
base64StringYesBase64-encoded file bytes.

Response

Returns a binary file download containing the generated PDF. The output schema is a binary string, so there is no JSON object wrapper or named response fields to parse.

Query parameters

Name
Type
Description
landscapeOPTIONAL
boolean
DEFAULT false

Body

Name
Type
Description
bodyREQUIRED
object
▣ ENDPOINT 06 / 06
POST
Convert base64-encoded Word document to PDF signed link (PDF-01)
https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/base64/link

QUICKSTART

GUIDE

Quickstart

Convert a Word file from a base64 string into a PDF link with a single request.

curl -X POST "https://api.eu.apyverse.com/apyhub/convert-word-to-pdf/base64/link" \
  -H "apy-token: $APY_TOKEN" \
  -d '{"base64":"JVBERi0xLjQKJc..." }'

What you'll get back

Returns a JSON object with a data string field containing a URI to the generated PDF.

{
  "data": "https://example.com/generated-file.pdf"
}
TRY ITLIVE · 60 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.
body*
Base64-encoded file bytes.

About this endpoint

What it does

Converts a base64-encoded Word document into a PDF and returns a signed PDF link. The request sends the document bytes as a base64 string, and the response contains a URL string for the generated PDF.

Request Body

ParameterTypeMandatoryDescription
base64StringYesBase64-encoded file bytes.

Response

Returns a JSON object with a data string field formatted as a URI — the signed link to the generated PDF.

ParameterTypeMandatoryDescription
dataStringYesSigned PDF link returned as a URI.

Body

Name
Type
Description
bodyREQUIRED
object
▣ 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.