Bug 690643 - PDF with mixed vector and raster component renders incorrectly when compiled with PDFLatex
Summary: PDF with mixed vector and raster component renders incorrectly when compiled ...
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows XP
: P4 minor
Assignee: Tor Andersson
URL: http://drop.io/edrjbto
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-21 09:57 UTC by maoserr
Modified: 2010-04-30 00:46 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description maoserr 2009-07-21 09:57:29 UTC
Version: 7-7-2009 Edition of mupdf.exe
System: Windows XP SP3 on Pentium 4

The first file "Interior.pdf" is generated with Inkscape with an SVG that 
has both vector and raster components.  It seems to display perfectly fine 
in MuPDF.  However, when it is included in a Latex file and compiled 
with PDFLatex (Using MikTex 2.7) using the following code:

\documentclass{article}
\usepackage{graphicx}
\begin{document}
\includegraphics{Interior.pdf}
\end{document}

The raster component is offset and not in the correct position (as seen in 
"Latex.pdf".
Comment 1 Tor Andersson 2009-07-21 13:25:46 UTC
The raster component is a pattern contained inside an XObject form. There is a bug in MuPDF where the 
inversion of the CTM to get the pattern space is done up to the beginning of the page instead of to the 
beginning of the containing content stream.
Comment 2 zeniko 2009-12-04 09:56:54 UTC
See http://code.google.com/p/sumatrapdf/source/detail?r=1577 for a potential patch 
(which still slightly fails for the file from 
http://code.google.com/p/sumatrapdf/issues/detail?id=743 , though).