Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Mark Copper
On Fri, Mar 14, 2014 at 10:53 AM, Mark Copper mlcop...@gmail.com wrote:
 Dear List,

 What might explain this behavior?  A Zebra label printer (GX430t) is
 configured through CUPS and it is desired to print a PDF file on it.
 The PDF file was created with the Perl module PDF::API2.

 The file prints fine from the command line:
$lpr -P Zebra_Technologies_ZTC_GX430t file.pdf
 and it prints fine from within gv.

 But it does not print from within Evince or, more importantly for our
 purposes, from the embedded Iceweasel pdf viewer.   CUPS logs include
 the error messages:
(/usr/lib/cups/filter/rastertolabel) stopped with status 1.
 and
Job stopped due to filter errors; please consult the error_log file
 for details.

 It's probability 0 that someone else has had this exact problem.  But
 I'm wondering if anyone might have some ideas on an approach.  Maybe
 something can be changed in the PDF generation?  Maybe something can
 be changed in the Iceweasel settings?

Before I let this go, let me add some data and a word of explanation
why I posted here.

Printing file.pdf from the Firefox viewer (on a Ubuntu box) fails just
as it did with Iceweasel.  No surprise there I suppose.

Chromium doesn't offer an embedded viewer and my system default pdf
viewer is Xpdf.  Printing from Xpdf fails, but in a different filter.

There are two different offers for printing from the Chrome browser on
Debian.  The native print option works but is useless to me in that
it does not properly size the page.  Choosing system print succeeds.

So I have 2 different ways to go at present: from Iceweasel, download
to gv and print from there and from Chrome viewer printing with system
print.

This seemed like an appropriate forum for this curiosity since it
could as well be a problem with the pdf generation or the pdf viewer
as with the CUPS filters.  It's a matter of getting independent
programs to play nice together (not to mention the many levels of
processing within CUPS), I guess.

Thanks.

Mark


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAM-_JtmPr=J6429rfuH3RLPNANNU9WLh2=kxtmhzvox3aj8...@mail.gmail.com



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Brian
On Sun 16 Mar 2014 at 10:36:26 -0500, Mark Copper wrote:

 Before I let this go, let me add some data and a word of explanation
 why I posted here.

Presumably you wanted help. However, you have not provided information
requested in response to your initial post.

 Printing file.pdf from the Firefox viewer (on a Ubuntu box) fails just
 as it did with Iceweasel.  No surprise there I suppose.
 
 Chromium doesn't offer an embedded viewer and my system default pdf
 viewer is Xpdf.  Printing from Xpdf fails, but in a different filter.

Xpdf uses lpr to print; you said earlier that lpr worked for you. (This
mention of a 'different filter' is confusing).

 There are two different offers for printing from the Chrome browser on
 Debian.  The native print option works but is useless to me in that
 it does not properly size the page.  Choosing system print succeeds.
 
 So I have 2 different ways to go at present: from Iceweasel, download
 to gv and print from there and from Chrome viewer printing with system
 print.
 
 This seemed like an appropriate forum for this curiosity since it
 could as well be a problem with the pdf generation or the pdf viewer
 as with the CUPS filters.  It's a matter of getting independent
 programs to play nice together (not to mention the many levels of
 processing within CUPS), I guess.

CUPS is blameless; its filters are not at fault. It is very unlikely to
be a problem with the pdf generation.



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140316162339.ge26...@copernicus.demon.co.uk



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Curt
On 2014-03-16, Mark Copper mlcop...@gmail.com wrote:

 So I have 2 different ways to go at present: from Iceweasel, download
 to gv and print from there and from Chrome viewer printing with system
 print.


Some have been successful in using the Chrome pdf plugin (libpdf.so) in
Chromium.

Too bad you didn't let Brian help you troubleshoot the problem.

