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
Graphics, Figures & Tables ⇒ Distortion of included pdf images in Mac Preview only?
-
- Posts: 3
- Joined: Tue Jun 18, 2013 11:20 am
Distortion of included pdf images in Mac Preview only?
- 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
NEW: TikZ book now 40% off at Amazon.com for a short time.
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Distortion of included pdf images in Mac Preview only?
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.
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
Code: Select all
\documentclass[11pt]{article}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\begin{document}
\includegraphics[scale=0.5]{cartoon}
\end{document}
Thorsten
- Attachments
-
- ptmp.png (76.49 KiB) Viewed 17010 times
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 3
- Joined: Tue Jun 18, 2013 11:20 am
Distortion of included pdf images in Mac Preview only?
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: And in Mac Preview, I get: 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
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: And in Mac Preview, I get: 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
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Distortion of included pdf images in Mac Preview only?
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 wrote:[…] If you have any suggestions as to the cause, it would be great! […]
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
-
- Posts: 3
- Joined: Tue Jun 18, 2013 11:20 am
Re: Distortion of included pdf images in Mac Preview only?
I think you're probably right!
Thanks again,
Michael
Thanks again,
Michael