PDF Processor - Extract Data from PDFs

Process PDFs - extract text, tables, and structured data from documents

How to use it

  1. Hit Copy the whole skill.
  2. Claude: ⋯ → Download .md, then Customize → Skills → Add → Upload skill.
    ChatGPT: make a Project and paste it into Instructions.
    Neither? Paste it at the top of a new chat — it works for that chat.
  3. Describe your job in plain words. The AI follows the skill from there.
Claude Code — installs the whole folder, not just SKILL.md
npx degit gooseworks-ai/goose-skills/skills/research-tools/capabilities/pdf-processor#main ~/.claude/skills/pdf-processor

For one project only, change the path to .claude/skills/pdf-processor.

Not working?
  • Check which app you pasted it into — the steps above name the right one.
  • Some skills need the paid tier of Claude or ChatGPT.
Step-by-step guide with screenshots · Ask in the forum

Paste into Claude, ChatGPT or Cursor.

Show the full text128 lines
pdf-processor/SKILL.md128 lines4.1 KBpushed 96d agoRawView on GitHub

PDF Processor - Extract Data from PDFs

Setup

Read your credentials from ~/.gooseworks/credentials.json:

export GOOSEWORKS_API_KEY=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json'))['api_key'])")
export GOOSEWORKS_API_BASE=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json')).get('api_base','https://api.gooseworks.ai'))")

If ~/.gooseworks/credentials.json does not exist, tell the user to run: npx gooseworks login

All endpoints use Bearer auth: -H "Authorization: Bearer $GOOSEWORKS_API_KEY"

Extract text, tables, and structured data from PDF documents.

Workflow

Step 1: Fetch PDF Content

Use Linkup to fetch PDF URLs:

curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"linkup","path":"/fetch","body":{"url":"https://example.com/document.pdf"}}'

Step 2: Extract with AI

Use ScrapeGraph to extract specific content:

curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"scrapegraph","path":"/v1/smartscraper"}'
  "website_url": "https://example.com/report.pdf",
  "user_prompt": "Extract all financial figures, tables, and key metrics from this document"
}'

Step 3: Extract Tables

Get structured table data:

curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"riveter","path":"/v1/run"}'
  "input": {
    "urls": ["https://example.com/report.pdf"]
  },
  "output": {
    "tables": {"prompt": "Extract all tables with titles, headers, and rows", "contexts": ["urls"]}
  }
}'

Step 4: Convert to Markdown

Get readable markdown output:

curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"scrapegraph","path":"/v1/markdownify","body":{"website_url":"https://example.com/document.pdf"}}'

Example Usage

# Extract data from financial report
curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"scrapegraph","path":"/v1/smartscraper"}'
  "website_url": "https://example.com/annual-report.pdf",
  "user_prompt": "Extract revenue, profit, and key business metrics with their values"
}'

# Extract invoice data
curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"riveter","path":"/v1/run"}'
  "input": {"urls": ["https://example.com/invoice.pdf"]},
  "output": {
    "vendor": {"prompt": "Vendor name", "contexts": ["urls"]},
    "amount": {"prompt": "Total amount", "contexts": ["urls"]},
    "date": {"prompt": "Invoice date", "contexts": ["urls"]}
  }
}'

Tips

  • Specify exact data you need for better extraction
  • Use schemas for consistent structured output
  • Handle multi-page documents in chunks
  • Verify extracted numbers against source

Discover More

List all endpoints, or add a path for parameter details:

curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/search \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"linkup API endpoints"}' api show riveter
curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/search \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"prompt":"scrapegraph API endpoints"}'

Example: `curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/details \
  -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"olostep","path":"/v1/scrapes`"}' for endpoint parameters.
