Evince, known as Document Viewer in Ubuntu, is a PDF viewer program. When printing certain PDF files, I notice that Evince does not print some of the pages. For a problematic PDF file, this problem happens with any printer and even with the Print to File option! I am guessing that this problem is the same as the one documented in this bug.
Sometimes, I get this error printed on the last page:
ERROR: typecheck OFFENDING COMMAND: known
I am guessing that this problem is caused due to a bug in the printing backend, maybe in CUPS. So, I open such PDF file in a PDF viewer with a different backend, like Okular.
Okular can be installed easily:
$ sudo apt install okular
When I print from Okular, the PDF is printed correctly! 🙂
Tried with: Evince 3.4.0, Okular 0.14.3 and Ubuntu 12.04 LTS