---
title: "Doc To Pdf"
method: POST
path: "/v1/convert/doc-to-pdf"
tags: ["v1", "v1-convert"]
---

# Doc To Pdf

`POST /v1/convert/doc-to-pdf`

## Request

- Base URL: `https://api.enconvert.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.enconvert.com/v1/convert/doc-to-pdf`
- Auth: none declared

Convert Word document to PDF

Args:
    file: Word document (.doc) to convert
    output_filename: Optional custom output filename. If not provided, uses input filename with .pdf extension.
    direct_download: If True (default), return file directly. Set to False for JSON metadata.
    pdf_options: Optional JSON string. Supports 'grayscale' only — this
        format is rendered by LibreOffice, whose page layout comes from the
        source document — so an explicitly-set geometry option (page_size,
        page_width/height, orientation, margins, scale, header, footer) is
        rejected with a 400.

## Headers

- `X-API-Key` string, nullable
- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/enconvert/apis/conversion-api.md) · [All operations](https://skmtc.dev/enconvert/apis/conversion-api/llms.txt) · [OpenAPI document](https://skmtc.dev/enconvert/apis/conversion-api/revisions/b8c820393569?raw)
