[prev in list] [next in list] [prev in thread] [next in thread]
List: freedesktop-poppler
Subject: Re: [poppler] pdftocairo Offending Command error when printing
From: William Bader <williambader () hotmail ! com>
Date: 2016-09-19 21:35:00
Message-ID: BN3PR08MB1922EBF9F31D1F87949EFE10C4F40 () BN3PR08MB1922 ! namprd08 ! prod ! outlook ! com
[Download RAW message or body]
If you look inside cairo_set_page_size, it sets
/PageSize exch def
/ImagingBBox null def
You could try changing the names one at a time to something that won't exis=
t, like PageSizexxx to see if one or the other has a value that the printer=
doesn't like. Maybe the null ImagingBBox messes up the printer. A lot of p=
pd files have sequences like "<</PageSize[612 792]/ImagingBBox null>>setpag=
edevice", so a null ImagingBBox should be OK.
setpagedevice can give an error if the printer does not support the PageSiz=
e. https://www.prepressure.com/postscript/troubleshooting/errors/setpagedev=
ice
Regards, William
________________________________
From: Pierre-Luc Samuel <Pierre-Luc.Samuel@ticketmaster.com>
Sent: Monday, September 19, 2016 4:51 PM
To: William Bader; poppler@lists.freedesktop.org
Subject: Re: [poppler] pdftocairo Offending Command error when printing
On 09/19/2016 12:54 PM, William Bader wrote:
Can you try it with the current pdftocairo 0.47.0? The source is at https:/=
/poppler.freedesktop.org/
I did try with pdftocairo 0.47 + cairo 1.15.2, but the resulting file is id=
entical.
Do any of the non-printing ps files get errors if you view them with ghosts=
cript?
No, ghostscript shows no errors...
Test-jma-Envelop-Blank-pdftocairo0.41-cairo1.14.6-manually-fixedC.ps got a =
/dictstackunderflow in --end-- error for me, but that is because it has an =
extra 'end' in the trailer.
Yeah, manually-fixedC is probably broken, that was a lame attempt at findin=
g the issue.
If you think that the problem is the setpagedevice call, you could comment =
the line '266 621 cairo_set_page_size' in the ps and try to print it.
setpagedevice is usually OK unless you are trying to make an EPS.
When I was using an older version of poppler + libcairo, that section was n=
ot there at all, but not having it causes other issues (namely, the printer=
doesn't know the page size and sends it to a random paper tray). I'm actu=
ally upgrading BECAUSE I want that section!
Regards, William
________________________________
From: poppler <poppler-bounces@lists.freedesktop.org><mailto:poppler-bounce=
s@lists.freedesktop.org> on behalf of Pierre-Luc Samuel <Pierre-Luc.Samuel@=
ticketmaster.com><mailto:Pierre-Luc.Samuel@ticketmaster.com>
Sent: Monday, September 19, 2016 9:21 AM
To: poppler@lists.freedesktop.org<mailto:poppler@lists.freedesktop.org>
Subject: [poppler] pdftocairo Offending Command error when printing
Hi,
I am trying to debug a weird issue I have with a printer (Kyocera
p2135dn). When I convert the attached PDF to postscript using pdftops,
the printer accepts and prints the file properly, but when I use
pdftocairo, the printer rejects the file with the following error:
Error name: /configurationerror
Offending Command: --setpagedevice--
Operand Stack:
-dict-
Even when removing _everything_ on the pdf, as the examples I have a
attached, I still get the "Offending Command" error. I have tried
examining the content of the files, but I have a hard time pinpointing
what could be wrong in the pdftocairo-generated file.
I am attaching 3 additional files (A,B,C) that show attempts I made to
modify the file (thought maybe the page size/bounding box was the issue)
but all three have failed printing with the same error...
Anyone have ideas of what I should investigate?
Thanks,
Pierre-Luc
[Attachment #3 (text/html)]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} \
--></style> </head>
<body dir="ltr">
<div id="divtagdefaultwrapper" \
style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p>If you look inside <span>cairo_set_page_size, it sets</span></p>
<p><span></p>
<div> /PageSize exch def</div>
<div> /ImagingBBox null def</div>
<div>You could try changing the names one at a time to something that won't exist, \
like PageSizexxx to see if one or the other has a value that the printer doesn't \
like. Maybe the null ImagingBBox messes up the printer. A lot of ppd files have \
sequences like <span>"<</PageSize[612 792]/ImagingBBox \
null>>setpagedevice", so a null ImagingBBox should be OK.</span></div> \
<div><span><br> </span></div>
<div><span>setpagedevice can give an error if the printer does not support the \
PageSize. <a href="https://www.prepressure.com/postscript/troubleshooting/errors/setpagedevice" \
class="OWAAutoLink" id="LPlnk290394">https://www.prepressure.com/postscript/troubleshooting/errors/setpagedevice</a></span><br>
</div>
<div><br>
</div>
<div>Regards, William</div>
</span>
<p></p>
<br>
<div style="color: rgb(0, 0, 0);">
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" color="#000000" \
style="font-size:11pt"><b>From:</b> Pierre-Luc Samuel \
<Pierre-Luc.Samuel@ticketmaster.com><br> <b>Sent:</b> Monday, September 19, \
2016 4:51 PM<br> <b>To:</b> William Bader; poppler@lists.freedesktop.org<br>
<b>Subject:</b> Re: [poppler] pdftocairo Offending Command error when printing</font>
<div> </div>
</div>
<div>On 09/19/2016 12:54 PM, William Bader wrote:<br>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; \
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif"> <p>Can you \
try it with the current pdftocairo 0.47.0? The source is at <a \
href="https://poppler.freedesktop.org/" class="OWAAutoLink" \
id="LPlnk32587">https://poppler.freedesktop.org/</a></p> </div>
</blockquote>
I did try with pdftocairo 0.47 + cairo 1.15.2, but the resulting file is \
identical.<br> <br>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; \
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif"> <p>Do any \
of the non-printing ps files get errors if you view them with \
ghostscript?</p> </div>
</blockquote>
No, ghostscript shows no errors...<br>
<br>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; \
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif"> \
<p><span>Test-jma-Envelop-Blank-pdftocairo0.41-cairo1.14.6-manually-fixedC.ps got \
a <span>/dictstackunderflow in --end-- error for me, but that is because it has \
an extra 'end' in the trailer.</span></span><br> </p>
</div>
</blockquote>
Yeah, manually-fixedC is probably broken, that was a lame attempt at finding the \
issue.<br> <br>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; \
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif"> <p></p>
<p><span><span>If you think that the problem is the setpagedevice call, you could \
comment the line '<span>266 621 cairo_set_page_size' in the ps and try to print \
it.</span></span></span></p> <p><span><span><span><br>
</span></span></span></p>
<p>setpagedevice is usually OK unless you are trying to make an EPS.</p>
</div>
</blockquote>
When I was using an older version of poppler + libcairo, that section was not \
there at all, but not having it causes other issues (namely, the printer doesn't know \
the page size and sends it to a random paper tray). I'm actually upgrading \
BECAUSE I want that section!<br>
<br>
<blockquote type="cite">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; \
background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif"> \
<p><span><span>Regards, William</span></span></p> <br>
<br>
<div style="color:rgb(0,0,0)">
<div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="x_divRplyFwdMsg" dir="ltr"><font color="#000000" face="Calibri,
sans-serif" style="font-size:11pt"><b>From:</b> poppler
<a class="moz-txt-link-rfc2396E" href="mailto:poppler-bounces@lists.freedesktop.org">
<poppler-bounces@lists.freedesktop.org></a> on behalf of Pierre-Luc Samuel <a \
class="moz-txt-link-rfc2396E" href="mailto:Pierre-Luc.Samuel@ticketmaster.com"> \
<Pierre-Luc.Samuel@ticketmaster.com></a><br> <b>Sent:</b> Monday, September 19, \
2016 9:21 AM<br> <b>To:</b> <a class="moz-txt-link-abbreviated" \
href="mailto:poppler@lists.freedesktop.org"> poppler@lists.freedesktop.org</a><br>
<b>Subject:</b> [poppler] pdftocairo Offending Command error when printing</font>
<div> </div>
</div>
</div>
<font size="2"><span style="font-size:10pt">
<div class="PlainText">Hi,<br>
<br>
I am trying to debug a weird issue I have with a printer (Kyocera <br>
p2135dn). When I convert the attached PDF to postscript using pdftops, <br>
the printer accepts and prints the file properly, but when I use <br>
pdftocairo, the printer rejects the file with the following error:<br>
<br>
Error name: /configurationerror<br>
Offending Command: --setpagedevice--<br>
Operand Stack:<br>
-dict-<br>
<br>
Even when removing _everything_ on the pdf, as the examples I have a <br>
attached, I still get the "Offending Command" error. I have tried \
<br> examining the content of the files, but I have a hard time pinpointing <br>
what could be wrong in the pdftocairo-generated file.<br>
<br>
I am attaching 3 additional files (A,B,C) that show attempts I made to <br>
modify the file (thought maybe the page size/bounding box was the issue) <br>
but all three have failed printing with the same error...<br>
<br>
Anyone have ideas of what I should investigate?<br>
<br>
Thanks,<br>
Pierre-Luc<br>
</div>
</span></font></div>
</div>
</blockquote>
<br>
</div>
</div>
</div>
</body>
</html>
[Attachment #4 (unknown)]
_______________________________________________
poppler mailing list
poppler@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/poppler
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic