Go to example tasks

Extract text from a government PDF form as Markdown

Pulls the instructions and field labels out of an official PDF form and returns them as Markdown, so an agent or script can read the form without a PDF library. This example converts the IRS W-9 form. Replace the URL with any public PDF form or notice.

Try for free
PDF to Markdown & Office File Converter
PDF to Markdown & Office File Convertermiacx/pdf-to-markdown-office-converter
Status
Input
Title
Format
+8 fields
Text
Number
Boolean
List
Object

Input

File URLs:https://www.irs.gov/pub/irs-pdf/fw9.pdf

Output fields

Status
Input
Title
Format
Page count
Billable Pages
Markdown
Tables
Textless PDF pages
Reason
Source URL
Fetched at

How it works

Sign up on Apify or log in

The PDF to Markdown & Office File Converter Actor is ready to run with the inputs already set for "Extract text from a government PDF form as Markdown". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Extract text from a government PDF form as Markdown" task

The PDF to Markdown & Office File Converter Actor will start running based on the input automatically. You can also change all the input fields, like file urls, to match your specific use case.

Receive the "Extract text from a government PDF form as Markdown" 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 status, input, title, and more.

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 text from a government PDF form as Markdown" task via API.

Image

Integrate "Extract text from a government PDF form as Markdown" into your workflow

Connect "Extract text from a government PDF form as Markdown" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The government PDF form task returns the form's text as Markdown, with its headings, instructions and field labels in reading order, plus the source URL.

No. The government PDF form task only extracts the text of a PDF. It doesn't fill in or submit forms.

A scanned PDF has no text layer, so the government PDF form task returns little or no text for it. The task doesn't run OCR.