Did you say that your difficulty involves any and all pdf files, or just
the ones created with, or by, the perl script?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/slrnlibmae.33d.cu...@einstein.electron.org



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Mark Copper
On Sun, Mar 16, 2014 at 12:03 PM, Curt cu...@free.fr wrote:
 On 2014-03-16, Mark Copper mlcop...@gmail.com wrote:

 So I have 2 different ways to go at present: from Iceweasel, download
 to gv and print from there and from Chrome viewer printing with system
 print.


 Some have been successful in using the Chrome pdf plugin (libpdf.so) in
 Chromium.

 Too bad you didn't let Brian help you troubleshoot the problem.

 Did you say that your difficulty involves any and all pdf files, or just
 the ones created with, or by, the perl script?



I did in fact send Brian the requested file off-list. I did not
realize he didn't receive it.

The fact that he requested a reply with an attachment meant, I
assumed, that I send to him directly (no attachments are allowed when
sending to debian-user).  I could be wrong.  The data could be
included in the text body.

I would be glad to provide more detail on Xpdf, but logs show CUPS
calling several filters.  And while, say Evince, shows an error in the
rastertolabel filter, Xpdf fails with an error in the pstopdf filter
and prints a blank page.  Seems distinct to me.

No, I haven't tried pdf files generated in a different manner.  Good
idea though.

I'd also like to check out the Chromium plugin.  Thanks.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAM-_JtmRBqqZ4jkBW6bpYiC9_WrV8+=i84GYJbzVV4FcEiS=v...@mail.gmail.com



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Brian
On Sun 16 Mar 2014 at 12:35:32 -0500, Mark Copper wrote:

 On Sun, Mar 16, 2014 at 12:03 PM, Curt cu...@free.fr wrote:
 
  Some have been successful in using the Chrome pdf plugin (libpdf.so) in
  Chromium.
 
  Too bad you didn't let Brian help you troubleshoot the problem.
 
  Did you say that your difficulty involves any and all pdf files, or just
  the ones created with, or by, the perl script?
 
 I did in fact send Brian the requested file off-list. I did not
 realize he didn't receive it.

I communicate only through the list and did say ...attach it to a mail
you send here. Perhaps there is ambiguity in the word here; sorry.

 The fact that he requested a reply with an attachment meant, I
 assumed, that I send to him directly (no attachments are allowed when
 sending to debian-user).  I could be wrong.  The data could be
 included in the text body.

The file is large but not that large and AKAIK attachments are allowed.
If you feel more comfortable putting it somewhere for everyone to view,
please do that.

 I would be glad to provide more detail on Xpdf, but logs show CUPS
 calling several filters.  And while, say Evince, shows an error in the
 rastertolabel filter, Xpdf fails with an error in the pstopdf filter
 and prints a blank page.  Seems distinct to me.

That is distinct; for the pstopdf filter to be used CUPS has to be sent
a PostScript file.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/16032014173831.fc152f60b...@desktop.copernicus.demon.co.uk



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Mark Copper
On Sun, Mar 16, 2014 at 12:49 PM, Brian a...@cityscape.co.uk wrote:
 On Sun 16 Mar 2014 at 12:35:32 -0500, Mark Copper wrote:

 On Sun, Mar 16, 2014 at 12:03 PM, Curt cu...@free.fr wrote:
 
  Some have been successful in using the Chrome pdf plugin (libpdf.so) in
  Chromium.
 
  Too bad you didn't let Brian help you troubleshoot the problem.
 
  Did you say that your difficulty involves any and all pdf files, or just
  the ones created with, or by, the perl script?

 I did in fact send Brian the requested file off-list. I did not
 realize he didn't receive it.

 I communicate only through the list and did say ...attach it to a mail
 you send here. Perhaps there is ambiguity in the word here; sorry.

 The fact that he requested a reply with an attachment meant, I
 assumed, that I send to him directly (no attachments are allowed when
 sending to debian-user).  I could be wrong.  The data could be
 included in the text body.

 The file is large but not that large and AKAIK attachments are allowed.
 If you feel more comfortable putting it somewhere for everyone to view,
 please do that.

 I would be glad to provide more detail on Xpdf, but logs show CUPS
 calling several filters.  And while, say Evince, shows an error in the
 rastertolabel filter, Xpdf fails with an error in the pstopdf filter
 and prints a blank page.  Seems distinct to me.

 That is distinct; for the pstopdf filter to be used CUPS has to be sent
 a PostScript file.


