I have a strange conundrum. I created this image in TikZ:


\draw[color=black!30!white,line width=0.1mm] (0.4,0.692)--(0.6,0.692)--(0.9,0.1732)--(0.8,0)--cycle;
\fill[red] (0.4,0.692)--(0.6,0.692)--(0.9,0.1732)--(0.8,0)--cycle;
\fill[yellow, path fading=north] (0.4,0.692)--(0.6,0.692)--(0.9,0.1732)--(0.8,0)--cycle;
\draw[color=black!30!white,line width=0.1mm] (0.1,0.1732)--(0.9,0.1732)--(0.8,0)--(0.2,0)--cycle;
\fill[yellow] (0.1,0.1732)--(0.9,0.1732)--(0.8,0)--(0.2,0)--cycle;
\fill[blue!20!green, path fading=east] (0.1,0.1732)--(0.9,0.1732)--(0.8,0)--(0.2,0)--cycle;
\draw[color=black!30!white,line width=0.1mm] (0.1,0.1732)--(0.4,0.692)--(0.6,0.692)--(0.2,0)--cycle;
\fill[red] (0.1,0.1732)--(0.4,0.692)--(0.6,0.692)--(0.2,0)--cycle;
\fill[blue, path fading=north] (0.1,0.1732)--(0.4,0.692)--(0.6,0.692)--(0.2,0)--cycle;

It compiles fine with PDFLatTeX, and the screen output is perfect.

However, when I go to print the PDF using Adobe Acrobat Pro XI, it gives me an error:

"This document could not be printed", and then "There were no pages selected to print"

I removed the image from the document, and the document printed fine. I tried to print the image on its own, and it did not print. I went digging through the PDF "preflight" settings. There is no broken PDF syntax; that checks out. The best I can figure out is that the colors in the image are causing some sort of problem, as flattening them to sRGB works through Acrobat, but I don't know how to fix that at compile time so I don't have to edit it in Acrobat.

Does anyone have any idea what to do?

closed as off-topic by Joseph Wright Dec 16 '15 at 11:43

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I've never had one not print at all. But I wouldn't necessarily expect an image with a fading to print correctly. At least, they generally don't for me. – cfr Aug 18 '15 at 22:42
  • Beautiful colours, though. You could convert the image to PNG or PDF and try including that with \includegraphics. I don't know it will work, but it might. You can also try converting the PDF document to PS and back to PDF with ghostscript, but this will make the file huge and probably break the fading. – cfr Aug 18 '15 at 22:48
  • Strange. On my 20-years old PostScript HP LaserJet (black-and-white, 4p/min) I get it within a few seconds, printing from SumatraPDF. – Bernard Aug 18 '15 at 23:05
  • Works for me too (Canon 3530). Of course its only .32in by .28in. – John Kormylo Aug 18 '15 at 23:55
  • 2
    Fadings and shadings are relatively new PostScript operations that are created on the fly. New printers tend to handle these relatively OKish but old or non-PS printers and non-Acrobat PDF viewers deal with these in a wide spectrum of success. One of the reasons for this is that they fall back to rasterizing the image as you do with flattening. So that the rendering is done on the software rather on the printer. Acrobat assumes full functionality but your driver says otherwise hence the problem. – percusse Aug 19 '15 at 4:06

Browse other questions tagged or ask your own question.