Below, we use the putpdf suite of commands to create a PDF with a table of descriptive statistics and a table of regression results. We use data from the Second National Health and Nutrition Examination Survey (NHANES II) (McDowell et al. 1981) to analyze blood pressure, weight, and body mass index. We run the following commands to create our PDF:

And now we convert bpreport.pdf to a plain text file by typing
![]()
© Copyright 1996–2026 StataCorp LLC. All rights reserved.
Here is our plain text file:

REFERENCE
McDowell, A., A. Engel, J. T. Massey, and K. Maurer. 1981. “Plan and operation of the Second National Health and Nutrition Examination Survey, 1976–1980.” In Vital and Health Statistics, ser. 1, no. 15. Hyattsville, MD: National Center for Health Statistics.
Read more about pdf2txt in [RPT] pdf2txt in the Stata Reporting Reference Manual.