On 01/20/2016 01:19 PM, Wolfgang Schuster wrote:
Pablo Rodriguez 20. Januar 2016 um 13:10 [...] How can I invert the colors in the external figure without having to edit the image file?
Many thanks for your help, You have to use the Adobe Reader to view the PDF.
Many thanks for your solution, Wolfgang. I’m afraid that I’m on Linux and I don’t have Adobe Reader installed. But it is fine for me, since I’m going to print the file with Adobe Reader DC. It seems that other viewers don’t implement the /TR entry from /ExtGState dictionary (according to the PDF spec). I’m going to report the issue for Ghostscript, mupdf and poppler, so that they have the feature implemented. Many thanks for your help, Pablo
\setupexternalfigure[location=default]
\starttext
\externalfigure[cow][width=\textwidth]
\startnegative \externalfigure[cow][width=\textwidth] \stopnegative
\startnegative \externalfigure[cow][background=color,backgroundcolor=white,width=\textwidth] \stopnegative
\stoptext
Wolfgang