New: PDF to E-Invoice for Factur-X/ZUGFeRD, and PDF to PDF/A for archive-ready PDF/A-3b.

New in PDF.co: Convert Markdown to PDF

We're pleased to share that Markdown to PDF is now available in the PDF.co API! Send a markdown document to a single endpoint, either as text in the request or as a link to a hosted file, and you'll get back a finished PDF with nothing to configure along the way.

We built it to close a gap that has become steadily more obvious over the past year. AI agents write in markdown, and the people who have to read, approve or send what those agents produce need a PDF. Bridging the two has meant building and maintaining your own markdown-to-HTML-to-PDF pipeline, which is work that has very little to do with the product you're actually trying to ship.

Where other tools usually break

Rendering markdown is the straightforward part, and plenty of tools handle it well enough. What separates a usable PDF from an embarrassing one is everything that happens around the rendering, and that's where most converters quietly fall short.

Korean, Japanese and Chinese text tends to arrive as rows of empty boxes, because no CJK font was available to the renderer. Wide tables run off the right edge of the page and take their data with them. Long code lines get cut mid-statement, and images referenced by URL go missing with no indication that anything was lost. None of these are edge cases; they're what happens to ordinary documents when the conversion layer wasn't built with them in mind.

We addressed all four. A CJK font ships with the endpoint, so Korean, Japanese and Chinese render correctly without any font configuration on your side. Wide tables wrap to the page width rather than overflowing it, long code lines wrap while long blocks continue onto the following page, and images are fetched and embedded, with SVG converted to PNG first so that gradients and styles survive the trip.

What happens when something can't be fixed

Not every problem can be solved during conversion, and those cases are the ones we were most careful about. If an image returns a 404, the conversion still succeeds and you receive both the PDF and a warning naming the image and explaining what to do about it. A single broken link shouldn't cost you a forty-page report, but it shouldn't disappear without comment either.

The same principle applies to text that renders correctly on screen yet copies or searches inaccurately, and to relative links in inline markdown, which can't be resolved because there's no source document to resolve them against. In each case the result arrives with a warning rather than an unexplained gap, which matters more than usual when the caller is an automated pipeline that has no way of noticing something is missing.

Why there are no options

Markdown to PDF accepts no page size, margin, stylesheet or font parameters, and that's the decision we expect to field the most questions about. We made it with the primary caller in mind.

AI agents don't read documentation. They infer parameter names and values from context, and when they guess wrong, the failure is frequently silent. In our own testing, sending a plausible but incorrect parameter to a competing service returned an empty PDF and no error at all, a result that looks like success right up until somebody opens the file. Removing the parameters removes that failure mode entirely, leaving one input and one layout: Letter portrait, designed to keep tables, code and images on the page.

Logos, headers and custom stylesheets are a real requirement, but they depend on a template that a person has to build first, which isn't something an agent can do. Those cases are well served by HTML to PDF, which has the layout controls to match.

Getting started

Conversion runs asynchronously, so a long document can't time out on you. Submit the job, then either poll the job check endpoint with the ID you receive, or supply a callback URL and we'll send the result through when it's ready.

curl --request POST \
  --url 'https://api.pdf.co/v1/pdf/convert/from/md' \
  --header 'Content-Type: application/json' \
  --header "x-api-key: $PDFCO_API_KEY" \
  --data-raw '{"url": "https://example.com/report.md"}'

The API reference covers the full request and response contract, supported markdown features, warning codes and limits, and there's an API Tester if you'd rather run a conversion from your browser first. The endpoint is also available through the PDF.co MCP server, so your agents can call it directly.

Markdown goes in, a readable PDF comes out, and nothing in between needs configuring.