PDF4me API

PDF4me API as documented publicly: 10 operations. Contract generated from the documentation by API Evangelist (2026-11-20); not the provider's own document.

GitHub OpenAPI

Operations 10

POST /api/v2/CompressImage Compress Image API #
POST /api/v2/ConvertPdfToExcel POST /api/v2/ConvertPdfToExcel #
POST /api/v2/FillPdfForm POST /api/v2/FillPdfForm #
POST /api/v2/LinearizePdf POST /api/v2/LinearizePdf #
POST /api/v2/Merge POST /api/v2/Merge #
GET /forms/application-form.pdf GET /forms/application-form.pdf #
POST /office/ApiV2Excel/ExcelExtractRows POST /office/ApiV2Excel/ExcelExtractRows #
POST /office/ApiV2Excel/ExcelUnlock POST /office/ApiV2Excel/ExcelUnlock #
POST /office/ApiV2Excel/ExcelUpdateRows POST /office/ApiV2Excel/ExcelUpdateRows #
POST /office/ApiV2Word/AddWatermark POST /office/ApiV2Word/AddWatermark #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pdf4me-com:pdf4me-com-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pdf4me-com-openapi-generated.yml Raw ↑
openapi: 3.1.0
info:
  title: PDF4me API
  version: '2026-11-20'
  description: 'GENERATED FROM DOCUMENTATION by API Evangelist on 2026-11-20: 10 operation(s) read from 9 public documentation page(s) (each operation
    names its page in x-source). This is not the provider''s published contract; PDF4me has published no machine-readable contract that the pipeline
    could find. Engine: local.'
  x-evidence-tiers:
    code-example: 9
    documentation: 1
    pages-with-code: 8
    pages-read: 9
  x-generated-from: documentation
  x-provenance: generated
  x-authored-by: API Evangelist
  x-generated: '2026-11-20'
  x-generator: generate-contract-from-docs.py
  x-engine: local
  x-sources:
  - https://docs.pdf4me.com/pdf4me-api/merge-split/merge
  - https://docs.pdf4me.com/pdf4me-api/convert/pdf-to-excel
  - https://docs.pdf4me.com/pdf4me-api/excel/update-rows
  - https://docs.pdf4me.com/pdf4me-api/excel/extract-rows
  - https://docs.pdf4me.com/pdf4me-api/word/add-watermark
  - https://docs.pdf4me.com/pdf4me-api/image/compress-image
  - https://docs.pdf4me.com/pdf4me-api/convert/linearize-pdf
  - https://docs.pdf4me.com/pdf4me-api/excel/unlock-document
  - https://docs.pdf4me.com/pdf4me-api/forms/fill-a-pdf-form
