<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 09/19/2016 12:54 PM, William Bader wrote:<br>
    <blockquote
cite="mid:BN3PR08MB192251ED9D3E0C7382FDAFD4C4F40@BN3PR08MB1922.namprd08.prod.outlook.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
      <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 moz-do-not-send="true"
            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
cite="mid:BN3PR08MB192251ED9D3E0C7382FDAFD4C4F40@BN3PR08MB1922.namprd08.prod.outlook.com"
      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
cite="mid:BN3PR08MB192251ED9D3E0C7382FDAFD4C4F40@BN3PR08MB1922.namprd08.prod.outlook.com"
      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
cite="mid:BN3PR08MB192251ED9D3E0C7382FDAFD4C4F40@BN3PR08MB1922.namprd08.prod.outlook.com"
      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
cite="mid:BN3PR08MB192251ED9D3E0C7382FDAFD4C4F40@BN3PR08MB1922.namprd08.prod.outlook.com"
      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
                style="font-size:11pt" color="#000000" face="Calibri,
                sans-serif"><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>
  </body>
</html>