PDF troubleshooting

How to Fix a Blank PDF When Exporting Markdown

By MDFormats · 3 min read · Published

If your PDF is blank after you edit a Markdown file, check three places in order. Look at the preview beside your Markdown, then look at your browser's print preview, then open the saved PDF. The first place where the words disappear tells you what to check next.

On this page

1. The preview beside your Markdown is blank

Check that the text you want to print is in the Markdown source box. If you made changes in a different app or tab, copy the latest text into the Markdown to PDF converter or choose Import Markdown file to open the updated file.

On a phone, choose Print preview only to see the tool’s preview, then switch back to Markdown only to keep editing. Before trying a sample, keep a copy of your current text. Then paste this short example into the tool.

Example 1
# PDF check

If this sentence appears, the preview has content.

If the example appears, paste back a small part of your document and check that it shows up. Start with a heading and a paragraph. Add the rest a section at a time if the problem returns. If even the short example stays blank, try a fresh tab with the same example.

2. The browser's print preview is blank

Once your text appears in the tool, choose Print / Save as PDF. Check the pages in the browser's print preview before saving.

  • Some pages are missing. Find Pages and choose All. A custom range can leave out a page you need.
  • Every page is blank. Close the print window and try printing the short example. If it still looks blank, try the same example in another browser. If it previews correctly there, try saving your document from that browser.

For help finding the print settings in Chrome, see Chrome's printing guide.

3. The preview looks right but the saved PDF is blank

Choose Save as PDF in the print window and give the new file a name you can recognize, such as notes-checked.pdf. Open that exact file from the folder where you saved it. If you had an earlier copy open, close it and open the new one.

Check the page count, the first heading and the last line. If the saved file still looks blank, open it in another PDF reader. If both readers show a blank page, save the short example as a new PDF and open it to see whether the problem happens with that file too.

Try a verified one-page example

Use Download sample Markdown above and open the file in the converter. Download sample PDF gives you the file we saved from MDFormats using Chromium’s print engine. To match it, choose A4, Portrait, Normal margins and the Clean theme.

The PDF has one page. Look for Weekend trip checklist at the top, Charger next to Front pocket in the table, and Bring your ticket. at the end. You can search the saved PDF for the last sentence. Then try the same checks on your own file.

If the PDF has its text but a table is cut off or an extra blank page appears, use the PDF layout guide to check paper settings and page breaks.

Frequently asked questions

Do I need a printer to save the PDF?

Choose the PDF option in the print window. The browser saves a file on your device without sending any pages to a printer.

What if the text is there but an image is missing?

Check whether the image loads in the tool’s preview. If it comes from a website and the browser can’t load it there, it may also be missing from the PDF. Reopen the preview after fixing the image link.

Can I still edit my Markdown after saving the PDF?

Yes. Keep your .md file, make changes there and save a fresh PDF when you’re ready. The PDF is a separate file.