servers:
- url: https://api.pdf4me.com
paths:
  /api/v2/CompressImage:
    post:
      operationId: post_api_v2_CompressImage
      tags:
      - Api
      summary: Compress Image API
      description: The PDF4me Compress Image REST API reduces the file size of JPG, PNG, and WebP images using intelligent compression algorithms.
        Send your image as a Base64‑encoded string, set the output format and compression level, and receive back a compressed image, all in a
        single synchronous POST call.
      x-source: https://docs.pdf4me.com/pdf4me-api/image/compress-image
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2CompressimageRequest'
      responses:
        '200':
          description: Success (status as documented)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PostApiV2CompressimageResponse'
      x-evidence:
        kind: documentation
  /api/v2/ConvertPdfToExcel:
    post:
      operationId: post_api_v2_ConvertPdfToExcel
      tags:
      - Api
      summary: POST /api/v2/ConvertPdfToExcel
      x-source: https://docs.pdf4me.com/pdf4me-api/convert/pdf-to-excel
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/api/v2/ConvertPdfToExcel \\ -H \"Content-Type: application/json\" \\ -H \"Authorization:\
          \ Basic YOUR_API_KEY\" \\ -d '{ \"docContent\": \"'\"$(base64 -w 0 invoice-report.pdf)\"'\", \"docName\": \"invoice-report.pdf\", \"\
          qualityType\": \"Draft\", \"mergeAllSheets\": true, \"outputFormat\": true, \"ocrWhenNeeded\": true, \"async\": true }' \\ --output\
          \ converted.xlsx \n What does the API return? "
  /api/v2/FillPdfForm:
    post:
      operationId: post_api_v2_FillPdfForm
      tags:
      - Api
      summary: POST /api/v2/FillPdfForm
      x-source: https://docs.pdf4me.com/pdf4me-api/forms/fill-a-pdf-form
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PostApiV2FillpdfformRequest'
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: 'curl -X POST https://api.pdf4me.com/api/v2/FillPdfForm \ -H "Content-Type: application/json" \ -H "Authorization: Basic YOUR_API_KEY"
          \ -d ''{ "templateDocName": "application-form.pdf", "templateDocContent": "https://example.com/forms/application-form.pdf", "dataArray":
          "{\"firstname\":\"John\",\"lastname\":\"Doe\"}", "inputDataType": "json", "outputType": "pdf", "KeepPdfEditable": false, "IsAsync"'
  /api/v2/LinearizePdf:
    post:
      operationId: post_api_v2_LinearizePdf
      tags:
      - Api
      summary: POST /api/v2/LinearizePdf
      x-source: https://docs.pdf4me.com/pdf4me-api/convert/linearize-pdf
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/api/v2/LinearizePdf \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic\
          \ YOUR_API_KEY\" \\ -d '{ \"docContent\": \"'\"$(base64 -w 0 report.pdf)\"'\", \"docName\": \"report.pdf\", \"optimizeProfile\": \"\
          web\" }' \\ --output linearized.pdf \n What does the API return? ​ \n Field Type What it contains 200 response body Binary (application/pdf)\
          \ The linearized PDF as raw by"
  /api/v2/Merge:
    post:
      operationId: post_api_v2_Merge
      tags:
      - Api
      summary: POST /api/v2/Merge
      x-source: https://docs.pdf4me.com/pdf4me-api/merge-split/merge
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/api/v2/Merge \\ -H \"Content-Type: application/json\" \\ -H \"Authorization: Basic YOUR_API_KEY\"\
          \ \\ -d '{ \"docContent\": [ \"'\"$(base64 -w 0 first.pdf)\"'\", \"'\"$(base64 -w 0 second.pdf)\"'\" ], \"docName\": \"merged.pdf\"\
          \ }' \\ --output merged.pdf \n What does the API return? ​ \n Field Type What it contains 200 response body Binary (application/pdf)\
          \ The merged PDF file itself as"
  /forms/application-form.pdf:
    get:
      operationId: get_forms_application_form_pdf
      tags:
      - Forms
      summary: GET /forms/application-form.pdf
      x-source: https://docs.pdf4me.com/pdf4me-api/forms/fill-a-pdf-form
      responses:
        '200':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl / SDK call. Pick the variant that matches where your PDF template and form data live. \n Variant PDF template ( templateDocContent\
          \ ) Form fields Required API fields A Base64 PDF JSON object → stringify → dataArray All rows in the JSON-form table below. B Public\
          \ PDF URL JSON object → stringify → dataArray Same as A; templateDocContent is the URL string. C Base64 PDF Base64-encoded JSON file\
          \ → d"
  /office/ApiV2Excel/ExcelExtractRows:
    post:
      operationId: post_office_ApiV2Excel_ExcelExtractRows
      tags:
      - Office
      summary: POST /office/ApiV2Excel/ExcelExtractRows
      x-source: https://docs.pdf4me.com/pdf4me-api/excel/extract-rows
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/office/ApiV2Excel/ExcelExtractRows \\ -H \"Content-Type: application/json\" \\ -H \"Authorization:\
          \ Basic YOUR_API_KEY\" \\ -d '{ \"document\": { \"Name\": \"data.xlsx\" }, \"docContent\": \"'\"$(base64 -w 0 data.xlsx)\"'\", \"extractRowsToExcelAction\"\
          : { \"worksheetName\": \"Sheet1\" } }' \\ --output response.json \n What does the API return? ​ \n A JSON result whose payload is the\
          \ rowDat"
  /office/ApiV2Excel/ExcelUnlock:
    post:
      operationId: post_office_ApiV2Excel_ExcelUnlock
      tags:
      - Office
      summary: POST /office/ApiV2Excel/ExcelUnlock
      x-source: https://docs.pdf4me.com/pdf4me-api/excel/unlock-document
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/office/ApiV2Excel/ExcelUnlock \\ -H \"Content-Type: application/json\" \\ -H \"Authorization:\
          \ Basic YOUR_API_KEY\" \\ -d '{ \"document\": { \"Name\": \"data.xlsx\" }, \"docContent\": \"'\"$(base64 -w 0 data.xlsx)\"'\", \"unlockExcelAction\"\
          : { \"password\": \"'\"$EXCEL_PASSWORD\"'\" } }' \\ --output response.json \n What does the API return? ​ \n A JSON result carrying\
          \ the unprotected workbo"
  /office/ApiV2Excel/ExcelUpdateRows:
    post:
      operationId: post_office_ApiV2Excel_ExcelUpdateRows
      tags:
      - Office
      summary: POST /office/ApiV2Excel/ExcelUpdateRows
      x-source: https://docs.pdf4me.com/pdf4me-api/excel/update-rows
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/office/ApiV2Excel/ExcelUpdateRows \\ -H \"Content-Type: application/json\" \\ -H \"Authorization:\
          \ Basic YOUR_API_KEY\" \\ -d '{ \"document\": { \"Name\": \"data.xlsx\" }, \"docContent\": \"'\"$(base64 -w 0 data.xlsx)\"'\", \"updateRowsToExcelAction\"\
          : { \"jsonInput\": \"[{\\\"Name\\\":\\\"John\\\",\\\"Age\\\":31}]\", \"insertFromRow\": 10, \"insertFromColumn\": 1 } }' \\ --output\
          \ response.json \n What do"
  /office/ApiV2Word/AddWatermark:
    post:
      operationId: post_office_ApiV2Word_AddWatermark
      tags:
      - Office
      summary: POST /office/ApiV2Word/AddWatermark
      x-source: https://docs.pdf4me.com/pdf4me-api/word/add-watermark
      responses:
        '201':
          description: Success (status as documented)
      x-evidence:
        kind: code-example
        language: curl
        snippet: "curl -X POST https://api.pdf4me.com/office/ApiV2Word/AddWatermark \\ -H \"Content-Type: application/json\" \\ -H \"Authorization:\
          \ Basic YOUR_API_KEY\" \\ -d '{ \"document\": { \"Name\": \"document.docx\" }, \"docContent\": \"'\"$(base64 -w 0 document.docx)\"'\"\
          , \"watermarkFileName\": \"watermark.png\", \"watermarkFileContent\": \"'\"$(base64 -w 0 watermark.png)\"'\", \"semiTransparent\": true\
          \ }' \\ --output response.json \n What"
components:
  schemas:
    PostApiV2CompressimageRequest:
      type: object
      properties:
        docName:
          type: string
          description: Filename of the source image including the file extension.
        docContent:
          type: string
          description: Base64 encoded image file content.
        imageType:
          type: string
          description: 'Output image format. Accepted values: JPG, PNG, WebP.'
        compressionLevel:
          type: string
          description: 'Compression intensity. Accepted values: Max, Medium, Low.'
      required:
      - docName
      - docContent
      - imageType
      - compressionLevel
    PostApiV2CompressimageResponse:
      type: object
      properties:
        File Content:
          type: string
          description: The compressed image file encoded as Base64.
        File Name:
          type: string
          description: Filename of the compressed output image.
    PostApiV2FillpdfformRequest:
      type: object
      properties:
        templateDocName:
          type: string
        templateDocContent:
          type: string
        dataArray:
          type: string
        inputDataType:
          type: string
        outputType:
          type: string
        KeepPdfEditable:
          type: boolean
        IsAsync:
          type: boolean
  securitySchemes:
    basic:
      type: http
      scheme: basic
security:
- basic: []
tags:
- name: Api
- name: Forms
- name: Office