[cairo-bugs] [Bug 100029] Broken pdf/ps output due to badly placed newline

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 3 11:11:08 UTC 2019


https://bugs.freedesktop.org/show_bug.cgi?id=100029

--- Comment #2 from Tadeus Prastowo <tadeus.prastowo at unitn.it> ---
Since the original example is quite long, I would like to add a short example
extracted from a real programming document that hits this bug hard.  The
example is the following short LaTeX document whose PDF is produced using
`pdflatex' that comes with Ubuntu 16.04 (pdfTeX 3.14159265-2.6-1.40.16 (TeX
Live 2015/Debian)):
-- 8< -- mwe.tex ----
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage{libertine}
\usepackage{listings}

\begin{document}

\begin{lstlisting}
xxxxxxxxxxxx<xxxxxx, !xxx>
\end{lstlisting}

\end{document}
-- 8< -- mwe.tex ----

Opening the resulting PDF using Evince in Ubuntu 16.04 that uses Cairo 1.14.6
and printing it to Kyocera TASKalfa 4551ci result in the following print out:
-- 8< ---------------
Error Name:           /undefined

Offending Command:    ****


Operand Stack:
-- 8< ---------------

Investigating the PS file that Evince produces when the PDF is printed to a PS
file shows the culprit, which is a newline at offset 00004f11, shown below:
00004f10: 2d0a 3135 3728 3e29 5d54 4a0a 3136 2e39  -.157(>)]TJ.16.9

I confirm that commit e2ab1c608fcb54d86ac30852aec4cac36ef1e577, which refers to
this bug report, solves the problem.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20190303/e5c2b923/attachment.html>


More information about the cairo-bugs mailing list