ComPDF
compdfConvert, generate, edit, parse, and extract data from documents with ComPDF's global cloud API.
Acciones disponibles (19)
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 PDF WatermarkCOMPDF_ADD_PDF_WATERMARKAcciónAdd a text or image watermark to selected pages of one PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_ADD_PDF_WATERMARKAcciónAdd a text or image watermark to selected pages of one PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
pagesstringPages to watermark, such as 1-3,6. Omit to use the provider default.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
watermarkanyObligatorioRequired text or image watermark content and placement settings.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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
Compress PDFCOMPDF_COMPRESS_PDFAcciónCompress one PDF with typed document and image optimization controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_COMPRESS_PDFAcciónCompress one PDF with typed document and image optimization controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
callback_urlstringuriWebhook callback URL for asynchronous processing.
image_qualityintegerGeneral image quality from 0 to 100.
optimize_flagsstring[]Optimization flags to combine. Cleanup: RMNOTUSE unused objects, RMEPTOBJ empty objects, RMSPEATTR special attributes, RMEMBFONT embedded fonts, RMINVALINK invalid links, RMINVABK invalid bookmarks, RMUNUSEDTARGET unused targets. Content removal: RMBK bookmarks, RMANNOT annotations, RMFORM forms, RMMULMEDIA multimedia, RMDOCINFO document info, RMMEDTADATA metadata, RMOBJDATA object data, RMFILEATTACHMENT attachments, RMEXTERNCROSSREF external references, RMOTHERAPPDATA app data, RMHIDERLAYER hidden layers, RMFORMCOMMITIMPORTRESETACTION form actions, RMJSACTION JavaScript, RMPAGETHUMBNAIL thumbnails, RMLABEL page labels, RMPRINTSETTINGS print settings, RMSEARCHINDEX search index. Compression/layout: BCOMPRESSIMAGE compresses images, RMREPLACEIMAGE replaces images, MERGEVISIBLELAYER merges visible layers, USEFLATE uses Flate, FLAT_REPLACELZW replaces LZW with Flate, OPTIMIZEPAGECONTENT optimizes page content, and OPTIMIZEPDFFASTWEBVIEW enables Fast Web View.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated PDF.
color_image_qualityintegerColor-image quality from 0 to 100.
color_image_upper_ppiintegerMaximum color-image resolution in PPI.
color_image_target_ppiintegerTarget color-image resolution in PPI.
grayscale_image_upper_ppiintegerMaximum grayscale-image resolution in PPI.
grayscale_image_target_ppiintegerTarget grayscale-image resolution in PPI.
monochrome_image_upper_ppiintegerMaximum monochrome-image resolution in PPI.
monochrome_image_target_ppiintegerTarget monochrome-image resolution in PPI.
color_image_compress_algorithmstringenumColor-image compression algorithm.
jpegflatemonochrome_image_compress_algorithmstringenumMonochrome-image compression algorithm.
jbig2flate
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
Convert DocumentCOMPDF_CONVERT_DOCUMENTAcciónConvert one PDF, office document, text file, CSV, HTML file, RTF file, or image to a supported output format, synchronously or as an asynchronous task. Processing consumes ComPDF account quota. Do not automatically retry an ambiguous submission because it may already be consuming quota. Synchronous download URLs are temporary and should be used promptly.
COMPDF_CONVERT_DOCUMENTAcciónConvert one PDF, office document, text file, CSV, HTML file, RTF file, or image to a supported output format, synchronously or as an asynchronous task. Processing consumes ComPDF account quota. Do not automatically retry an ambiguous submission because it may already be consuming quota. Synchronous download URLs are temporary and should be used promptly.
Parámetros de entrada
fileobjectObligatorioThe single source document to upload and convert.
optionsobjectTyped operation-specific conversion settings. Options not supported by the selected operation are rejected.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening a protected source document.
operationstringObligatorioenumConversion route to run, such as pdf/docx, txt/pdf, or img/json. Only the documented canonical routes in this field's enum are accepted.
pdf/docxpdf/xlsxpdf/pptxpdf/htmlpdf/rtfpdf/imgpdf/csvpdf/txtpdf/jsonpdf/markdownpdf/ofdpdf/editable+16callback_urlstringuriWebhook callback URL, supported only when processing_mode is async.
processing_modestringenumUse sync for a small interactive file, or async to return a task ID for later status checks.
syncasync
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
Convert PDF StandardCOMPDF_CONVERT_PDF_STANDARDAcciónConvert one PDF to a supported PDF/A, PDF/X-4, or PDF/E-1 standard using the required ICC color profile. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_CONVERT_PDF_STANDARDAcciónConvert one PDF to a supported PDF/A, PDF/X-4, or PDF/E-1 standard using the required ICC color profile. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
standardstringObligatorioenumTarget PDF/A, PDF/X-4, or PDF/E-1 standard.
pdfa1apdfa1bpdfa2apdfa2updfa2bpdfx4pdfe1icc_profileobjectObligatorioValid ICC color profile required by ComPDF for this conversion, such as an appropriate RGB or CMYK output profile for the intended standard.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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
Convert PDF to PDF/UACOMPDF_CONVERT_PDF_TO_PDF_UAAcciónConvert one PDF to the PDF/UA-1 accessibility standard, optionally embedding a document title and language. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_CONVERT_PDF_TO_PDF_UAAcciónConvert one PDF to the PDF/UA-1 accessibility standard, optionally embedding a document title and language. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
ua_titlestringDocument title to embed in the PDF/UA-1 output.
ua_languagestringenumComPDF PDF/UA language enum to embed in the output.
unspecifiedcs_CZde_DEen_GBen_USes_ESfi_FIfr_FRhu_HUit_ITja_JPko_KR+14callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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
Decrypt PDFCOMPDF_DECRYPT_PDFAcciónDecrypt one password-protected PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_DECRYPT_PDFAcciónDecrypt one password-protected PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringObligatorioPassword required to open and decrypt the source PDF.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasync
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
Delete PDF PagesCOMPDF_DELETE_PDF_PAGESAcciónCreate a new PDF with selected pages removed. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_DELETE_PDF_PAGESAcciónCreate a new PDF with selected pages removed. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
pagesstringObligatorioPages to delete, such as 1-3,6. Page numbers start at 1.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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
Encrypt PDFCOMPDF_ENCRYPT_PDFAcciónEncrypt one PDF with at least a user password or owner password and optional permission controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_ENCRYPT_PDFAcciónEncrypt one PDF with at least a user password or owner password and optional permission controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
algorithmstringenumEncryption algorithm; ComPDF defaults to rc4.
rc4aes128aes256allow_copybooleanWhether the encrypted PDF permits copying content.
allow_printbooleanWhether the encrypted PDF permits printing.
callback_urlstringuriWebhook callback URL for asynchronous processing.
user_passwordstringPassword users must enter to open the encrypted output PDF.
owner_passwordstringOwner password used to control output PDF permissions.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncallow_commentingbooleanWhether the encrypted PDF permits commenting.
output_file_namestringRequested file name for the generated PDF.
allow_document_changesbooleanWhether the encrypted PDF permits document changes.
allow_form_field_entrybooleanWhether the encrypted PDF permits form filling.
allow_document_assemblybooleanWhether the encrypted PDF permits page assembly.
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 Document FieldsCOMPDF_EXTRACT_DOCUMENT_FIELDSAcciónExtract one fixed field schema from an uploaded document with ComPDF. Processing consumes AI quota; do not automatically retry an ambiguous submission.
COMPDF_EXTRACT_DOCUMENT_FIELDSAcciónExtract one fixed field schema from an uploaded document with ComPDF. Processing consumes AI quota; do not automatically retry an ambiguous submission.
Parámetros de entrada
fileobjectObligatorioThe single document to process.
optionsobjectTyped options for fixed-schema field extraction.
languageintegerenumAPI error message language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening a protected source document.
enable_ocrbooleanEnable OCR while processing the document.
page_rangesstringPages to process, starting at 1, such as 1-3,6; omit for all pages.
extract_fieldsobjectObligatorioRequired fixed schema containing the fields and tables to extract.
processing_modestringenumAI work defaults to async; choose sync only for a small document expected to complete quickly.
syncasyncocr_recognition_langstringenumLanguage used by OCR; AUTO lets ComPDF detect the language.
AUTOCHINESECHINESE_TRADENGLISHKOREANJAPANESELATINDEVANAGARICYRILLICARABICTAMILTELUGU+4
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 PagesCOMPDF_EXTRACT_PDF_PAGESAcciónExtract selected pages from one PDF into a new PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_EXTRACT_PDF_PAGESAcciónExtract selected pages from one PDF into a new PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
pagesstringPages to extract, such as 1-3,6. Omit to use the provider default.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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
Get Account QuotaCOMPDF_GET_ACCOUNT_QUOTAAcciónReturn available and withheld ComPDF processing balances for the connected project account.
COMPDF_GET_ACCOUNT_QUOTAAcciónReturn available and withheld ComPDF processing balances for the connected project account.
Parámetros de entrada
Sin parámetros.
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
Get TaskCOMPDF_GET_TASKAcciónGet the current status, aggregate counts, and per-file results for one ComPDF processing task. Result download URLs are temporary and should be used promptly.
COMPDF_GET_TASKAcciónGet the current status, aggregate counts, and per-file results for one ComPDF processing task. Result download URLs are temporary and should be used promptly.
Parámetros de entrada
task_idstringObligatorioTask ID returned by an asynchronous or presigned processing request.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12
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
List Supported OperationsCOMPDF_LIST_SUPPORTED_OPERATIONSAcciónList the document-processing operation routes currently advertised by ComPDF.
COMPDF_LIST_SUPPORTED_OPERATIONSAcciónList the document-processing operation routes currently advertised by ComPDF.
Parámetros de entrada
Sin parámetros.
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
List TasksCOMPDF_LIST_TASKSAcciónReturn one page of processing-task history for the connected ComPDF project.
COMPDF_LIST_TASKSAcciónReturn one page of processing-task history for the connected ComPDF project.
Parámetros de entrada
sizeintegerNumber of task records to request on this page.
next_cursorstringOpaque continuation cursor from the previous response; omit for the first 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
Parse DocumentCOMPDF_PARSE_DOCUMENTAcciónRun ComPDF's full intelligent parsing on one uploaded document. Processing consumes AI quota; do not automatically retry an ambiguous submission.
COMPDF_PARSE_DOCUMENTAcciónRun ComPDF's full intelligent parsing on one uploaded document. Processing consumes AI quota; do not automatically retry an ambiguous submission.
Parámetros de entrada
fileobjectObligatorioThe single document to process.
optionsobjectTyped options for full intelligent document parsing.
languageintegerenumAPI error message language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening a protected source document.
enable_ocrbooleanEnable OCR while processing the document.
page_rangesstringPages to process, starting at 1, such as 1-3,6; omit for all pages.
processing_modestringenumAI work defaults to async; choose sync only for a small document expected to complete quickly.
syncasyncocr_recognition_langstringenumLanguage used by OCR; AUTO lets ComPDF detect the language.
AUTOCHINESECHINESE_TRADENGLISHKOREANJAPANESELATINDEVANAGARICYRILLICARABICTAMILTELUGU+4
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 WatermarkCOMPDF_REMOVE_PDF_WATERMARKAcciónRemove tagged or untagged watermarks from selected pages of one PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_REMOVE_PDF_WATERMARKAcciónRemove tagged or untagged watermarks from selected pages of one PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
pagesstringPages from which to remove watermarks, such as 1-3,6.
removalanyObligatorioRequired tagged or untagged watermark removal settings.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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
Rotate PDF PagesCOMPDF_ROTATE_PDF_PAGESAcciónRotate selected pages in one PDF by 90, 180, or 270 degrees. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_ROTATE_PDF_PAGESAcciónRotate selected pages in one PDF by 90, 180, or 270 degrees. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
angleintegerObligatorioenumClockwise page rotation angle in degrees.
90180270pagesstringObligatorioPages to rotate, such as 1-3,6. Page numbers start at 1.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
callback_urlstringuriWebhook callback URL for asynchronous processing.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasyncoutput_file_namestringRequested file name for the generated 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 PDFCOMPDF_SPLIT_PDFAcciónSplit selected pages from one PDF into separate files in a ZIP archive. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
COMPDF_SPLIT_PDFAcciónSplit selected pages from one PDF into separate files in a ZIP archive. This consumes ComPDF quota; do not retry an ambiguous submission automatically.
Parámetros de entrada
fileobjectObligatorioThe single source PDF to process.
pagesstringObligatorioPage ranges to split, such as 1-3,6. Page numbers start at 1.
languageintegerenumResponse language: 1 for English or 2 for Chinese.
12passwordstringPassword for opening the source PDF, when it is protected.
callback_urlstringuriWebhook callback URL for asynchronous processing.
zip_file_namestringRequested file name for the output ZIP.
processing_modestringenumUse sync for a small interactive PDF or async to return a task ID.
syncasync
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
Wait For TaskCOMPDF_WAIT_FOR_TASKAcciónPoll a ComPDF processing task at a safe interval until it finishes, expires, fails, or reaches a caller-supplied timeout.
COMPDF_WAIT_FOR_TASKAcciónPoll a ComPDF processing task at a safe interval until it finishes, expires, fails, or reaches a caller-supplied timeout.
Parámetros de entrada
task_idstringObligatorioAsynchronous processing task ID to wait for.
languageintegerResponse language: 1 for English or 2 for Chinese.
timeout_secondsnumberMaximum wall-clock seconds to wait (1-600). A timeout does not mean the task itself failed.
poll_interval_secondsnumberSeconds between status checks (3-60). ComPDF requires at least 3 seconds.
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