This is documentation for Mathematica 8, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)
How to | Export to PDF
You may wish to save your work in a format other than the default Mathematica notebook for sharing or publication. Mathematica has a very robust system for exporting your documents to PDF, a popular file format.
This is a selection of examples from the complete "How to" screencast. »
The simplest way to export a Mathematica notebook to PDF is to use the FileSave As... menu item:
With the notebook you wish to export to PDF set as the active window, select FileSave As, give the file a name, select PDF as the file type, and then click Save.
In this example, the notebook saved to PDF contains a plot and a 10×10 matrix of random integers. The magnification in the PDF viewer was lowered to show the whole document:
You can also export individual cells, groups of cells, or other Mathematica objects to PDF by selecting them and then using FileSave Selection As.
In addition, you can save to PDF from within a notebook itself. This is useful when you are exporting a large cell or exporting to PDF frequently or from within a program.
Create a plot to export. The plot here is the same one that was used in the notebook from the previous example:
Click for copyable input
Export the plot to PDF ( specifies the most recent output):
Click for copyable input
If you select the plot or its cell and then use FileSave Selection As to export it to PDF, the resulting PDF will match the one created here.
You can also export an entire notebook to PDF from within the notebook itself:
Click for copyable input
Because exporting EvaluationNotebook exports the whole notebook, even the Export expression will show up in the PDF.
The screencast for this "How to" addresses omitting the Export expression from the resulting PDF.