{
  "service": "pdf_co",
  "displayName": "PDF.co",
  "categories": [
    "Productivity",
    "Design & Media"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "PDF_CO_API_KEY",
      "description": "PDF.co API key sent with the x-api-key header. Sign in to the PDF.co dashboard to copy or create API keys: https://app.pdf.co/.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://pdf.co",
  "actions": [
    {
      "id": "pdf_co.compress_pdf",
      "service": "pdf_co",
      "name": "compress_pdf",
      "description": "Compress a PDF URL and return the generated compressed PDF file URL.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Publicly reachable source document URL.",
            "format": "uri"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Optional output file name generated by PDF.co."
          },
          "config": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Optional PDF.co compression configuration object."
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Input parameters for compressing a PDF URL."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The generated output file URL returned by PDF.co.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "transitFile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The local transit file identifier."
                  },
                  "downloadUrl": {
                    "type": "string",
                    "description": "The local URL for downloading the transit file.",
                    "format": "uri"
                  },
                  "sizeBytes": {
                    "type": "number",
                    "description": "The transit file size in bytes."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file MIME type."
                  }
                },
                "additionalProperties": false,
                "description": "A copy of a provider-generated file stored in local transit storage."
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "description": "Inline response body returned by PDF.co when inline mode is used."
              },
              {
                "type": "null"
              }
            ]
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF.co job identifier when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co file-producing response."
      }
    },
    {
      "id": "pdf_co.get_account_balance",
      "service": "pdf_co",
      "name": "get_account_balance",
      "description": "Get the current PDF.co account credit balance for the API key.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "No input parameters are required for this action."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The account credit balance returned by PDF.co."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co account balance response."
      }
    },
    {
      "id": "pdf_co.get_pdf_info",
      "service": "pdf_co",
      "name": "get_pdf_info",
      "description": "Read metadata, page information, and security details from a PDF URL.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Publicly reachable source document URL.",
            "format": "uri"
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "description": "Optional password for encrypted source PDF files."
          },
          "timeout": {
            "type": "number",
            "description": "Optional PDF.co operation timeout in seconds."
          },
          "expiration": {
            "type": "number",
            "description": "Optional output link expiration time in minutes, subject to the account plan limits."
          },
          "profiles": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced PDF.co profiles object forwarded to the endpoint as-is."
          },
          "httpUsername": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP username for protected source URLs."
          },
          "httpPassword": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP password for protected source URLs."
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Input parameters for reading PDF metadata from a source URL."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "pageCount": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of pages in the source PDF when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF title metadata when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "author": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF author metadata when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "subject": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF subject metadata when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "keywords": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF keyword metadata when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "encrypted": {
            "anyOf": [
              {
                "type": "boolean",
                "description": "Whether PDF.co reported the source PDF as encrypted."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co PDF info response."
      }
    },
    {
      "id": "pdf_co.html_to_pdf",
      "service": "pdf_co",
      "name": "html_to_pdf",
      "description": "Convert raw HTML into a PDF document and return the generated file URL.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "html": {
            "type": "string",
            "minLength": 1,
            "description": "The raw HTML markup to render as a PDF."
          },
          "templateId": {
            "type": "string",
            "minLength": 1,
            "description": "Optional PDF.co HTML template identifier."
          },
          "templateData": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Optional data object used with a PDF.co HTML template."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Optional output file name generated by PDF.co."
          },
          "margins": {
            "type": "string",
            "minLength": 1,
            "description": "Custom PDF margins such as '10px 10px 10px 10px' or a single value such as '5mm'."
          },
          "paperSize": {
            "type": "string",
            "minLength": 1,
            "description": "Paper size such as Letter, A4, or a custom width and height."
          },
          "orientation": {
            "type": "string",
            "enum": [
              "Portrait",
              "Landscape"
            ],
            "description": "PDF page orientation."
          },
          "printBackground": {
            "type": "boolean",
            "description": "Whether background graphics should be printed into the PDF."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "print",
              "screen"
            ],
            "description": "CSS media type used while rendering the HTML or URL."
          },
          "doNotWaitFullLoad": {
            "type": "boolean",
            "description": "Whether PDF.co should skip waiting for full page load."
          },
          "header": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTML header inserted into the rendered PDF."
          },
          "footer": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTML footer inserted into the rendered PDF."
          },
          "renderTimeout": {
            "type": "number",
            "description": "Optional render timeout in milliseconds."
          },
          "expiration": {
            "type": "number",
            "description": "Optional output link expiration time in minutes, subject to the account plan limits."
          },
          "profiles": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced PDF.co profiles object forwarded to the endpoint as-is."
          },
          "customScript": {
            "type": "string",
            "minLength": 1,
            "description": "Optional custom JavaScript executed during rendering."
          }
        },
        "additionalProperties": false,
        "required": [
          "html"
        ],
        "description": "Input parameters for converting raw HTML into a PDF document."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The generated output file URL returned by PDF.co.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "transitFile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The local transit file identifier."
                  },
                  "downloadUrl": {
                    "type": "string",
                    "description": "The local URL for downloading the transit file.",
                    "format": "uri"
                  },
                  "sizeBytes": {
                    "type": "number",
                    "description": "The transit file size in bytes."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file MIME type."
                  }
                },
                "additionalProperties": false,
                "description": "A copy of a provider-generated file stored in local transit storage."
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "description": "Inline response body returned by PDF.co when inline mode is used."
              },
              {
                "type": "null"
              }
            ]
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF.co job identifier when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co file-producing response."
      }
    },
    {
      "id": "pdf_co.merge_pdfs",
      "service": "pdf_co",
      "name": "merge_pdfs",
      "description": "Merge multiple PDF URLs into one PDF document.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "urls": {
            "type": "array",
            "items": {
              "type": "string",
              "description": "Publicly reachable source document URL.",
              "format": "uri"
            },
            "description": "The source PDF URLs to merge in order.",
            "minItems": 2
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Optional output file name generated by PDF.co."
          },
          "timeout": {
            "type": "number",
            "description": "Optional PDF.co operation timeout in seconds."
          },
          "expiration": {
            "type": "number",
            "description": "Optional output link expiration time in minutes, subject to the account plan limits."
          },
          "profiles": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced PDF.co profiles object forwarded to the endpoint as-is."
          },
          "httpUsername": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP username for protected source URLs."
          },
          "httpPassword": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP password for protected source URLs."
          }
        },
        "additionalProperties": false,
        "required": [
          "urls"
        ],
        "description": "Input parameters for merging multiple PDF URLs."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The generated output file URL returned by PDF.co.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "transitFile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The local transit file identifier."
                  },
                  "downloadUrl": {
                    "type": "string",
                    "description": "The local URL for downloading the transit file.",
                    "format": "uri"
                  },
                  "sizeBytes": {
                    "type": "number",
                    "description": "The transit file size in bytes."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file MIME type."
                  }
                },
                "additionalProperties": false,
                "description": "A copy of a provider-generated file stored in local transit storage."
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "description": "Inline response body returned by PDF.co when inline mode is used."
              },
              {
                "type": "null"
              }
            ]
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF.co job identifier when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co file-producing response."
      }
    },
    {
      "id": "pdf_co.pdf_to_text",
      "service": "pdf_co",
      "name": "pdf_to_text",
      "description": "Convert a PDF URL to text and return either a file URL or inline text payload.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Publicly reachable source document URL.",
            "format": "uri"
          },
          "pages": {
            "type": "string",
            "minLength": 1,
            "description": "Zero-based page indexes or ranges, such as '0,2,5-10'."
          },
          "lang": {
            "type": "string",
            "minLength": 1,
            "description": "OCR language code such as eng."
          },
          "inline": {
            "type": "boolean",
            "description": "Whether PDF.co should return extracted text inside the JSON response."
          },
          "unwrap": {
            "type": "boolean",
            "description": "Whether PDF.co should unwrap text lines."
          },
          "lineGrouping": {
            "type": "boolean",
            "description": "Whether PDF.co should group nearby text lines."
          },
          "rect": {
            "type": "string",
            "minLength": 1,
            "description": "Optional extraction rectangle in PDF.co coordinate format."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Optional output file name generated by PDF.co."
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "description": "Optional password for encrypted source PDF files."
          },
          "timeout": {
            "type": "number",
            "description": "Optional PDF.co operation timeout in seconds."
          },
          "expiration": {
            "type": "number",
            "description": "Optional output link expiration time in minutes, subject to the account plan limits."
          },
          "profiles": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced PDF.co profiles object forwarded to the endpoint as-is."
          },
          "httpUsername": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP username for protected source URLs."
          },
          "httpPassword": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP password for protected source URLs."
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Input parameters for extracting text from a PDF URL."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The generated output file URL returned by PDF.co.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "transitFile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The local transit file identifier."
                  },
                  "downloadUrl": {
                    "type": "string",
                    "description": "The local URL for downloading the transit file.",
                    "format": "uri"
                  },
                  "sizeBytes": {
                    "type": "number",
                    "description": "The transit file size in bytes."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file MIME type."
                  }
                },
                "additionalProperties": false,
                "description": "A copy of a provider-generated file stored in local transit storage."
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "description": "Inline response body returned by PDF.co when inline mode is used."
              },
              {
                "type": "null"
              }
            ]
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF.co job identifier when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co file-producing response."
      }
    },
    {
      "id": "pdf_co.split_pdf",
      "service": "pdf_co",
      "name": "split_pdf",
      "description": "Split a PDF URL into one or more output files by page numbers or ranges.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "Publicly reachable source document URL.",
            "format": "uri"
          },
          "pages": {
            "type": "string",
            "minLength": 1,
            "description": "One-based page indexes or ranges, such as '1,2,3-7' or '!1' for the last page."
          },
          "inline": {
            "type": "boolean",
            "description": "Whether PDF.co should return results inside the JSON response."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Optional output file name generated by PDF.co."
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "description": "Optional password for encrypted source PDF files."
          },
          "timeout": {
            "type": "number",
            "description": "Optional PDF.co operation timeout in seconds."
          },
          "expiration": {
            "type": "number",
            "description": "Optional output link expiration time in minutes, subject to the account plan limits."
          },
          "profiles": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced PDF.co profiles object forwarded to the endpoint as-is."
          },
          "httpUsername": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP username for protected source URLs."
          },
          "httpPassword": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP password for protected source URLs."
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Input parameters for splitting a PDF by one-based page indexes or ranges."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The generated output file URL returned by PDF.co.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "transitFile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The local transit file identifier."
                  },
                  "downloadUrl": {
                    "type": "string",
                    "description": "The local URL for downloading the transit file.",
                    "format": "uri"
                  },
                  "sizeBytes": {
                    "type": "number",
                    "description": "The transit file size in bytes."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file MIME type."
                  }
                },
                "additionalProperties": false,
                "description": "A copy of a provider-generated file stored in local transit storage."
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "description": "Inline response body returned by PDF.co when inline mode is used."
              },
              {
                "type": "null"
              }
            ]
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF.co job identifier when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co file-producing response."
      }
    },
    {
      "id": "pdf_co.url_to_pdf",
      "service": "pdf_co",
      "name": "url_to_pdf",
      "description": "Convert a publicly reachable web page URL into a PDF document.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string",
            "description": "The publicly reachable web page URL to render.",
            "format": "uri"
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "description": "Optional output file name generated by PDF.co."
          },
          "margins": {
            "type": "string",
            "minLength": 1,
            "description": "Custom PDF margins such as '10px 10px 10px 10px' or a single value such as '5mm'."
          },
          "paperSize": {
            "type": "string",
            "minLength": 1,
            "description": "Paper size such as Letter, A4, or a custom width and height."
          },
          "orientation": {
            "type": "string",
            "enum": [
              "Portrait",
              "Landscape"
            ],
            "description": "PDF page orientation."
          },
          "printBackground": {
            "type": "boolean",
            "description": "Whether background graphics should be printed into the PDF."
          },
          "mediaType": {
            "type": "string",
            "enum": [
              "print",
              "screen"
            ],
            "description": "CSS media type used while rendering the HTML or URL."
          },
          "doNotWaitFullLoad": {
            "type": "boolean",
            "description": "Whether PDF.co should skip waiting for full page load."
          },
          "header": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTML header inserted into the rendered PDF."
          },
          "footer": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTML footer inserted into the rendered PDF."
          },
          "renderTimeout": {
            "type": "number",
            "description": "Optional render timeout in milliseconds."
          },
          "expiration": {
            "type": "number",
            "description": "Optional output link expiration time in minutes, subject to the account plan limits."
          },
          "profiles": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Advanced PDF.co profiles object forwarded to the endpoint as-is."
          },
          "customScript": {
            "type": "string",
            "minLength": 1,
            "description": "Optional custom JavaScript executed during rendering."
          },
          "templateData": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Optional template data object forwarded to PDF.co."
          },
          "httpUsername": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP username for protected source URLs."
          },
          "httpPassword": {
            "type": "string",
            "minLength": 1,
            "description": "Optional HTTP password for protected source URLs."
          }
        },
        "additionalProperties": false,
        "required": [
          "url"
        ],
        "description": "Input parameters for converting a web page URL into a PDF document."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "url": {
            "anyOf": [
              {
                "type": "string",
                "description": "The generated output file URL returned by PDF.co.",
                "format": "uri"
              },
              {
                "type": "null"
              }
            ]
          },
          "transitFile": {
            "anyOf": [
              {
                "type": "object",
                "properties": {
                  "fileId": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The local transit file identifier."
                  },
                  "downloadUrl": {
                    "type": "string",
                    "description": "The local URL for downloading the transit file.",
                    "format": "uri"
                  },
                  "sizeBytes": {
                    "type": "number",
                    "description": "The transit file size in bytes."
                  },
                  "name": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file name."
                  },
                  "mimeType": {
                    "type": "string",
                    "minLength": 1,
                    "description": "The transit file MIME type."
                  }
                },
                "additionalProperties": false,
                "description": "A copy of a provider-generated file stored in local transit storage."
              },
              {
                "type": "null"
              }
            ]
          },
          "body": {
            "anyOf": [
              {
                "description": "Inline response body returned by PDF.co when inline mode is used."
              },
              {
                "type": "null"
              }
            ]
          },
          "jobId": {
            "anyOf": [
              {
                "type": "string",
                "description": "The PDF.co job identifier when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "credits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of credits used by the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "remainingCredits": {
            "anyOf": [
              {
                "type": "number",
                "description": "The number of remaining account credits after the operation when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "duration": {
            "anyOf": [
              {
                "type": "number",
                "description": "The operation duration in milliseconds when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "status": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co status string when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "message": {
            "anyOf": [
              {
                "type": "string",
                "description": "The upstream PDF.co message when returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "The raw PDF.co JSON response for fields not normalized by the connector."
          }
        },
        "additionalProperties": false,
        "description": "Normalized PDF.co file-producing response."
      }
    }
  ]
}
