Volver al catálogo

PDF Blocks

pdf_blocks

PDF Blocks provides synchronous API operations for merging, splitting, watermarking, securing, and reorganizing PDF documents.

Acciones
17
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 (17)

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 Image WatermarkPDF_BLOCKS_ADD_IMAGE_WATERMARKAcción

Add a PNG or JPEG image as a watermark on all or selected PDF pages.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to watermark.

  • imageobjectObligatorio

    PNG or JPEG image to use as the watermark.

  • pagesstring

    One-based pages and ranges to watermark, such as '1,3..5'; omit to watermark every page.

  • marginnumber

    Margin from the page border in inches.

  • transparencyinteger

    Watermark transparency percentage, where 0 is opaque and 100 is fully transparent.

Parámetros de salida

  • dataanyObligatorio

    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

Add PDF PasswordPDF_BLOCKS_ADD_PASSWORDAcción

Create an encrypted copy of a PDF that requires a password to open.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to encrypt.

  • passwordstringObligatoriopassword

    Printable ASCII password required to open the output PDF. This secret is sent only to PDF Blocks and is never returned.

  • encryption_algorithmstringenum

    Encryption algorithm for the output PDF.

    AES-128AES-256

Parámetros de salida

  • dataanyObligatorio

    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

Add PDF RestrictionsPDF_BLOCKS_ADD_RESTRICTIONSAcción

Create an encrypted PDF copy with explicit permissions for copying, editing, printing, forms, assembly, and accessibility. Permissions are allowed by default; set an allow_* parameter to false to restrict that capability.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to protect with permission restrictions.

  • allow_printboolean

    Allow printing the PDF.

  • user_passwordstringpassword

    Optional printable ASCII password required to open the PDF. Omit it to allow opening without a password. This secret is never returned.

  • owner_passwordstringObligatoriopassword

    Printable ASCII owner password that controls future permission changes. This secret is never returned.

  • allow_fill_formboolean

    Allow filling interactive form fields.

  • allow_copy_contentboolean

    Allow copying content from the PDF.

  • allow_accessibilityboolean

    Allow accessibility tools to extract content.

  • allow_change_contentboolean

    Allow changing PDF content.

  • encryption_algorithmstringenum

    Encryption algorithm for the restricted PDF.

    AES-128AES-256
  • allow_assemble_documentboolean

    Allow document assembly operations such as inserting or rotating pages.

  • allow_comment_and_fill_formboolean

    Allow comments and interactive form filling.

  • allow_print_high_resolutionboolean

    Allow high-resolution printing when printing is allowed.

Parámetros de salida

  • dataanyObligatorio

    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

Add Text WatermarkPDF_BLOCKS_ADD_TEXT_WATERMARKAcción

Add up to three styled text lines as a watermark on all or selected PDF pages.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to watermark.

  • colorstringenum

    Watermark text color.

    RedBlueGrayBlack
  • pagesstring

    One-based pages and ranges to watermark, such as '1,3..5'; omit to watermark every page.

  • line_1stringObligatorio

    First watermark line using standard Latin characters.

  • line_2string

    Optional second watermark line.

  • line_3string

    Optional third watermark line.

  • marginnumber

    Margin from the page border in inches.

  • templateintegerenum

    Watermark layout template. IDs 1001-1005 are filled and 1017-1021 are outline; within each set, the layouts are diagonal bottom-left to top-right, diagonal top-left to bottom-right, horizontal, vertical reading upward, and vertical reading downward, respectively.

    1001100210031004100510171018101910201021
  • transparencyinteger

    Watermark transparency percentage, where 0 is opaque and 100 is fully transparent.

Parámetros de salida

  • dataanyObligatorio

    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 PagesPDF_BLOCKS_EXTRACT_PAGESAcción

Create a PDF containing selected source pages in their original order.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file from which to extract pages.

  • pagesstring

    Set of one-based pages and inclusive '..' ranges, such as '1,3..5'; order and duplicates are ignored. Omit to include all pages.

Parámetros de salida

  • dataanyObligatorio

    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 PDFsPDF_BLOCKS_MERGE_PDFSAcción

Merge PDF files into one PDF in the exact order provided.

Parámetros de entrada

  • filesobject[]Obligatorio

    PDF files to merge, in output order; repeated files are allowed.

