Document to Markdown with per-page hashes and offsets avatar

Document to Markdown with per-page hashes and offsets

Pricing

$30.00 / 1,000 document to markdown with per-page hashes and offsets runs

Go to Apify Store
Document to Markdown with per-page hashes and offsets

Document to Markdown with per-page hashes and offsets

Converts a PDF (text layer), DOCX, XLSX or PPTX file, or normalizes an HTML, Markdown, text, CSV or JSON file, into Markdown (or plain text) for an agent that must read or cite a document. Give an https URL or up to 4 MB as base64. Returns the content plus one unit per page,…

Pricing

$30.00 / 1,000 document to markdown with per-page hashes and offsets runs

Rating

0.0

(0)

Developer

WritersLogic

WritersLogic

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

an hour ago

Last modified

Features

Limited permissions

Share

Apify Actor status

Converts a PDF (text layer), DOCX, XLSX or PPTX file, or normalizes an HTML, Markdown, text, CSV or JSON file, into Markdown (or plain text) for an agent that must read or cite a document. Give an https URL or up to 4 MB as base64. Returns the content plus one unit per page, sheet or slide with its exact character range in the content and a SHA-256 of that unit's text, so later quote and citation checks can anchor to a page. Headings, lists, tables and links are kept for DOCX; sheets become tables; slides become sections. Set describe to also get a suggested descriptive file name, tags and a one-line summary (a fast model reads the first 6,000 characters; its quotes are checked against the text). It does NOT run OCR: scanned PDF pages are flagged needs_ocr and come back empty. Images, comments, notes, headers and footers are ignored, legacy .doc/.xls/.ppt and password-protected files are refused, and ZIP64 is unsupported.

Every result is a signed, verifiable answer:

  • a W3C Verifiable Credential 2.0, signed with eddsa-jcs-2022 by did:web:agents.writerslogic.com;
  • a C2PA-style manifest that lists every source the agent read, each with its SHA-256;
  • an EIP-191 co-signature over the same digest.

Change one byte and verification fails, so you can pass the result to a client, an auditor or another agent and they can check it without trusting you or us.

How to use Document to Markdown with per-page hashes and offsets

  1. Fill in the input form. Required fields are marked; the form opens with a working example.
  2. Start the run.
  3. Read the result in the Output tab, or download the dataset as JSON. The full signed envelope is also saved as the OUTPUT record in the key-value store.

Input

FieldRequiredDescription
urlnohttps URL of the document. Provide this or content_base64.
content_base64noStandard padded base64 of the file, at most 4 MB decoded. Provide this or url.
filenamenoOriginal file name; helps format detection and is kept as the extension of the suggested name.
formatnomarkdown (default) or text (Markdown syntax removed).
pagesnoPage, sheet or slide selection such as "1-5,8", at most 200 pages. Default: the first 200.
max_charsnoOutput cap in characters, cut at a unit boundary. Default 120000.
describenoAlso suggest a file name, tags and a summary with a language model. Default false.

Example input:

{
"url": "https://www.irs.gov/pub/irs-pdf/fw9.pdf",
"pages": "1-2",
"max_chars": 20000,
"describe": true
}

Output

{
"agent": "doc-to-markdown",
"data": { "...": "the agent's answer" },
"_provenance": { "credential": {}, "manifest": {}, "ethSignature": "0x..." }
}

To check a result for free, POST { "data": ..., "_provenance": ... } to https://agents.writerslogic.com/api/v1/verify-provenance, or verify it offline against the public key in the DID document.

Pricing

Apify charges once after the agent returns a successful answer. The result includes the event price for the run as priceUsd. See the Pricing tab for the current price.

Use it from code or an AI assistant

  • Apify API and integrations: call this Actor from Make, Zapier, n8n, LangChain or the Apify API like any other Actor.
  • MCP: npx -y @writerslogic/ai-agents-mcp exposes this agent and the rest of the hub as tools.
  • x402: the same agent is available at POST https://agents.writerslogic.com/api/v1/doc-to-markdown, paid per call in USDC on Base.

More verifiable agents

FAQ

Who runs this? WritersLogic. The agent runs on the WritersLogic Verifiable AI Agent Hub; this Actor sends your input there and returns the signed result.

Is my input stored? The Actor stores your result in your own Apify storage. Ask before sending confidential documents; the hub is a third-party service from your point of view.