PDF Blocks
pdf_blocksPDF Blocks provides synchronous API operations for merging, splitting, watermarking, securing, and reorganizing PDF documents.
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ónAdd a PNG or JPEG image as a watermark on all or selected PDF pages.
PDF_BLOCKS_ADD_IMAGE_WATERMARKAcciónAdd a PNG or JPEG image as a watermark on all or selected PDF pages.
Parámetros de entrada
fileobjectObligatorioPDF file to watermark.
imageobjectObligatorioPNG or JPEG image to use as the watermark.
pagesstringOne-based pages and ranges to watermark, such as '1,3..5'; omit to watermark every page.
marginnumberMargin from the page border in inches.
transparencyintegerWatermark transparency percentage, where 0 is opaque and 100 is fully transparent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add PDF PasswordPDF_BLOCKS_ADD_PASSWORDAcciónCreate an encrypted copy of a PDF that requires a password to open.
PDF_BLOCKS_ADD_PASSWORDAcciónCreate an encrypted copy of a PDF that requires a password to open.
Parámetros de entrada
fileobjectObligatorioPDF file to encrypt.
passwordstringObligatoriopasswordPrintable ASCII password required to open the output PDF. This secret is sent only to PDF Blocks and is never returned.
encryption_algorithmstringenumEncryption algorithm for the output PDF.
AES-128AES-256
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add PDF RestrictionsPDF_BLOCKS_ADD_RESTRICTIONSAcciónCreate 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.
PDF_BLOCKS_ADD_RESTRICTIONSAcciónCreate 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
fileobjectObligatorioPDF file to protect with permission restrictions.
allow_printbooleanAllow printing the PDF.
user_passwordstringpasswordOptional printable ASCII password required to open the PDF. Omit it to allow opening without a password. This secret is never returned.
owner_passwordstringObligatoriopasswordPrintable ASCII owner password that controls future permission changes. This secret is never returned.
allow_fill_formbooleanAllow filling interactive form fields.
allow_copy_contentbooleanAllow copying content from the PDF.
allow_accessibilitybooleanAllow accessibility tools to extract content.
allow_change_contentbooleanAllow changing PDF content.
encryption_algorithmstringenumEncryption algorithm for the restricted PDF.
AES-128AES-256allow_assemble_documentbooleanAllow document assembly operations such as inserting or rotating pages.
allow_comment_and_fill_formbooleanAllow comments and interactive form filling.
allow_print_high_resolutionbooleanAllow high-resolution printing when printing is allowed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Add Text WatermarkPDF_BLOCKS_ADD_TEXT_WATERMARKAcciónAdd up to three styled text lines as a watermark on all or selected PDF pages.
PDF_BLOCKS_ADD_TEXT_WATERMARKAcciónAdd up to three styled text lines as a watermark on all or selected PDF pages.
Parámetros de entrada
fileobjectObligatorioPDF file to watermark.
colorstringenumWatermark text color.
RedBlueGrayBlackpagesstringOne-based pages and ranges to watermark, such as '1,3..5'; omit to watermark every page.
line_1stringObligatorioFirst watermark line using standard Latin characters.
line_2stringOptional second watermark line.
line_3stringOptional third watermark line.
marginnumberMargin from the page border in inches.
templateintegerenumWatermark 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.
1001100210031004100510171018101910201021transparencyintegerWatermark transparency percentage, where 0 is opaque and 100 is fully transparent.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Extract PDF PagesPDF_BLOCKS_EXTRACT_PAGESAcciónCreate a PDF containing selected source pages in their original order.
PDF_BLOCKS_EXTRACT_PAGESAcciónCreate a PDF containing selected source pages in their original order.
Parámetros de entrada
fileobjectObligatorioPDF file from which to extract pages.
pagesstringSet 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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Merge PDFsPDF_BLOCKS_MERGE_PDFSAcciónMerge PDF files into one PDF in the exact order provided.
PDF_BLOCKS_MERGE_PDFSAcciónMerge PDF files into one PDF in the exact order provided.
Parámetros de entrada
filesobject[]ObligatorioPDF files to merge, in output order; repeated files are allowed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove PDF PagesPDF_BLOCKS_REMOVE_PAGESAcciónCreate a PDF with selected pages removed while preserving the remaining page order.
PDF_BLOCKS_REMOVE_PAGESAcciónCreate a PDF with selected pages removed while preserving the remaining page order.
Parámetros de entrada
fileobjectObligatorioPDF file from which to remove pages.
pagesstringObligatorioSet of one-based pages and inclusive '..' ranges to remove, such as '2,4..6'; at least one page must remain.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove PDF PasswordPDF_BLOCKS_REMOVE_PASSWORDAcciónCreate an unencrypted copy of a password-protected PDF using its current password.
PDF_BLOCKS_REMOVE_PASSWORDAcciónCreate an unencrypted copy of a password-protected PDF using its current password.
Parámetros de entrada
fileobjectObligatorioEncrypted PDF file to decrypt.
passwordstringObligatoriopasswordCurrent PDF password. This secret is sent only to PDF Blocks and is never returned.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove PDF RestrictionsPDF_BLOCKS_REMOVE_RESTRICTIONSAcciónCreate a PDF copy with permission restrictions cleared.
PDF_BLOCKS_REMOVE_RESTRICTIONSAcciónCreate a PDF copy with permission restrictions cleared.
Parámetros de entrada
fileobjectObligatorioPDF file whose permission restrictions should be cleared.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Remove PDF SignaturesPDF_BLOCKS_REMOVE_SIGNATURESAcciónCreate a PDF copy with all digital signatures and timestamps removed.
PDF_BLOCKS_REMOVE_SIGNATURESAcciónCreate a PDF copy with all digital signatures and timestamps removed.
Parámetros de entrada
fileobjectObligatorioSigned PDF file from which to remove digital signatures and timestamps.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reorder PDF PagesPDF_BLOCKS_REORDER_PAGESAcciónCreate a PDF in an exact page order, optionally dropping or repeating source pages.
PDF_BLOCKS_REORDER_PAGESAcciónCreate a PDF in an exact page order, optionally dropping or repeating source pages.
Parámetros de entrada
fileobjectObligatorioPDF file whose pages should be reordered.
page_orderstringObligatorioExact 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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Reverse PDF PagesPDF_BLOCKS_REVERSE_PAGESAcciónCreate a PDF with the complete page order reversed.
PDF_BLOCKS_REVERSE_PAGESAcciónCreate a PDF with the complete page order reversed.
Parámetros de entrada
fileobjectObligatorioPDF file whose page order should be reversed.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Rotate PDF PagesPDF_BLOCKS_ROTATE_PAGESAcciónRotate all or selected PDF pages by a supported multiple of 90 degrees.
PDF_BLOCKS_ROTATE_PAGESAcciónRotate all or selected PDF pages by a supported multiple of 90 degrees.
Parámetros de entrada
fileobjectObligatorioPDF file whose pages should be rotated.
angleintegerObligatorioenumRotation angle in degrees; positive values rotate clockwise and negative values rotate counter-clockwise.
090180270-90-180-270pagesstringOne-based pages and ranges to rotate, such as '1,3..5'; omit to rotate every page.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Split PDF at PagePDF_BLOCKS_SPLIT_PDF_AT_PAGEAcciónSplit a PDF into exactly two downloadable PDFs at a page boundary; the selected page starts the second PDF.
PDF_BLOCKS_SPLIT_PDF_AT_PAGEAcciónSplit a PDF into exactly two downloadable PDFs at a page boundary; the selected page starts the second PDF.
Parámetros de entrada
fileobjectObligatorioPDF file to split.
pageintegerObligatorioOne-based page number that begins the second output PDF; it cannot exceed the input page count.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Split PDF by Page CountPDF_BLOCKS_SPLIT_PDF_BY_PAGE_COUNTAcciónSplit a PDF into consecutive downloadable PDFs containing up to a fixed number of pages each.
PDF_BLOCKS_SPLIT_PDF_BY_PAGE_COUNTAcciónSplit a PDF into consecutive downloadable PDFs containing up to a fixed number of pages each.
Parámetros de entrada
fileobjectObligatorioPDF file to split.
page_countintegerObligatorioMaximum number of consecutive pages in each output PDF.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Split PDF by Page GroupsPDF_BLOCKS_SPLIT_PDF_BY_PAGE_GROUPSAcciónCreate one downloadable PDF for each caller-defined ordered group of source pages.
PDF_BLOCKS_SPLIT_PDF_BY_PAGE_GROUPSAcciónCreate one downloadable PDF for each caller-defined ordered group of source pages.
Parámetros de entrada
fileobjectObligatorioPDF file to split.
groupsstringObligatorioSemicolon-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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Split PDF by SizePDF_BLOCKS_SPLIT_PDF_BY_SIZEAcciónSplit a PDF into downloadable PDFs no larger than a requested byte limit.
PDF_BLOCKS_SPLIT_PDF_BY_SIZEAcciónSplit a PDF into downloadable PDFs no larger than a requested byte limit.
Parámetros de entrada
fileobjectObligatorioPDF file to split.
maximum_bytesintegerObligatorioMaximum byte size allowed for each output PDF.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not