Convert DO to PDF
Convert Stata DO scripts to PDF with local printing, command-line tools, and format checks.
Make PDF files online
We can't read DO files yet, so this conversion isn't available. If you can export your work to one of these formats - or others - we'll turn it into PDF:
How to convert do to pdf file
- Documents
- No ratings yet.
Stata .do scripts are commonly saved as PDF for code submission, review, printing, or archiving when recipients should not edit or run the commands. A PDF preserves the displayed layout and opens without Stata.
The .do extension is ambiguous: it can also appear in URLs handled by Java web applications. Check the file contents before converting it; a Stata script is plain text and often contains commands such as use, regress, generate, or tabulate.
What a DO file is
A Stata do-file is a plain-text source file containing Stata commands, comments, paths, and analysis steps. It is normally created in Stata's Do-file Editor, but any text editor can open it.
A .do file is executable code, not a page-layout format. Converting it to PDF creates a read-only visual copy; keep the original file because PDF is unsuitable for editing or rerunning the analysis.
If the file came from a web address ending in .do, the extension may be a servlet mapping rather than the actual file type. Open a copy in a text editor: HTML content should be saved or renamed as .html, opened in a browser, and printed to PDF. A download containing an error page, binary data, or no usable content cannot be generically converted based on its extension.
What PDF provides
PDF stores a fixed-page representation with page size, line layout, and optionally embedded fonts. It is appropriate for distributing code as a stable record, attaching it to a report, and printing it without font or line-wrap changes caused by a recipient's editor.
A PDF of a do-file contains the source code only. It does not include Stata output, graphs, tables, or data unless those items are exported separately.
Convert a Stata do-file to PDF
Printing from Stata or a text editor is the most dependable method, because it preserves code indentation and comments as displayed.
- Open the file in Stata's Do-file Editor. If Stata is unavailable, use a text editor with printing support, such as Notepad++ on Windows or TextEdit on macOS.
- Select a monospaced font and a readable size, usually 9–11 pt. Disable word wrap if each command must remain on one source line.
- Use File → Print.
- On Windows, select Microsoft Print to PDF. On macOS, select PDF → Save as PDF in the print dialog. On Linux, select Print to File and choose PDF output, or use an installed PDF printer.
- Use landscape orientation, a smaller font, or a wider paper size if long commands wrap. Save the result as, for example,
analysis.pdf. - Open the PDF and check page breaks, indentation, long lines, and non-ASCII characters.
For automated conversion on systems with GNU Enscript and Ghostscript installed, create PostScript and convert it to PDF:
enscript -f Courier10 -o analysis.ps analysis.dops2pdf analysis.ps analysis.pdf
This method may need additional font and encoding configuration for UTF-8 text. Test accented or non-Latin characters in the resulting PDF.
Online conversion and compatibility limits
Online text-to-PDF services such as CloudConvert can be used when local printing is unavailable. Upload a copy renamed from analysis.do to analysis.txt if the service does not recognize the extension, select PDF output, and verify that the result uses a monospaced font and preserves line breaks.
Do not upload scripts containing credentials, participant data, confidential paths, API keys, or unpublished research to a third-party converter. Local PDF printing avoids transferring the source file outside the device.
Use UTF-8 when saving the do-file, and inspect the PDF on another device if it is being submitted externally. Missing fonts or printer encoding can replace characters, while long lines can wrap visually even though the original script remains unchanged.
To capture analysis results, run the do-file and export the relevant Stata log, graphs, or tables separately. A printed do-file cannot reproduce output generated during execution.
Simply put, it is impossible to convert DO to PDF directly.
Thus, there is no so-called do to pdf converter or a free online .do to .pdf conversion tool.
Additional formats for
do file conversion
Convert to pdf from
other formats
- spo to pdf
- sig to pdf
- pmd to pdf
- cnote to pdf
- jrprint to pdf
- avi to pdf
- p7s to pdf
- mht to pdf
- spv to pdf
- apkg to pdf
- 000 to pdf
- 123 to pdf
- 2020 to pdf
- 2021 to pdf
- 2022 to pdf
- 2023 to pdf
- 2024 to pdf
- 2025 to pdf
- 2026 to pdf
- 602 to pdf
- _pdf to pdf
- ab65 to pdf
- abw to pdf
- acad to pdf
- adoc to pdf
- afdesign to pdf
- al8 to pdf
- alf to pdf
- arc to pdf
- ascii to pdf
- asd to pdf
- ashx to pdf
- asic to pdf
- asice to pdf
- asics to pdf
- asp to pdf
- avl to pdf
- awp to pdf
- aww to pdf
- bak to pdf
- bartender to pdf
- bdb to pdf
- bib to pdf
- bibtex to pdf
- bin to pdf
- bk to pdf
- blk to pdf
- bok to pdf
- bpm to pdf
- bpmn to pdf
- bpnueb to pdf
- brh to pdf
- btd to pdf
- btf to pdf
- bwd to pdf
- cat to pdf
- cddz to pdf
- cdf to pdf
- cdl to pdf
- celtx to pdf
- cfa to pdf
- cfm to pdf
- ciw to pdf
- clgx to pdf
- cmx to pdf
- cnt to pdf
- cnv to pdf
- cpd to pdf
- cpgz to pdf
- crdownload to pdf
- creole to pdf
- crtx to pdf
- csv to pdf
- cwk to pdf
- db.crypt7 to pdf
- dbk to pdf
- dcf to pdf
- ddd to pdf
- dec to pdf
- dft to pdf
- dif to pdf
- dis to pdf
- djv to pdf
- doc to pdf
- docbook to pdf
- docm to pdf
- docx to pdf
- dotm to pdf
- dotx to pdf
- dox to pdf
- dsf to pdf
- dtf to pdf
- ecsv to pdf
- edoc to pdf
- edw to pdf
- edx to pdf
- egg to pdf
- emc to pdf
- emm to pdf
- enb to pdf
- enw to pdf
- epf to pdf
- er1 to pdf
- es3 to pdf
- et to pdf
- ete to pdf
- exb to pdf
- excel to pdf
- exe to pdf
- ext to pdf
- fadein to pdf
- fax to pdf
- fbd to pdf
- fdf to pdf
- fdx to pdf
- ffdata to pdf
- file to pdf
- fin to pdf
- flw to pdf
- fodt to pdf
- fountain to pdf
- fpc to pdf
- fr3 to pdf
- ftil to pdf
- fzz to pdf
- gdoc to pdf
- gdraw to pdf
- ggb to pdf
- gif to pdf
- gml to pdf
- gofin to pdf
- graphml to pdf
- gsheet to pdf
- gslides to pdf
- gsp to pdf
- gwb to pdf
- heic to pdf
- hnd to pdf
- htm to pdf
- html to pdf
- hwp to pdf
- idd to pdf
- idea to pdf
- idml to pdf
- ifs to pdf
- igr to pdf
- ila to pdf
- image to pdf
- imscc to pdf
- ind to pdf
- indb to pdf
- indd to pdf
- indt to pdf
- ink to pdf
- ino to pdf
- inp to pdf
- inpage to pdf
- ipynb to pdf
- isf to pdf
- iwa to pdf
- iwb to pdf
- jats to pdf
- jdm to pdf
- jfif to pdf
- jfs to pdf
- jif to pdf
- jnt to pdf
- jprint to pdf
- jps to pdf
- js to pdf
- jtd to pdf
- kbd to pdf
- key to pdf
- keynote to pdf
- kml to pdf
- latex to pdf
- ldf to pdf
- ll to pdf
- lnk to pdf
- lp to pdf
- lp2 to pdf
- lst to pdf
- lvm to pdf
- lwp to pdf
- lyx to pdf
- m7p to pdf
- man to pdf
- mcd to pdf
- mcdx to pdf
- mcf to pdf
- mcw to pdf
- md to pdf
- mde to pdf
- mdi to pdf
- mediawiki to pdf
- mhtml to pdf
- mml to pdf
- model to pdf
- mp4 to pdf
- mpd to pdf
- mpp to pdf
- msg to pdf
- mso to pdf
- msor to pdf
- mst to pdf
- muse to pdf
- mwd to pdf
- mxd to pdf
- mxfd to pdf
- nb to pdf
- nbib to pdf
- nbp to pdf
- not to pdf
- note to pdf
- notebook to pdf
- notes to pdf
- numbers to pdf
- nwd to pdf
- nwdb to pdf
- odc to pdf
- odf to pdf
- odm to pdf
- odp to pdf
- ods to pdf
- odt to pdf
- ofm to pdf
- olf to pdf
- one to pdf
- onepkg to pdf
- opdownload to pdf
- opx to pdf
- opxs to pdf
- ora to pdf
- org to pdf
- otc to pdf
- otf to pdf
- ots to pdf
- ott to pdf
- oxf to pdf
- oxps to pdf
- p65 to pdf
- pages-tef to pdf
- pages to pdf
- par to pdf
- part to pdf
- pbb to pdf
- pd to pdf
- pdf_ to pdf
- pdfx to pdf
- pdm to pdf
- pdp to pdf
- pds to pdf
- pdsprj to pdf
- pdx to pdf
- pem to pdf
- pez to pdf
- pfile to pdf
- pfl to pdf
- pict to pdf
- pie to pdf
- pkp to pdf
- pl1 to pdf
- plan to pdf
- pln to pdf
- pm to pdf
- pm4 to pdf
- pm5 to pdf
- pm6 to pdf
- pm7 to pdf
- pmb to pdf
- pmdx to pdf
- pmt to pdf
- pmv to pdf
- pmx to pdf
- pod to pdf
- potx to pdf
- ppam to pdf
- ppg to pdf
- pps to pdf
- ppsm to pdf
- ppsx to pdf
- ppt to pdf
- pptx to pdf
- prc to pdf
- prd to pdf
- prdx to pdf
- prj to pdf
- prn to pdf
- prnx to pdf
- psa to pdf
- psw to pdf
- ptn to pdf
- ptx to pdf
- pub to pdf
- puz to pdf
- pwd to pdf
- pwi to pdf
- pxl to pdf
- pzf to pdf
- pzm to pdf
- qpw to pdf
- qrp to pdf
- qvw to pdf
- qxd to pdf
- qxp to pdf
- qxt to pdf
- rar to pdf
- rcc to pdf
- rdat to pdf
- rep to pdf
- rhs to pdf
- rio to pdf
- riof to pdf
- ris to pdf
- roz to pdf
- rpt to pdf
- rst to pdf
- rtf to pdf
- rvf to pdf
- sam to pdf
- sav to pdf
- sb3 to pdf
- sbf to pdf
- sbp to pdf
- scrivx to pdf
- sda to pdf
- sdd to pdf
- sdf to pdf
- sdoc to pdf
- sdocx to pdf
- sdr to pdf
- sdt to pdf
- sdw to pdf
- shs to pdf
- slk to pdf
- smd to pdf
- snp to pdf
- sor to pdf
- spa to pdf
- spbm to pdf
- splan to pdf
- spss to pdf
- sti to pdf
- stw to pdf
- sty to pdf
- svd to pdf
- sxc to pdf
- sxd to pdf
- sxi to pdf
- sxw to pdf
- t65 to pdf
- ta1 to pdf
- tbk to pdf
- tex to pdf
- text to pdf
- textclipping to pdf
- textile to pdf
- tmdx to pdf
- tmv to pdf
- tns to pdf
- tpk to pdf
- trc to pdf
- tsv to pdf
- txf to pdf
- txt to pdf
- typ to pdf
- uof to pdf
- uot to pdf
- vce to pdf
- vdoc to pdf
- vdx to pdf
- video to pdf
- vpd to pdf
- vss to pdf
- vvv to pdf
- w51 to pdf
- wbk to pdf
- web to pdf
- wk1 to pdf
- wk4 to pdf
- wks to pdf
- wls to pdf
- word to pdf
- wp to pdf
- wp5 to pdf
- wp6 to pdf
- wpd to pdf
- wps to pdf
- wpt to pdf
- wr1 to pdf
- wri to pdf
- wsd to pdf
- wtp to pdf
- wxmx to pdf
- x to pdf
- xbd to pdf
- xbrl to pdf
- xdf to pdf
- xdfl to pdf
- xdw to pdf
- xfd to pdf
- xfdf to pdf
- xfdl to pdf
- xlr to pdf
- xls to pdf
- xlsb to pdf
- xlsm to pdf
- xlsx to pdf
- xlt to pdf
- xmcd to pdf
- xmcdz to pdf
- xmi to pdf
- xml to pdf
- xmzx to pdf
- xps to pdf
- xrdml to pdf
- xsn to pdf
- xy to pdf
- youtube to pdf
- zargo to pdf
- zave to pdf
- zdl to pdf