1---
2name: pdf-processor
3description: Process PDFs - extract text, tables, and structured data from documents
4source: orthogonal
5---
6 
7 
8# PDF Processor - Extract Data from PDFs
9 
10## Setup
11 
12Read your credentials from ~/.gooseworks/credentials.json:
13```bash
14export GOOSEWORKS_API_KEY=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json'))['api_key'])")
15export GOOSEWORKS_API_BASE=$(python3 -c "import json;print(json.load(open('$HOME/.gooseworks/credentials.json')).get('api_base','https://api.gooseworks.ai'))")
16```
17 
18If ~/.gooseworks/credentials.json does not exist, tell the user to run: `npx gooseworks login`
19 
20All endpoints use Bearer auth: `-H "Authorization: Bearer $GOOSEWORKS_API_KEY"`
21 
22 
23Extract text, tables, and structured data from PDF documents.
24 
25## Workflow
26 
27### Step 1: Fetch PDF Content
28Use Linkup to fetch PDF URLs:
29 
30```bash
31curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
32 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
33 -H "Content-Type: application/json" \
34 -d '{"api":"linkup","path":"/fetch","body":{"url":"https://example.com/document.pdf"}}'
35```
36 
37### Step 2: Extract with AI
38Use ScrapeGraph to extract specific content:
39 
40```bash
41curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
42 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
43 -H "Content-Type: application/json" \
44 -d '{"api":"scrapegraph","path":"/v1/smartscraper"}'
45 "website_url": "https://example.com/report.pdf",
46 "user_prompt": "Extract all financial figures, tables, and key metrics from this document"
47}'
48```
49 
50### Step 3: Extract Tables
51Get structured table data:
52 
53```bash
54curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
55 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
56 -H "Content-Type: application/json" \
57 -d '{"api":"riveter","path":"/v1/run"}'
58 "input": {
59 "urls": ["https://example.com/report.pdf"]
60 },
61 "output": {
62 "tables": {"prompt": "Extract all tables with titles, headers, and rows", "contexts": ["urls"]}
63 }
64}'
65```
66 
67### Step 4: Convert to Markdown
68Get readable markdown output:
69 
70```bash
71curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
72 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
73 -H "Content-Type: application/json" \
74 -d '{"api":"scrapegraph","path":"/v1/markdownify","body":{"website_url":"https://example.com/document.pdf"}}'
75```
76 
77## Example Usage
78 
79```bash
80# Extract data from financial report
81curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
82 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
83 -H "Content-Type: application/json" \
84 -d '{"api":"scrapegraph","path":"/v1/smartscraper"}'
85 "website_url": "https://example.com/annual-report.pdf",
86 "user_prompt": "Extract revenue, profit, and key business metrics with their values"
87}'
88 
89# Extract invoice data
90curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/run \
91 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
92 -H "Content-Type: application/json" \
93 -d '{"api":"riveter","path":"/v1/run"}'
94 "input": {"urls": ["https://example.com/invoice.pdf"]},
95 "output": {
96 "vendor": {"prompt": "Vendor name", "contexts": ["urls"]},
97 "amount": {"prompt": "Total amount", "contexts": ["urls"]},
98 "date": {"prompt": "Invoice date", "contexts": ["urls"]}
99 }
100}'
101```
102 
103## Tips
104 
105- Specify exact data you need for better extraction
106- Use schemas for consistent structured output
107- Handle multi-page documents in chunks
108- Verify extracted numbers against source
109 
110## Discover More
111 
112List all endpoints, or add a path for parameter details:
113 
114```bash
115curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/search \
116 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
117 -H "Content-Type: application/json" \
118 -d '{"prompt":"linkup API endpoints"}' api show riveter
119curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/search \
120 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
121 -H "Content-Type: application/json" \
122 -d '{"prompt":"scrapegraph API endpoints"}'
123 
124Example: `curl -s -X POST $GOOSEWORKS_API_BASE/v1/proxy/orthogonal/details \
125 -H "Authorization: Bearer $GOOSEWORKS_API_KEY" \
126 -H "Content-Type: application/json" \
127 -d '{"api":"olostep","path":"/v1/scrapes`"}' for endpoint parameters.
128 

Discussion

Alternatives

Also in Services & APIs
Context7Pulls up-to-date, version-specific library docs and code examples into the prompt so the AI stops inventing old APIs.Coding · MITAdaptyv Bio Foundry APIHow to use the Adaptyv Bio Foundry API and Python SDK for protein experiment design, submission, and results retrieval. Use this skill whenever the user mentions Adaptyv, Foundry API, protein binding assays, protein screening experiments, BLI/SPR assays, thermostability assays, or wants to submit protein sequences for experimental characterization. Also trigger when code imports `adaptyv`, `adaptyv_sdk`, or `FoundryClient`, or references `foundry-api-public.adaptyvbio.com`.Science · MIT.NET Backend Development PatternsMaster C#/.NET backend development patterns for building robust APIs, MCP servers, and enterprise applications. Covers async/await, dependency injection, Entity Framework Core, Dapper, configuration, caching, and testing with xUnit. Use when developing .NET backends, reviewing C# code, or designing API architectures.Coding · MITAdd AI protectionProtect AI chat and completion endpoints from abuse — detect prompt injection and jailbreak attempts, block PII and sensitive info from leaking in responses, and enforce token budget rate limits to control costs. Use this skill when the user is building or securing any endpoint that processes user prompts with an LLM, even if they describe it as "preventing jailbreaks," "stopping prompt attacks," "blocking sensitive data," or "controlling AI API costs" rather than naming specific protections.Coding · CC0-1.0