File > save As ... > pdf (or print as pdf) gives me extremely bad results even for the most basic simplest possible Mathematica notebooks.

Here a simple example where I can reproduce the problem.

E.g.,if I create the simplest Mathematica notebook I can think of: enter image description here

The result looks like this:

enter image description here which is completely useless. If it doesn't work for this simple example, I ask myself the question if I have still a chance to get an acceptable results for any real world notebook more complicated than "a=b+c"?

For most of the software that I use it is rather the exception to observe bugs. For the Matehmatica print feature I was not able to ever observe a line of code which was not full of bugs. I have entered the most simple probably most tested line of code consisting of 6 characters and there are 4 severe mistakes in the resulting pdf.

What am I doing wrong here? How can I fix this?

I am using Version Number on Linux x86 (64-bit Fedora Linux 36)

Edit: Changing the font to Courier does not help:

enter image description here

looks like the following when saved as pdf:

enter image description here

  • 1
    $\begingroup$ Windows 10 13.2 Works for me. $\endgroup$ Mar 24, 2023 at 19:38
  • $\begingroup$ In modern OSs, there is usually a way to print something to a PDF file. Does it work if you do File > Print... > Print to File, and is this an acceptable workaround for you? $\endgroup$
    – Domen
    Mar 24, 2023 at 19:43
  • $\begingroup$ @Domen Yes, as I have mentioned already in my question I have exactly the same problem when I print the file to a pdf file (File > Print... > Print to File (PDF) $\endgroup$
    – Jakob
    Mar 24, 2023 at 19:50
  • 1
    $\begingroup$ I was unable to reproduce this in my Debian 11 Bullseye VM. Does it behave better/differently if you evaluate the following before saving as PDF? CurrentValue[$FrontEndSession, {StyleHints, "CodeFont"}] = "Courier" $\endgroup$
    – ihojnicki
    Mar 24, 2023 at 20:27
  • 1
    $\begingroup$ @Jakob, I would contact Tech Support, and give them the output from SystemInformation[]. They will probably also want to know a few things about your setup. $\endgroup$
    – ihojnicki
    Mar 25, 2023 at 0:06

1 Answer 1


The following workaround allowed me avoid the bugs:

  1. I saved my notebook to the cloud,
  2. opened the notebook in the cloud via wolframcloud.com (in the browser)
  3. I used File > Print to PDF
  4. and downloaded the resulting PDF, which looks fine (except hyperlinks: Hyperlinks not preserved when saving in PDF format in Mathematica V13).

While I still have the same problems locally on Fedora. I don't face this problems in the cloud. So I can just simply use the cloud for printing as described above.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.