<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Stefan,<br><br>I am a poppler user, not a popper maintainer. I can't push changes. Sorry.<br><br>Regards,<br>William <br><br><hr>From: stefan.brandner@gmx.at<br>To: williambader@hotmail.com; poppler@lists.freedesktop.org<br>Subject: Aw: RE: [poppler] Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript<br>Date: Thu, 22 Oct 2015 09:18:11 +0200<br><br><div style="font-family:Verdana;font-size:12.0px;"><div>
<div>This printing problem appear at pdf files which are coming from scanner.</div>

<div>Since years there are reports of this problem:</div>

<div>https://forum.kde.org/viewtopic.php?f=20&t=97572<br>
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=761487<br>
https://bugs.kde.org/show_bug.cgi?id=338456<br>
https://bugs.kde.org/show_bug.cgi?id=195719</div>

<div>
<div> </div>

<div>We now found the root cause and have a fix.</div>

<div> </div>

<div>So if Albert has no time at all I wonder if you (William) can take over this solution and push it.</div>

<div>As Martin Pahl wrote he is willing to support and explain his code.</div>

<div> </div>

<div>Regards</div>

<div>Stefan</div>

<div> </div>

<div style="padding:10px 0 10px 10px;border-left:2px solid #C3D9E5;word-wrap:break-word;">
<div style=""><b>Gesendet:</b> Mittwoch, 21. Oktober 2015 um 01:44 Uhr<br>
<b>Von:</b> "William Bader" <williambader@hotmail.com><br>
<b>An:</b> "Stefan Brandner" <stefan.brandner@gmx.at>, "poppler@lists.freedesktop.org" <poppler@lists.freedesktop.org><br>
<b>Betreff:</b> RE: [poppler] Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript</div>

<div>
<div class=ecxhmmessage>
<div>
<div>The Adobe document  5001.DSC_Spec.pdf "PostScript Language <span style="font-size:12.0pt;">Document Structuring </span><span style="font-size:12.0pt;">Conventions Specification" </span>Version 3.0, <span style="font-size:12.0pt;">25 September 1992, says on page 39 about the BoundingBox comment:</span></div>

<div> </div>
"This comment specifies the bounding box that encloses all marks painted <span style="font-size:12.0pt;">on all pages of a document. That is, it must be a “high water mark” in all </span><span style="font-size:12.0pt;">directions for marks made on any page. The four arguments correspond to </span><span style="font-size:12.0pt;">the lower left ( llx , lly ) and upper right corners ( urx , ury ) of the bounding box </span><span style="font-size:12.0pt;">in the default user coordinate system (PostScript units)."</span>

<div> </div>

<div><span style="font-size:12.0pt;">and gives an example where the BoundingBox is the smallest rectangle that covers the PageBoundingBoxes of the pages in the document.</span><br>
<br>
If you are worried about breaking things that depend on the current behavior of pdftops, would it work to add a command line option?  pdftops already has -origpagesize and -nocrop options.</div>

<div> </div>

<div>Regards,</div>

<div>William<br>
 
<div>
<hr id=ecxstopSpelling>To: poppler@lists.freedesktop.org<br>
From: stefan.brandner@gmx.at<br>
Date: Tue, 20 Oct 2015 19:02:03 +0200<br>
Subject: [poppler] Printing of certain PDF files does not work with "fit-to-page" because of wrong BoundingBox values in the PostScript<br>
 
<hr>
<pre>I am using the patch now for several month and I can prove it is working fine.
So if the code quality is ok for you Albert why not pushing it?

Regards
Stefan Brandner

El Dijous, 7 de maig de 2015, a les 09:34:09, Martin Pahl va escriure:
><i> Hi,
</i>><i> 
</i>><i> I sent patches to fix the bug:
</i>><i> 
</i>><i> <a href="https://bugs.freedesktop.org/show_bug.cgi?id=87161" target=_blank>https://bugs.freedesktop.org/show_bug.cgi?id=87161</a>
</i>><i> 
</i>><i> Those patches were automatically sent to poppler-bugs mailing list. But as I
</i>><i> see no reaction to my patch submission (poppler-bugs seems to be a
</i>><i> mailinglist without human interaction)  I just want to ask, what is the
</i>><i> right way to submit patches.
</i>
It is.

What we need is more people with time to review patches.

Cheers,
  Albert

><i> By the way this bug is really annoying as it makes all PDF viewers using
</i>><i> poppler useless for printing documents that do not have the page size of the
</i>><i> output device (e.g. printer). On the other hand acroread is not an
</i>><i> alternative anymore as Adobe has discontinued support for Linux.
</i>><i> 
</i>><i> Regards,
</i>><i> 
</i>><i> Martin Pahl
</i>
</pre>
<br>
_______________________________________________ poppler mailing list poppler@lists.freedesktop.org <a href="http://lists.freedesktop.org/mailman/listinfo/poppler" target=_blank>http://lists.freedesktop.org/mailman/listinfo/poppler</a></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div>
                                          </div></body>
</html>