Export an Azure DevOps Wiki to PDF

The wiki's built-in print option handles one page. A handbook, a runbook or audit documentation usually needs a whole section in one document.

The built-in option: print one page

Each wiki page has a Print page option in its menu. It uses your browser's print dialog, so you can choose Save as PDF. Microsoft's documentation notes that it prints one page at a time and may not be available in Firefox. Subpages are not included, so a section with thirty pages means thirty PDFs.

Open-source command-line tools

Community tools such as AzureDevOps.WikiPDFExport work on a clone of the wiki's Git repository and produce one PDF. They need the repository cloned locally, a .NET runtime, and some tolerance for Markdown edge cases; the project lists known gaps such as the [[_TOC_]] tag not being supported. A reasonable choice if you are already automating documentation builds in a pipeline.

Export to Word, then save as PDF

Wiki to Word Export for Azure DevOps exports a whole wiki or one subtree to a single .docx in the order set by the wiki's .order files, with a table of contents, headings shifted by depth, embedded images and internal links turned into bookmarks. Open it in Word, accept the prompt to update fields so the table of contents fills in, then use File, Save As, PDF. Word keeps the table of contents and bookmarks as clickable links in the PDF.

The extra Word step is useful in itself: a cover page, a version table or a sign-off block can be added before the PDF goes out.

Getting a clean result

  • Fix broken links in the wiki first. A link to a page that no longer exists stays broken in any export.
  • Use attached images rather than images hosted elsewhere, which may not load or embed.
  • Export the subtree the reader needs, not the whole wiki. A 400-page PDF is rarely read.

A whole wiki section in one document

Free exports up to 10 pages per export with a small footer line. Pro removes both for US$10/month per Azure DevOps organization.

See Wiki to Word Export for Azure DevOps Install from Visual Studio Marketplace

I'm the developer of Wiki to Word Export for Azure DevOps, so weigh this guide accordingly. Azure DevOps, Microsoft Word and Microsoft Excel are trademarks of Microsoft. This extension is independent and is not affiliated with or endorsed by Microsoft.