Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Translating do file to pdf

    I am using the following command:

    translate 4th_Assignmnet.do 4th_Assignmnet.pdf

    and get:

    translator do2pdf not found
    r(111);


    when I try to install do2pdf can't find it.

    How can I solve this problem?









  • #2
    If you study the output of -help translate- or its manual entry, you will see all of the available (pre-defined) options for translation between file types. A translator for do --> pdf is not, as such, available. However, since a do file is nothing more than a plain text file, you may use the txt2pdf translator. The help file also documents how to map "odd" extensions to ones it knows about so that it can perform translation, but for do files specifically, you don't need to do this because Stata already knows its do file format is a text file.

    Code:
    translate dofile pdffile, translator(txt2pdf)

    Comment

    Working...
    X