Please see here for the zip file:
   straitcity.com/cups_debug_log.zip
The job 8841 succeeded and was generated from gv.  The job 8842 failed
and was generated from the Iceweasel viewer.

It's curious that the gv job calls the pstopdf filter but the viewer
job does not.  Possible indication of malformed pdf?

Thanks.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/CAM-_JtkOR=z6-pya6okoxpgzrjaibdkzn_lbhrdxj+qx1f6...@mail.gmail.com



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Brian
On Sun 16 Mar 2014 at 13:28:32 -0500, Mark Copper wrote:

 Please see here for the zip file:
straitcity.com/cups_debug_log.zip

  wget http://straitcity.com/cups_debug_log.zip

It's only 9k in size! We've had off-topic threads larger than that. :)

 The job 8841 succeeded and was generated from gv.  The job 8842 failed
 and was generated from the Iceweasel viewer.

For Job 8842 you sent a PDF:

  I [15/Mar/2014:09:17:53 -0500] [Job 8842] File of type application/pdf queued 
by mark.

The CUPS filters spring into action and everything does well until
Ghostscript is called upon to complete the final rendering stage before
sending the job to the printer. Here is what it is asked to do:

  D [15/Mar/2014:09:17:53 -0500] [Job 8842] Ghostscript command line:
  /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE \
  -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Direct \
  -r300x300 -dDEVICEWIDTHPOINTS=0 -dDEVICEHEIGHTPOINTS=0 \
  -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 \
  -dcupsCompression=-1 -scupsPageSizeName=Custom -I/usr/share/cups/fonts -c -f 
-_

The unhealthy bit is

   -dDEVICEWIDTHPOINTS=0 -dDEVICEHEIGHTPOINTS=0

Ghostscript is being requested to produce a page with zero dimensions.
It sniggers very loudly and confides in CUPS. CUPS is more sedate and
sensible so (supressing a giggle) says:

  D [15/Mar/2014:09:17:53 -0500] [Job 8842] Unrecoverable error: rangecheck in 
setpagedevice

The end result is that CUPS has no choice but to inform

  D [15/Mar/2014:09:17:53 -0500] PID 6570 (/usr/lib/cups/filter/rastertolabel) 
stopped with status 1.

You have encountered what is most probably a bug in the GTK printing
dialogue, which is common to Iceweasel and Evince. I can reproduce it
on a machine here with Iceweasel.

A possible workaround (for which feedback would be appreciated) is:

In Iceweasel's File/Page Setup choose 'Paper size' and set up a Custom
Size and use it. It could very well be an existing page size, such as
A4. You may have to reinstall the print queue and restart CUPS.

 It's curious that the gv job calls the pstopdf filter but the viewer
 job does not.  Possible indication of malformed pdf?

No; gv is sending PostScript to CUPS.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140316193407.gf26...@copernicus.demon.co.uk



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-16 Thread Mark Copper
On Sun, Mar 16, 2014 at 2:34 PM, Brian a...@cityscape.co.uk wrote:
 On Sun 16 Mar 2014 at 13:28:32 -0500, Mark Copper wrote:

 Please see here for the zip file:
straitcity.com/cups_debug_log.zip

   wget http://straitcity.com/cups_debug_log.zip

 It's only 9k in size! We've had off-topic threads larger than that. :)

 The job 8841 succeeded and was generated from gv.  The job 8842 failed
 and was generated from the Iceweasel viewer.

 For Job 8842 you sent a PDF:

   I [15/Mar/2014:09:17:53 -0500] [Job 8842] File of type application/pdf 
 queued by mark.

 The CUPS filters spring into action and everything does well until
 Ghostscript is called upon to complete the final rendering stage before
 sending the job to the printer. Here is what it is asked to do:

   D [15/Mar/2014:09:17:53 -0500] [Job 8842] Ghostscript command line:
   /usr/bin/gs -dQUIET -dPARANOIDSAFER -dNOPAUSE -dBATCH -dNOINTERPOLATE \
   -sDEVICE=cups -sstdout=%stderr -sOutputFile=%stdout -sMediaType=Direct \
   -r300x300 -dDEVICEWIDTHPOINTS=0 -dDEVICEHEIGHTPOINTS=0 \
   -dcupsBitsPerColor=1 -dcupsColorOrder=0 -dcupsColorSpace=3 \
   -dcupsCompression=-1 -scupsPageSizeName=Custom -I/usr/share/cups/fonts -c 
 -f -_

 The unhealthy bit is

