> ## 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.

# PDF Munk

> PDF Munk provides APIs for generating, converting, editing, securing, and extracting content from PDFs and images.

![PDF Munk logo](https://mintcdn.com/composio-preview/gqjBKmmJCINafaiK/images/toolkits/pdf_munk.svg?fit=max\&auto=format\&n=gqjBKmmJCINafaiK\&q=85\&s=f0d73370c6d0e484e5bd6e0e673aecdb)

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

## Tools

> [accordion] Convert Images to PDF
>
> **Slug:** `PDF_MUNK_CONVERT_IMAGES_TO_PDF`
>
> Combine one or more public images into a temporary hosted PDF in the supplied order, returning expiration metadata when available.
>
> #### Input Parameters
>
> **image\_urls** `array` *required*
>
> Image URLs to place into the PDF in order.
>
> **output\_filename** `string`
>
> Optional filename for the generated 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 PDF to Images
>
> **Slug:** `PDF_MUNK_CONVERT_PDF_TO_IMAGES`
>
> Convert selected pages of a public PDF into temporary hosted PNG, JPEG, or WebP images.
>
> #### Input Parameters
>
> **dpi** `integer`
>
> Rendering resolution in dots per inch.
>
> **url** `string` *required*
>
> Public URL of the PDF to convert.
>
> **page** `integer`
>
> One page to convert; omit when using pages.
>
> **pages** `string`
>
> Page range or list such as 1-3,5; do not provide page at the same time.
>
> **quality** `integer`
>
> Requested image quality from 1 to 100.
>
> **image\_format** `string ("png" | "jpg" | "jpeg" | "webp")`
>
> Image format for converted pages.
>
> #### 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] Generate Image
>
> **Slug:** `PDF_MUNK_GENERATE_IMAGE`
>
> Generate a temporary hosted PNG image from a public webpage URL or raw HTML, returning its scheduled deletion date.
>
> #### Input Parameters
>
> **url** `string`
>
> Public webpage URL to capture; leave html\_content unset when using this source.
>
> **font** `string`
>
> Google Font names separated by |.
>
> **width** `integer`
>
> Output image width in pixels; the account entitlement may cap it.
>
> **height** `integer`
>
> Output image height in pixels; the account entitlement may cap it.
>
> **quality** `integer`
>
> Requested output quality from 30 to 100.
>
> **full\_page** `boolean`
>
> Capture the full scrollable page instead of only the viewport.
>
> **wait\_until** `string ("load" | "domcontentloaded" | "networkidle")`
>
> Page lifecycle event to wait for before capture.
>
> **css\_content** `string`
>
> Optional CSS applied while rendering.
>
> **html\_content** `string`
>
> Raw HTML to render; leave url unset when using this source.
>
> **template\_variables** `object`
>
> Values that replace \{\{key}} tokens in HTML, such as \{\{name}} with \{'name': 'Ada'}.
>
> **device\_scale\_factor** `number`
>
> Device pixel ratio used for rendering.
>
> #### 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] Generate PDF
>
> **Slug:** `PDF_MUNK_GENERATE_PDF`
>
> Generate a hosted PDF from either a public webpage URL or raw HTML, with practical page and rendering controls. The operation consumes PDF generation quota and returns a temporary hosted URL.
>
> #### Input Parameters
>
> **url** `string`
>
> Public webpage URL to render; leave html\_content unset when using this source.
>
> **font** `string`
>
> Google Font names separated by |.
>
> **full\_page** `boolean`
>
> For URL input, render the full scrollable page.
>
> **landscape** `boolean`
>
> Render pages in landscape orientation.
>
> **max\_pages** `integer`
>
> Maximum number of pages to render (1-20; entitlement may impose a lower limit).
>
> **paper\_size** `string ("A4" | "A3" | "A5" | "Letter" | "Legal" | "Tabloid")`
>
> Output paper size.
>
> **css\_content** `string`
>
> Optional CSS applied to the supplied HTML or webpage.
>
> **html\_content** `string`
>
> Raw HTML to render; leave url unset when using this source.
>
> **viewport\_width** `integer`
>
> Browser viewport width in pixels.
>
> **viewport\_height** `integer`
>
> Browser viewport height in pixels.
>
> **print\_background** `boolean`
>
> Include CSS backgrounds in the PDF.
>
> **template\_variables** `object`
>
> Values that replace \{\{key}} tokens in HTML, such as \{\{customer\_name}} with \{'customer\_name': 'Ada Lovelace'}.
>
> **prefer\_css\_page\_size** `boolean`
>
> Prefer CSS @page sizing over paper\_size.
>
> **display\_header\_footer** `boolean`
>
> Display the page header and footer.
>
> #### 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] Merge PDFs
>
> **Slug:** `PDF_MUNK_MERGE_PDFS`
>
> Merge two to fifteen publicly accessible PDFs in the supplied order and return a temporary hosted PDF URL with its deletion date when available.
>
> #### Input Parameters
>
> **urls** `array` *required*
>
> Public PDF URLs to merge in order, from first page group to last.
>
> #### 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] OCR Image
>
> **Slug:** `PDF_MUNK_OCR_IMAGE`
>
> Extract text and line-level OCR results from an image available at a public URL.
>
> #### Input Parameters
>
> **language** `string`
>
> Tesseract language code or combination, such as eng or eng+hin.
>
> **image\_url** `string` *required*
>
> Public URL of the image to process.
>
> **ocr\_engine\_mode** `integer ("0" | "1" | "2" | "3")`
>
> Tesseract OCR engine mode from 0 to 3; use 3 to let Tesseract select the available engine.
>
> **page\_segmentation\_mode** `integer ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13")`
>
> Tesseract page segmentation mode from 0 to 13; use 3 for automatic layout detection or 6 for one uniform text block.
>
> #### 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] OCR PDF
>
> **Slug:** `PDF_MUNK_OCR_PDF`
>
> Extract text from a scanned PDF available at a public URL using OCR controls.
>
> #### Input Parameters
>
> **dpi** `integer`
>
> Rasterization DPI used before OCR.
>
> **url** `string` *required*
>
> Public URL of the scanned PDF to process.
>
> **pages** `string`
>
> Pages to process: all, ranges, or a list such as 1,3,5-7.
>
> **language** `string`
>
> Tesseract language code or combination, such as eng or eng+hin.
>
> **ocr\_engine\_mode** `integer ("0" | "1" | "2" | "3")`
>
> Tesseract OCR engine mode from 0 to 3; use 3 to let Tesseract select the available engine.
>
> **page\_segmentation\_mode** `integer ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "13")`
>
> Tesseract page segmentation mode from 0 to 13; use 3 for automatic layout detection or 6 for one uniform text block.
>
> #### 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] Parse PDF
>
> **Slug:** `PDF_MUNK_PARSE_PDF`
>
> Extract text, layout blocks, tables, or full structured content from a PDF available at a public URL.
>
> #### Input Parameters
>
> **url** `string` *required*
>
> Public URL of the PDF to parse.
>
> **mode** `string ("text" | "layout" | "tables" | "full")`
>
> Extraction detail to return.
>
> **pages** `string`
>
> Pages to parse: all, one page number, or a range such as 1-3.
>
> #### 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] Watermark File
>
> **Slug:** `PDF_MUNK_WATERMARK_FILE`
>
> Add a text watermark to a PDF or image at a public URL, requesting a hosted result. The response may include a PDF-specific result URL; its output field can instead contain the output mode.
>
> #### Input Parameters
>
> **text** `string` *required*
>
> Text to place as the watermark.
>
> **angle** `integer`
>
> Watermark rotation angle in degrees.
>
> **opacity** `number`
>
> Watermark opacity from transparent (0) to opaque (1).
>
> **file\_url** `string` *required*
>
> Public URL of the PDF or image to watermark.
>
> **font\_size** `integer`
>
> Watermark font size.
>
> #### 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
