<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Broken pdf/ps output due to badly placed newline"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100029#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - Broken pdf/ps output due to badly placed newline"
href="https://bugs.freedesktop.org/show_bug.cgi?id=100029">bug 100029</a>
from <span class="vcard"><a class="email" href="mailto:tadeus.prastowo@unitn.it" title="Tadeus Prastowo <tadeus.prastowo@unitn.it>"> <span class="fn">Tadeus Prastowo</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
</ul>
</body>
</html>