Volver al catálogo

API2PDF

api2pdf

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.

Acciones
9
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (9)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Add Header FooterAPI2PDF_ADD_HEADER_FOOTERAcción

Tool to add headers and footers to a pdf document. use when you need consistent page numbering, titles, or custom branding on every page.

Parámetros de entrada

  • htmlstringObligatorio

    Raw HTML content to convert into a PDF. Must include any page structure needed.

  • optionsobject

    Advanced options for header and footer display in the PDF.

  • fileNamestring

    Desired filename for the generated PDF (e.g., 'report.pdf'). If omitted, the API assigns a random name.

  • inlinePdfboolean

    If true, returns the PDF inline as base64; otherwise, returns a download URL.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete PDFAPI2PDF_DELETE_PDFAcción

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

Parámetros de entrada

  • response_idstringObligatorio

    Unique identifier of the PDF to delete.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Extract PDF PagesAPI2PDF_EXTRACT_PAGESAcción

Tool to extract specific pages from a pdf document. use when you need only certain pages from a larger pdf file.

Parámetros de entrada

  • endinteger

    Zero-based index of the last page to extract. Negative values count from end. Defaults to last page.

  • urlstringObligatoriouri

    URL of the source PDF (must start with http:// or https://).

  • startinteger

    Zero-based index of the first page to extract. Negative values count from end (-1 is last page). Defaults to first page.

  • inlineboolean

    If true, returns the PDF inline; otherwise returns a download URL. Default is true.

  • fileNamestring

    Desired filename for the extracted PDF (e.g., 'pages.pdf'). Random name if omitted.

  • extraHTTPHeadersobject

    Key-value object specifying headers when fetching the source PDF.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

LibreOffice PDF to HTMLAPI2PDF_LIBREOFFICE_PDF_TO_HTMLAcción

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

Parámetros de entrada

  • urlstringObligatoriouri

    Direct URL to the source PDF file.

  • inlineboolean

    If true, returns HTML content inline in the JSON response; otherwise returns a URL.

  • fileNamestring

    Desired filename for the output HTML file (e.g., 'output.html').

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

LibreOffice ThumbnailAPI2PDF_LIBREOFFICE_THUMBNAILAcción

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.

Parámetros de entrada

  • urlstringObligatoriouri

    Direct URL to the PDF or Office document to thumbnail.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Merge PDFsAPI2PDF_MERGE_PDFSAcción

Tool to merge multiple pdf documents into a single pdf. use when you need to concatenate several pdfs on the server-side.

Parámetros de entrada

  • urlsstring[]Obligatorio

    List of URLs pointing to the PDFs to merge

  • inlineboolean

    If true, open the merged PDF in the browser; otherwise force download

  • storageobject

    Custom storage settings for uploading the merged PDF.

  • fileNamestring

    Desired filename for the merged PDF (e.g., 'output.pdf'). Random name if omitted

  • extraHTTPHeadersobject

    Optional headers to use when fetching each source PDF

  • useCustomStorageboolean

    When true, upload the merged PDF via the provided storage settings

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Optimize PDFAPI2PDF_OPTIMIZE_PDFAcción

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.

Parámetros de entrada

  • urlstringObligatoriouri

    URL of the PDF file to optimize. Must start with http:// or https://

  • inlineboolean

    If true, open the optimized PDF in a browser window. Defaults to True.

  • storageobject

    Custom storage options: method, url, extraHTTPHeaders. Required if useCustomStorage is true.

  • fileNamestring

    Filename for the output PDF. Random name if omitted.

  • extraHTTPHeadersobject

    Headers to include when fetching the source PDF.

  • useCustomStorageboolean

    Whether to use custom storage options (see `storage`). Defaults to False.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Reorder PDF PagesAPI2PDF_REORDER_PAGESAcción

Tool to reorder pages of a pdf document. use when you need to rearrange pages into a new order by specifying page indices.

Parámetros de entrada

  • urlstringObligatoriouri

    URL of the source PDF to reorder (must start with http:// or https://).

  • pagesinteger[]Obligatorio

    List of zero-based page indices defining the new order (e.g., [2,0,1] for pages 3,1,2].

  • inlineboolean

    If true, returns the PDF inline; otherwise returns a download URL.

  • storageobject

    Custom storage settings for uploading the PDF file.

  • fileNamestring

    Desired filename for the reordered PDF (e.g., 'reordered.pdf'). Random name if omitted.

  • extraHTTPHeadersobject

    Key-value headers when fetching the source PDF.

  • useCustomStorageboolean

    When true, upload the final PDF via provided storage settings.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Generate Barcode or QR CodeAPI2PDF_ZEBRA_GENERATE_BARCODEAcción

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

Parámetros de entrada

  • valuestringObligatorio

    The text value to encode in the barcode or QR code.

  • widthinteger

    Width of the generated image in pixels.

  • formatstringObligatorio

    Barcode format to generate. Most common values: CODE_39 or QR_CODE.

  • heightinteger

    Height of the generated image in pixels.

  • showlabelboolean

    If true, display the human-readable text label below the barcode image.

Parámetros de salida

  • dataobjectObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not