> ## Documentation Index
> Fetch the complete documentation index at: https://composio-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# FileToPDF.dev

> Convert files, HTML, and Markdown into PDF documents through the FileToPDF.dev API.

![FileToPDF.dev logo](https://mintcdn.com/composio-preview/r7CO9m4_UWMVFnU7/images/toolkits/filetopdf.svg?fit=max\&auto=format\&n=r7CO9m4_UWMVFnU7\&q=85\&s=e29627afd0d7dad5b9972ed11073e529)

* **Category:** documents
* **Auth:** API\_KEY
* **Composio-managed OAuth available?** N/A
* **Tools:** 4
* **Triggers:** 0
* **Slug:** `FILETOPDF`
* **Version:** 00000000\_00

## Tools

> [accordion] Convert File URL to PDF
>
> **Slug:** `FILETOPDF_CONVERT_FILE_URL_TO_PDF`
>
> Convert a file at a public HTTPS URL to PDF, consuming one conversion credit and returning a downloadable PDF. The URL path must end with a supported file extension. Check GET\_ACCOUNT\_STATUS for remaining credits.
>
> #### Input Parameters
>
> **url** `string` *required*
>
> Public HTTPS URL of the source file. Its path must end with a supported file extension such as .docx, .xlsx, .pptx, .png, or .jpg.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Convert HTML to PDF
>
> **Slug:** `FILETOPDF_CONVERT_HTML_TO_PDF`
>
> Render an HTML string as a PDF, consuming one conversion credit and returning a downloadable PDF. Check GET\_ACCOUNT\_STATUS for remaining credits.
>
> #### Input Parameters
>
> **html** `string` *required*
>
> HTML document or fragment to render as PDF.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Convert Markdown to PDF
>
> **Slug:** `FILETOPDF_CONVERT_MARKDOWN_TO_PDF`
>
> Render a GitHub-Flavored Markdown string as a PDF. A successful conversion consumes one conversion credit and returns a downloadable PDF. Check GET\_ACCOUNT\_STATUS for remaining credits.
>
> #### Input Parameters
>
> **markdown** `string` *required*
>
> GitHub-Flavored Markdown content to render as PDF.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not

> [accordion] Get Account Status
>
> **Slug:** `FILETOPDF_GET_ACCOUNT_STATUS`
>
> Return the connected FileToPDF workspace plan, subscription status, and remaining conversion credits without consuming a credit.
>
> #### Output
>
> **data** `string` *required*
>
> Data from the action execution
>
> **error** `string`
>
> Error if any occurred during the execution of the action
>
> **successful** `boolean` *required*
>
> Whether or not the action execution was successful or not