Parámetros de salida

  • dataanyObligatorio

    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

Remove PDF PagesPDF_BLOCKS_REMOVE_PAGESAcción

Create a PDF with selected pages removed while preserving the remaining page order.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file from which to remove pages.

  • pagesstringObligatorio

    Set of one-based pages and inclusive '..' ranges to remove, such as '2,4..6'; at least one page must remain.

Parámetros de salida

  • dataanyObligatorio

    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

Remove PDF PasswordPDF_BLOCKS_REMOVE_PASSWORDAcción

Create an unencrypted copy of a password-protected PDF using its current password.

Parámetros de entrada

  • fileobjectObligatorio

    Encrypted PDF file to decrypt.

  • passwordstringObligatoriopassword

    Current PDF password. This secret is sent only to PDF Blocks and is never returned.

Parámetros de salida

  • dataanyObligatorio

    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

Remove PDF RestrictionsPDF_BLOCKS_REMOVE_RESTRICTIONSAcción

Create a PDF copy with permission restrictions cleared.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file whose permission restrictions should be cleared.

Parámetros de salida

  • dataanyObligatorio

    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

Remove PDF SignaturesPDF_BLOCKS_REMOVE_SIGNATURESAcción

Create a PDF copy with all digital signatures and timestamps removed.

Parámetros de entrada

  • fileobjectObligatorio

    Signed PDF file from which to remove digital signatures and timestamps.

Parámetros de salida

  • dataanyObligatorio

    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 PagesPDF_BLOCKS_REORDER_PAGESAcción

Create a PDF in an exact page order, optionally dropping or repeating source pages.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file whose pages should be reordered.

  • page_orderstringObligatorio

    Exact output order using comma-separated one-based pages and inclusive '..' ranges. Omitted pages are dropped, duplicates repeat pages, negative indexes count from the end, and ranges may run backward; for example '3,1..2,-1'.

Parámetros de salida

  • dataanyObligatorio

    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

Reverse PDF PagesPDF_BLOCKS_REVERSE_PAGESAcción

Create a PDF with the complete page order reversed.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file whose page order should be reversed.

Parámetros de salida

  • dataanyObligatorio

    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

Rotate PDF PagesPDF_BLOCKS_ROTATE_PAGESAcción

Rotate all or selected PDF pages by a supported multiple of 90 degrees.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file whose pages should be rotated.

  • angleintegerObligatorioenum

    Rotation angle in degrees; positive values rotate clockwise and negative values rotate counter-clockwise.

    090180270-90-180-270
  • pagesstring

    One-based pages and ranges to rotate, such as '1,3..5'; omit to rotate every page.

Parámetros de salida

  • dataanyObligatorio

    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

Split PDF at PagePDF_BLOCKS_SPLIT_PDF_AT_PAGEAcción

Split a PDF into exactly two downloadable PDFs at a page boundary; the selected page starts the second PDF.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to split.

  • pageintegerObligatorio

    One-based page number that begins the second output PDF; it cannot exceed the input page count.

Parámetros de salida

  • dataanyObligatorio

    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

Split PDF by Page CountPDF_BLOCKS_SPLIT_PDF_BY_PAGE_COUNTAcción

Split a PDF into consecutive downloadable PDFs containing up to a fixed number of pages each.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to split.

  • page_countintegerObligatorio

    Maximum number of consecutive pages in each output PDF.

Parámetros de salida

  • dataanyObligatorio

    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

Split PDF by Page GroupsPDF_BLOCKS_SPLIT_PDF_BY_PAGE_GROUPSAcción

Create one downloadable PDF for each caller-defined ordered group of source pages.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to split.

  • groupsstringObligatorio

    Semicolon-separated output groups, with comma-separated one-based pages or inclusive '..' ranges inside each group. Order, duplicates, and backward ranges are preserved; for example '2..8,29;1'.

Parámetros de salida

  • dataanyObligatorio

    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

Split PDF by SizePDF_BLOCKS_SPLIT_PDF_BY_SIZEAcción

Split a PDF into downloadable PDFs no larger than a requested byte limit.

Parámetros de entrada

  • fileobjectObligatorio

    PDF file to split.

  • maximum_bytesintegerObligatorio

    Maximum byte size allowed for each output PDF.

Parámetros de salida

  • dataanyObligatorio

    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