Dear Stata Experts,
I would like to use the putpdf command to combine a graph and a table into a single pdf file.
The trouble is that I made the table with tabdisp. I suspect there are at least two possible solutions:
Solution 1: save/export the tabdisp output in a format that putpdf can handle
Solution 2: replicate the tabdisp output with the putpdf table or putpdf collect command
Unfortunately, I am not sure how to do either of these things. . .
I have put some example code below.
Thanks,
Jeremy
I would like to use the putpdf command to combine a graph and a table into a single pdf file.
The trouble is that I made the table with tabdisp. I suspect there are at least two possible solutions:
Solution 1: save/export the tabdisp output in a format that putpdf can handle
Solution 2: replicate the tabdisp output with the putpdf table or putpdf collect command
Unfortunately, I am not sure how to do either of these things. . .
I have put some example code below.
Thanks,
Jeremy
Code:
sysuse auto, clear *Make graph scatter weight mpg graph export "Figure 1.png" *Make table tabdisp rep78 foreign if mi(rep78)==0, cellvar(make) *Solution 1 here? *combine graph and table into a pdf *open pdf putpdf clear putpdf begin, landscape halign(center) *Add the graph putpdf paragraph putpdf image "Figure 1.png" *Add the table *Solution 2 here? *save pdf putpdf save "car info.pdf", replace
Comment