For AI agents

AI agent Markdown to PDF

Your agent writes a report in Markdown. The user wants it as a PDF. One CLI command bridges the two. No Python script calling Pandoc, no LaTeX install, no headless Chrome dance.

Most agents are great at writing Markdown. It matches their training distribution and lets them think in structured prose. They're worse at delivering anything other than Markdown. The user asked for a PDF audit report and got a .md file dropped into their repo.

OpenDocs gives the agent a one-line shortcut. Run opendocs publish report.md --export pdf --json and the response is a JSON payload with a hosted URL, a PDF download URL, and metadata. The agent prints the URL, the user clicks, the PDF lands in their downloads folder.

The agent workflow

# Install once
npm install -g @opendocs.cc/cli

# Authenticate (one-time, opens browser)
opendocs login --browser

# Publish, get a shareable URL back
opendocs publish report.md --export pdf --json

With --json, the response is machine-parseable. The agent grabs data.exportUrls.pdf and returns it. No extra dependencies, no document-conversion libraries to install.

Why agents prefer this over Pandoc

Works with

Anything that runs shell commands. We have specific guides for the common ones:

Stop having your agent dump files into your repo.

Free plan publishes up to 10 docs with PDF export included.

Sign up free
AI Agent Markdown to PDF — One CLI Command · OpenDocs