[Tex/LaTex] How to see PDF object in TeXworks


I am a bit new to TeX, and I have searched google for the answer to this question with no luck:

If I make a TeX file in TeXworks like the one shown below, how can I see/save this file in PDF format? I have attempted to save the file as a .pdf, but Adobe Reader does not recognize it and will not open it.

\documentclass {article}
\title{Investigation 7}
\author{John Smith}

BTW, I have downloaded and installed MacTeX and nothing else.

Best Answer

Actually there is no "printable" content in that document yet, thus no output. Try entering some text after \begin{document}. Also, be sure to select the pdfLaTeX dropdown option in the top left of the interface in TeXWorks.