Bug 690643

Summary: PDF with mixed vector and raster component renders incorrectly when compiled with PDFLatex
Product: MuPDF Reporter: maoserr <maoserr>
Component: mupdfAssignee: Tor Andersson <tor.andersson>
Status: RESOLVED FIXED    
Severity: minor    
Priority: P4    
Version: unspecified   
Hardware: PC   
OS: Windows XP   
URL: http://drop.io/edrjbto
Customer: Word Size: ---

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).