Do2pdf May 2026

Example:

do2pdf script.do --style monokai --line-numbers --toc -o script.pdf Convert multiple do-files into one PDF: do2pdf part1.do part2.do part3.do -o combined.pdf Use with custom template (e.g., for company letterhead): do2pdf analysis.do --template company.template -o report.pdf Pipe content directly: cat my_script.do | do2pdf -o from_stdin.pdf 5. Troubleshooting Error: pandoc: command not found → Install pandoc: brew install pandoc (macOS) or sudo apt install pandoc (Linux) do2pdf

do2pdf script.do --lang stata → Check that your do-file contains plain text and not binary content. Try converting with: Example: do2pdf script

→ Install highlight: same method as above. If you are referring to a different do2pdf (e

If you are referring to a different do2pdf (e.g., a custom script or from another software ecosystem), please clarify. The most common usage is for Stata do-files . 1. Installation On macOS (Homebrew):


© 2025 International Marine Purchasing Association
IMPA

IMPA Network

Join