Graphics, Figures & TablesDistortion of included pdf images in Mac Preview only?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
michaeltmccarthy
Posts: 3
Joined: Tue Jun 18, 2013 11:20 am

Distortion of included pdf images in Mac Preview only?

Post by michaeltmccarthy »

Dear Latex Community,

I'm having a problem with including pdf images in pdf latex documents.

I've made several images using Inkscape svg, and saved them in pdf format. Theses pdf images display perfectly well on Adobe Reader, and Mac Preview in pdf format.

When I compile the document using TeXShop on a Mac, the images in the resulting pdf are distorted, for example, with missing gradients, empty shapes, and solid transparencies.

But they only look distorted in Mac Preview (and the TeXShop pdf viewer), and look fine in Adobe Reader. I don't think the problem is with the pdf image files, as these are displayed normally in Mac Preview outside the latex document. The problem only appears in the TeXShop created pdf file.

I've made a minimal working example below, including the .tex file, the .cls file and a sample pdf image.

I'd appreciate any suggestions!!

Thanks,
Michael
Attachments
cartoon.pdf
pdf image
(215.12 KiB) Downloaded 409 times
example.cls
Class definition
(199 Bytes) Downloaded 354 times
ExampleTex.tex
Tex file
(120 Bytes) Downloaded 345 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Distortion of included pdf images in Mac Preview only?

Post by localghost »

I'm not sure if I can comprehend the problem because I use another PDF viewer (Okular) and you did not attach a screen capture of the output. I used this example code.

Code: Select all

\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}

\begin{document}
  \includegraphics[scale=0.5]{cartoon}
\end{document}
The resulting output is attached and seems to be as desired. Please compare with the view of the original "cartoon.pdf" on your machine. I uploaded the file to writeLaTeX and got the same output.


Thorsten
Attachments
ptmp.png
ptmp.png (76.49 KiB) Viewed 17010 times
michaeltmccarthy
Posts: 3
Joined: Tue Jun 18, 2013 11:20 am

Distortion of included pdf images in Mac Preview only?

Post by michaeltmccarthy »

Hi Thorsten,

Thanks for your answer. It seems that it's working alright for you then.
When I run the same code, and look at the pdf output in Adobe reader, I get:
20130620 adobe reader.png
20130620 adobe reader.png (166.97 KiB) Viewed 16950 times
And in Mac Preview, I get:
20130620 osx Preview.png
20130620 osx Preview.png (222.57 KiB) Viewed 16950 times
But again, the original pdf of the image exported from Inkscape looks fine on both viewers.

If you have any suggestions as to the cause, it would be great!

Thanks,
Michael
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Distortion of included pdf images in Mac Preview only?

Post by localghost »

michaeltmccarthy wrote:[…] If you have any suggestions as to the cause, it would be great! […]
As I already mentioned, I use completely different software. So I can't diagnose the problem. But it seems as if Preview has a bug.
michaeltmccarthy
Posts: 3
Joined: Tue Jun 18, 2013 11:20 am

Re: Distortion of included pdf images in Mac Preview only?

Post by michaeltmccarthy »

I think you're probably right!
Thanks again,
Michael
Post Reply