-dDEVICEWIDTHPOINTS=0 -dDEVICEHEIGHTPOINTS=0

 Ghostscript is being requested to produce a page with zero dimensions.
 It sniggers very loudly and confides in CUPS. CUPS is more sedate and
 sensible so (supressing a giggle) says:

   D [15/Mar/2014:09:17:53 -0500] [Job 8842] Unrecoverable error: rangecheck 
 in setpagedevice

 The end result is that CUPS has no choice but to inform

   D [15/Mar/2014:09:17:53 -0500] PID 6570 
 (/usr/lib/cups/filter/rastertolabel) stopped with status 1.

 You have encountered what is most probably a bug in the GTK printing
 dialogue, which is common to Iceweasel and Evince. I can reproduce it
 on a machine here with Iceweasel.

 A possible workaround (for which feedback would be appreciated) is:

 In Iceweasel's File/Page Setup choose 'Paper size' and set up a Custom
 Size and use it. It could very well be an existing page size, such as
 A4. You may have to reinstall the print queue and restart CUPS.

 It's curious that the gv job calls the pstopdf filter but the viewer
 job does not.  Possible indication of malformed pdf?

 No; gv is sending PostScript to CUPS.



Excellent.  Good work that.

I haven't got the suggested workaround to work on this system yet, but
will give it another go a little later.

Thank you; I realize your time is valuable.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/cam-_jtkppcfnkubmyhqq5l3w9puumkloampsd8gb3euz4ji...@mail.gmail.com



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Brian
On Fri 14 Mar 2014 at 10:53:13 -0500, Mark Copper wrote:

 It's probability 0 that someone else has had this exact problem.  But
 I'm wondering if anyone might have some ideas on an approach.  Maybe
 something can be changed in the PDF generation?  Maybe something can
 be changed in the Iceweasel settings?

Please

1. rm /var/log/cups/error_log

2. cupsctl --debug-logging

3. Print from Evince.

4. Compress error_log with gzip or xz and attach it to a mail you send
   here.

Obviously you can also compare the error_logs for good and bad printing
jobs for yourself. Is there any significant difference in them between
using Evince and Iceweasel?

I'm probably being a bit dense but what do you mean by 'embedded
Iceweasel pdf viewer'?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/20140314181334.gb26...@copernicus.demon.co.uk



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Patrick Chkoreff
Brian wrote, On 03/14/2014 02:13 PM:

 I'm probably being a bit dense but what do you mean by 'embedded
 Iceweasel pdf viewer'?

When you open a PDF in Iceweasel, either by clicking a link or opening a
file, it renders the PDF right inside the browser instead of bringing it
up in Document Viewer.


-- Patrick


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/532348bb.7010...@rayservers.net



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Brian
On Fri 14 Mar 2014 at 14:21:47 -0400, Patrick Chkoreff wrote:

 Brian wrote, On 03/14/2014 02:13 PM:
 
  I'm probably being a bit dense but what do you mean by 'embedded
  Iceweasel pdf viewer'?
 
 When you open a PDF in Iceweasel, either by clicking a link or opening a
 file, it renders the PDF right inside the browser instead of bringing it
 up in Document Viewer.

