Volver al catálogo

ComPDF

compdf

Convert, generate, edit, parse, and extract data from documents with ComPDF's global cloud API.

Acciones
19
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 (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ón

Add 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

  • fileobjectObligatorio

    The single source PDF to process.

  • pagesstring

    Pages to watermark, such as 1-3,6. Omit to use the provider default.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • watermarkanyObligatorio

    Required text or image watermark content and placement settings.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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

Compress PDFCOMPDF_COMPRESS_PDFAcción

Compress one PDF with typed document and image optimization controls. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

Parámetros de entrada

  • fileobjectObligatorio

    The single source PDF to process.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • image_qualityinteger

    General 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_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated PDF.

  • color_image_qualityinteger

    Color-image quality from 0 to 100.

  • color_image_upper_ppiinteger

    Maximum color-image resolution in PPI.

  • color_image_target_ppiinteger

    Target color-image resolution in PPI.

  • grayscale_image_upper_ppiinteger

    Maximum grayscale-image resolution in PPI.

  • grayscale_image_target_ppiinteger

    Target grayscale-image resolution in PPI.

  • monochrome_image_upper_ppiinteger

    Maximum monochrome-image resolution in PPI.

  • monochrome_image_target_ppiinteger

    Target monochrome-image resolution in PPI.

  • color_image_compress_algorithmstringenum

    Color-image compression algorithm.

    jpegflate
  • monochrome_image_compress_algorithmstringenum

    Monochrome-image compression algorithm.

    jbig2flate

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

Convert DocumentCOMPDF_CONVERT_DOCUMENTAcción

Convert 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

  • fileobjectObligatorio

    The single source document to upload and convert.

  • optionsobject

    Typed operation-specific conversion settings. Options not supported by the selected operation are rejected.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening a protected source document.

  • operationstringObligatorioenum

    Conversion 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+16
  • callback_urlstringuri

    Webhook callback URL, supported only when processing_mode is async.

  • processing_modestringenum

    Use sync for a small interactive file, or async to return a task ID for later status checks.

    syncasync

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

Convert PDF StandardCOMPDF_CONVERT_PDF_STANDARDAcción

Convert 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

  • fileobjectObligatorio

    The single source PDF to process.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • standardstringObligatorioenum

    Target PDF/A, PDF/X-4, or PDF/E-1 standard.

    pdfa1apdfa1bpdfa2apdfa2updfa2bpdfx4pdfe1
  • icc_profileobjectObligatorio

    Valid ICC color profile required by ComPDF for this conversion, such as an appropriate RGB or CMYK output profile for the intended standard.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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

Convert PDF to PDF/UACOMPDF_CONVERT_PDF_TO_PDF_UAAcción

Convert 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

  • fileobjectObligatorio

    The single source PDF to process.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • ua_titlestring

    Document title to embed in the PDF/UA-1 output.

  • ua_languagestringenum

    ComPDF PDF/UA language enum to embed in the output.

    unspecifiedcs_CZde_DEen_GBen_USes_ESfi_FIfr_FRhu_HUit_ITja_JPko_KR+14
  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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

Decrypt PDFCOMPDF_DECRYPT_PDFAcción

Decrypt one password-protected PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

Parámetros de entrada

  • fileobjectObligatorio

    The single source PDF to process.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstringObligatorio

    Password required to open and decrypt the source PDF.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync

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

Delete PDF PagesCOMPDF_DELETE_PDF_PAGESAcción

Create a new PDF with selected pages removed. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

Parámetros de entrada

  • fileobjectObligatorio

    The single source PDF to process.

  • pagesstringObligatorio

    Pages to delete, such as 1-3,6. Page numbers start at 1.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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

Encrypt PDFCOMPDF_ENCRYPT_PDFAcción

Encrypt 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

  • fileobjectObligatorio

    The single source PDF to process.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • algorithmstringenum

    Encryption algorithm; ComPDF defaults to rc4.

    rc4aes128aes256
  • allow_copyboolean

    Whether the encrypted PDF permits copying content.

  • allow_printboolean

    Whether the encrypted PDF permits printing.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • user_passwordstring

    Password users must enter to open the encrypted output PDF.

  • owner_passwordstring

    Owner password used to control output PDF permissions.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • allow_commentingboolean

    Whether the encrypted PDF permits commenting.

  • output_file_namestring

    Requested file name for the generated PDF.

  • allow_document_changesboolean

    Whether the encrypted PDF permits document changes.

  • allow_form_field_entryboolean

    Whether the encrypted PDF permits form filling.

  • allow_document_assemblyboolean

    Whether the encrypted PDF permits page assembly.

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 Document FieldsCOMPDF_EXTRACT_DOCUMENT_FIELDSAcción

Extract 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

  • fileobjectObligatorio

    The single document to process.

  • optionsobject

    Typed options for fixed-schema field extraction.

  • languageintegerenum

    API error message language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening a protected source document.

  • enable_ocrboolean

    Enable OCR while processing the document.

  • page_rangesstring

    Pages to process, starting at 1, such as 1-3,6; omit for all pages.

  • extract_fieldsobjectObligatorio

    Required fixed schema containing the fields and tables to extract.

  • processing_modestringenum

    AI work defaults to async; choose sync only for a small document expected to complete quickly.

    syncasync
  • ocr_recognition_langstringenum

    Language used by OCR; AUTO lets ComPDF detect the language.

    AUTOCHINESECHINESE_TRADENGLISHKOREANJAPANESELATINDEVANAGARICYRILLICARABICTAMILTELUGU+4

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

Extract selected pages from one PDF into a new PDF. This consumes ComPDF quota; do not retry an ambiguous submission automatically.

Parámetros de entrada

  • fileobjectObligatorio

    The single source PDF to process.

  • pagesstring

    Pages to extract, such as 1-3,6. Omit to use the provider default.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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

Get Account QuotaCOMPDF_GET_ACCOUNT_QUOTAAcción

Return available and withheld ComPDF processing balances for the connected project account.

Parámetros de entrada

Sin parámetros.

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

Get TaskCOMPDF_GET_TASKAcción

Get 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_idstringObligatorio

    Task ID returned by an asynchronous or presigned processing request.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12

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

List Supported OperationsCOMPDF_LIST_SUPPORTED_OPERATIONSAcción

List the document-processing operation routes currently advertised by ComPDF.

Parámetros de entrada

Sin parámetros.

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

List TasksCOMPDF_LIST_TASKSAcción

Return one page of processing-task history for the connected ComPDF project.

Parámetros de entrada

  • sizeinteger

    Number of task records to request on this page.

  • next_cursorstring

    Opaque continuation cursor from the previous response; omit for the first 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

Parse DocumentCOMPDF_PARSE_DOCUMENTAcción

Run ComPDF's full intelligent parsing on one uploaded document. Processing consumes AI quota; do not automatically retry an ambiguous submission.

Parámetros de entrada

  • fileobjectObligatorio

    The single document to process.

  • optionsobject

    Typed options for full intelligent document parsing.

  • languageintegerenum

    API error message language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening a protected source document.

  • enable_ocrboolean

    Enable OCR while processing the document.

  • page_rangesstring

    Pages to process, starting at 1, such as 1-3,6; omit for all pages.

  • processing_modestringenum

    AI work defaults to async; choose sync only for a small document expected to complete quickly.

    syncasync
  • ocr_recognition_langstringenum

    Language used by OCR; AUTO lets ComPDF detect the language.

    AUTOCHINESECHINESE_TRADENGLISHKOREANJAPANESELATINDEVANAGARICYRILLICARABICTAMILTELUGU+4

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

Remove 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

  • fileobjectObligatorio

    The single source PDF to process.

  • pagesstring

    Pages from which to remove watermarks, such as 1-3,6.

  • removalanyObligatorio

    Required tagged or untagged watermark removal settings.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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

Rotate PDF PagesCOMPDF_ROTATE_PDF_PAGESAcción

Rotate 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

  • fileobjectObligatorio

    The single source PDF to process.

  • angleintegerObligatorioenum

    Clockwise page rotation angle in degrees.

    90180270
  • pagesstringObligatorio

    Pages to rotate, such as 1-3,6. Page numbers start at 1.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync
  • output_file_namestring

    Requested file name for the generated 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 PDFCOMPDF_SPLIT_PDFAcción

Split 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

  • fileobjectObligatorio

    The single source PDF to process.

  • pagesstringObligatorio

    Page ranges to split, such as 1-3,6. Page numbers start at 1.

  • languageintegerenum

    Response language: 1 for English or 2 for Chinese.

    12
  • passwordstring

    Password for opening the source PDF, when it is protected.

  • callback_urlstringuri

    Webhook callback URL for asynchronous processing.

  • zip_file_namestring

    Requested file name for the output ZIP.

  • processing_modestringenum

    Use sync for a small interactive PDF or async to return a task ID.

    syncasync

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

Wait For TaskCOMPDF_WAIT_FOR_TASKAcción

Poll a ComPDF processing task at a safe interval until it finishes, expires, fails, or reaches a caller-supplied timeout.

Parámetros de entrada

  • task_idstringObligatorio

    Asynchronous processing task ID to wait for.

  • languageinteger

    Response language: 1 for English or 2 for Chinese.

  • timeout_secondsnumber

    Maximum wall-clock seconds to wait (1-600). A timeout does not mean the task itself failed.

  • poll_interval_secondsnumber

    Seconds between status checks (3-60). ComPDF requires at least 3 seconds.

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