# convert_to_pdf: Convert to PDF

Make a PDF from Word, Excel or PowerPoint files, images (one page each, in order), an EPUB, or a public web page (url). For content you write yourself, use create_pdf.

A tool of the [FynePDF MCP server](https://fynepdf.com/developers/docs/mcp) (`https://api.fynepdf.com/mcp`). Makes a new file; the original is kept.

## Ask for it

- "Make this Word document a PDF."
- "Save this web page as a PDF."

## Inputs

| Input | Type | Required | What it does |
|---|---|---|---|
| `file_ids` | array of string |  | FynePDF file_ids, in order. |
| `files` | array of object |  | Files the person attached in ChatGPT, in order (filled in by ChatGPT). |
| `file_urls` | array of string |  | Public links to the files, in order. |
| `library_file_id` | string |  | A file from the person's FynePDF Library (from list_library_files). |
| `url` | string |  | A public web page to render as a PDF. |
| `page_layout` | "desktop" · "tablet" · "mobile" |  | For url. |

## The same over HTTP

From your own code, call [Office to PDF API](https://fynepdf.com/developers/docs/api/office-to-pdf), [Image to PDF API](https://fynepdf.com/developers/docs/api/image-to-pdf), [EPUB to PDF API](https://fynepdf.com/developers/docs/api/epub-to-pdf), [HTML to PDF API](https://fynepdf.com/developers/docs/api/html-to-pdf).

## Connect it

[Claude](https://fynepdf.com/developers/docs/mcp/claude) · [ChatGPT](https://fynepdf.com/developers/docs/mcp/chatgpt) · [Cursor](https://fynepdf.com/developers/docs/mcp/cursor) · [VS Code](https://fynepdf.com/developers/docs/mcp/vscode) · [Claude Code](https://fynepdf.com/developers/docs/mcp/claude-code)


---

Open this page in a browser: https://fynepdf.com/developers/docs/mcp/tools/convert_to_pdf

More: [All tools](https://fynepdf.com/tools) · [AI agents](https://fynepdf.com/ai/agents) · [llms.txt](https://fynepdf.com/llms.txt) · [Sitemap](https://fynepdf.com/sitemap.xml)