I think I must be using the Document Viewer method: my PDFs display with
either xpdf or mupdf in its own window. What program performs the
rendering and display of PDFs with the embedded technique?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/14032014185901.40d5f742f...@desktop.copernicus.demon.co.uk



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Curt
On 2014-03-14, Patrick Chkoreff patr...@rayservers.net wrote:

 When you open a PDF in Iceweasel, either by clicking a link or opening a
 file, it renders the PDF right inside the browser instead of bringing it
 up in Document Viewer.

Google Chrome has a nice embedded pdf viewer that corresponds
to your description, but I was unaware iceweasel had one because mine
apparently doesn't, unless I'm not doing something right. 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/slrnli6m74.3ml.cu...@einstein.electron.org



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Patrick Chkoreff
Brian wrote, On 03/14/2014 03:03 PM:
 On Fri 14 Mar 2014 at 14:21:47 -0400, Patrick Chkoreff wrote:
 
 Brian wrote, On 03/14/2014 02:13 PM:

 I'm probably being a bit dense but what do you mean by 'embedded
 Iceweasel pdf viewer'?

 When you open a PDF in Iceweasel, either by clicking a link or opening a
 file, it renders the PDF right inside the browser instead of bringing it
 up in Document Viewer.
 
 I think I must be using the Document Viewer method: my PDFs display with
 either xpdf or mupdf in its own window. What program performs the
 rendering and display of PDFs with the embedded technique?


Good question.  I went into my Iceweasel Preferences, under
Applications, and next to the entry for Portable Document Format (PDF)
I see this option chosen:

  [Preview in Iceweasel]

If I change that to this setting:

  [Use Document Viewer (default)]

It then brings up PDFs in a separate Document Viewer window.

By the way, I never explicitly changed this to Preview.  Before Debian I
was using Firefox on Ubuntu, and suddenly one day it started doing the
embedded preview.  Since then I've copied my .firefox profile over to
.iceweasel, and the setting remained.

Another weird thing I just noticed yesterday.  Whenever I view PDFs,
they appear to have little black rectangles scattered around, typically
to the left of text blocks.  It looks as if the PDF has been redacted --
but of course it's really just a bug in PDF rendering.  It occasionally
overlaps text to the point of making it unreadable, but for the most
part I can get by.


-- Patrick


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/53235609.8000...@rayservers.net



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Brad Rogers
On Fri, 14 Mar 2014 19:03:49 +
Brian a...@cityscape.co.uk wrote:

Hello Brian,

either xpdf or mupdf in its own window. What program performs the
rendering and display of PDFs with the embedded technique?

Iceweasel.  It's had its own viewer for quite some time.  I don't recall
which version first included it, but it was probably around v16 or 17.

-- 
 Regards  _
 / )   The blindingly obvious is
/ _)radnever immediately apparent
Tired of doing day jobs with no thanks for what I do
Do Anything You Wanna Do - Eddie  The Hotrods


signature.asc
Description: PGP signature


Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Patrick Chkoreff
Patrick Chkoreff wrote, On 03/14/2014 03:18 PM:

 Another weird thing I just noticed yesterday.  Whenever I view PDFs,
 they appear to have little black rectangles scattered around, typically
 to the left of text blocks.  It looks as if the PDF has been redacted --
 but of course it's really just a bug in PDF rendering.  It occasionally
 overlaps text to the point of making it unreadable, but for the most
 part I can get by.

Never mind.  I thought I saw it in two different documents from separate
sources, but I was wrong.  It was just a problem in one PDF.


-- Patrick



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: https://lists.debian.org/532356d5.60...@rayservers.net



Re: CUPS Zebra EPL2 driver through Iceweasel or Evince

2014-03-14 Thread Brian
On Fri 14 Mar 2014 at 19:12:46 +, Brad Rogers wrote:

 Iceweasel.  It's had its own viewer for quite some time.  I don't recall
 which version first included it, but it was probably around v16 or 17.

Thank you (and Patrick and Curt). I think I understand now. As far as
the OP's problem is concerned he is printing from Iceweasel and not some
other application. Whether it makes a difference or not is another
matter.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Archive: 
https://lists.debian.org/14032014205537.b286dc11c...@desktop.copernicus.demon.co.uk