# Extract Structured PDF Tables to Clean JSON and CSV

**Use case:** 

Parse multi-page text-based PDFs into normalized JSON row records, RFC-4180 CSV tables, Markdown tables, and page-cited RAG chunks at 512 MB.

## Input

```json
{
  "pdfUrls": [
    "https://raw.githubusercontent.com/stqnbapxao-source/structmint-b2b-automation-kit/main/samples/public-cloud-fee-schedule-q4-2026.pdf"
  ],
  "watchMode": false,
  "onlyChanged": true,
  "watchStateKey": "default-pdf-watch",
  "storeCellValuesForDiff": false,
  "tableStrategy": "auto",
  "includeMarkdown": true,
  "includeRagChunks": true,
  "ragChunkMaxChars": 1800,
  "maxPagesPerPdf": 50,
  "maxFileSizeMb": 25
}
```

## Output

```json
{
  "sourceUrl": {
    "label": "PDF URL",
    "format": "string"
  },
  "watchStatus": {
    "label": "Watch Status",
    "format": "string"
  },
  "pageCount": {
    "label": "Pages",
    "format": "integer"
  },
  "tablesCount": {
    "label": "Tables",
    "format": "integer"
  },
  "totalTableRows": {
    "label": "Table Rows",
    "format": "integer"
  },
  "hasScannedOnlyPages": {
    "label": "Image-Only Pages?",
    "format": "boolean"
  },
  "extractionComplete": {
    "label": "Complete Scan",
    "format": "boolean"
  },
  "extractedAt": {
    "label": "Extracted At",
    "format": "string"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The PDF Structured Tables & Report-Change Watch (JSON) Actor is ready to run with the inputs already set for "Extract Structured PDF Tables to Clean JSON and CSV". [Sign up or log in](https://console.apify.com/create-task-from-example/TQpsvkjv4QtUvzbam) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Extract Structured PDF Tables to Clean JSON and CSV" task

The PDF Structured Tables & Report-Change Watch (JSON) Actor will start running based on the input automatically. You can also change all the input fields, like public pdf urls, enable report-change watch mode, and more, to match your specific use case.

### 3. Receive the "Extract Structured PDF Tables to Clean JSON and CSV" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as PDF URL, watch status, pages, and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Extract Structured PDF Tables to Clean JSON and CSV" task via API](https://apify.com/structmint/pdf-structured-tables-watch.md).

## FAQ

### Does this extract structured table rows and columns instead of flat text lines?

Yes. Each table is returned with deduplicated column headers, 2D rows, key-value JSON records, RFC-4180 CSV, GFM Markdown, bounding box coordinates, and a deterministic table fingerprint.

### How are image-only pages handled?

v1 focuses exclusively on fast, deterministic extraction of text-based PDFs at 512 MB RAM. Any image-only page with fewer than 25 text characters is explicitly flagged in scannedOnlyPages so downstream workflows never silently miss pages.

## About this Actor

This example demonstrates how to use [PDF Structured Tables & Report-Change Watch (JSON)](https://apify.com/structmint/pdf-structured-tables-watch.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/structmint/pdf-structured-tables-watch.md) to learn more, explore other use cases, and run it yourself.


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/structmint/pdf-structured-tables-watch.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
