Api2Pdf

Learn how to use Api2Pdf with Composio

Overview

Enum

API2PDF

Description

Api2Pdf is a REST API that enables developers to generate PDFs from HTML, URLs, and various document formats using engines like wkhtmltopdf, Headless Chrome, and LibreOffice.

Authentication Details

api_key
stringRequired

Actions

Tool to delete a previously generated pdf. use when you need to immediately remove a pdf by its response id.

Action Parameters

response_id
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to extract specific pages from a pdf document. use when you need only certain pages from a larger pdf file.

Action Parameters

end
integer
extraHTTPHeaders
object
fileName
string
inline
booleanDefaults to True
start
integer
url
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to convert a pdf document to html using libreoffice. use when you need html output of a pdf file (experimental; images may be excluded).

Action Parameters

fileName
string
inline
boolean
url
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to generate a thumbnail image of a document using libreoffice. use when you need a quick visual preview of a pdf or office file's first page.

Action Parameters

url
stringRequired

Action Response

data
object
error
string
successful
boolean
Tool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side.

Action Parameters

extraHTTPHeaders
object
fileName
string
inline
booleanDefaults to True
storage
object
urls
arrayRequired
useCustomStorage
boolean

Action Response

data
object
error
string
successful
boolean
Tool to optimize a pdf document to reduce file size while maintaining quality. use when you need to minimize storage or bandwidth for an existing pdf.

Action Parameters

extraHTTPHeaders
object
fileName
string
inline
booleanDefaults to True
storage
object
url
stringRequired
useCustomStorage
boolean

Action Response

data
object
error
string
successful
boolean
Tool to reorder pages of a pdf document. use when you need to rearrange pages into a new order by specifying page indices.

Action Parameters

extraHTTPHeaders
object
fileName
string
inline
booleanDefaults to True
pages
arrayRequired
storage
object
url
stringRequired
useCustomStorage
boolean

Action Response

data
object
error
string
successful
boolean
Tool to generate barcodes or qr codes using zebra crossing (zxing). use when you need a barcode or qr code image from text values.

Action Parameters

format
stringRequired
height
integer
showlabel
boolean
value
stringRequired
width
integer

Action Response

data
object
error
string
successful
boolean