Re: Issue with PCL3GUI output

William Bader <[email protected]> Sun, 23 Jul 2017 02:36:23 +0000
Newsgroups gmane.comp.printing.ghostscript.devel
Message-ID <CY1PR15MB00959FF106195BF1AFF42A6EC4BA0@CY1PR15MB0095.namprd15.prod.outlook.com>
You can run 'gs -h' to see the full list of printers that your version of gs supports.

If you have the gs source, you can find the pcl3 drivers in contrib/pcl3/src/gdevpcl3.c

The device name goes with the -sDEVICE= option. For example, to test hpdj310, change -sDEVICE=pcl3 to -sDEVICE=hpdj310


/* Printer-specific and fixed device structure instances */
pcl3_device_instance(hpdjplus,  HPDeskJetPlus);
pcl3_device_instance(hpdjportable, HPDJPortable);
pcl3_device_instance(hpdj310,   HPDJ310);
pcl3_device_instance(hpdj320,   HPDJ320);
pcl3_device_instance(hpdj340,   HPDJ340);
pcl3_device_instance(hpdj400,   HPDJ400);
pcl3_device_instance(hpdj500,   HPDJ500);
pcl3_device_instance(hpdj500c,  HPDJ500C);
pcl3_device_instance(hpdj510,   HPDJ510);
pcl3_device_instance(hpdj520,   HPDJ520);
pcl3_device_instance(hpdj540,   HPDJ540);
pcl3_device_instance(hpdj550c,  HPDJ550C);
pcl3_device_instance(hpdj560c,  HPDJ560C);
pcl3_device_instance(hpdj600,   HPDJ600);
pcl3_device_instance(hpdj660c,  HPDJ660C);
pcl3_device_instance(hpdj670c,  HPDJ670C);
pcl3_device_instance(hpdj680c,  HPDJ680C);
pcl3_device_instance(hpdj690c,  HPDJ690C);
pcl3_device_instance(hpdj850c,  HPDJ850C);
pcl3_device_instance(hpdj855c,  HPDJ855C);
pcl3_device_instance(hpdj870c,  HPDJ870C);
pcl3_device_instance(hpdj890c,  HPDJ890C);
pcl3_device_instance(hpdj1120c, HPDJ1120C);

It looks like the only thing that happens with the -sPJLLanguage=PCL3GUI2 option is that the pcl3 driver writes the string into a '@PJL ENTER LANGUAGE=' line at the start of the file.
The code is in contrib/pcl3/src/pclgen.c
If you have a pcl3 file that prints, you could look what it uses.


CUPS is hard to debug when a printer doesn't work. If you can connect to the printer from a USB or parallel port, that might be better for testing.

HP LIP has an entry for the DeskJet D2545 http://hplipopensource.com/hplip-web/models/deskjet/deskjet_d2500_series.html
<http://hplipopensource.com/hplip-web/models/deskjet/deskjet_d2500_series.html>I'm not sure if the D in D2545 is a different series than your HP DeskJet Ink Advantage 2545.

I have Fedora 25, and the last time that I set up a networked HP printer, I installed the hplip-gui package and then ran hp-setup. It did a network scan, found the printer, downloaded the driver, and created the CUPS printer entry.

Regards, William

________________________________
From: gs-devel <[email protected]> on behalf of Paul Goyette <[email protected]>
Sent: Saturday, July 22, 2017 6:06 PM
To: Chris Liddell
Cc: [email protected]
Subject: Re: [gs-devel] Issue with PCL3GUI output

On Sat, 22 Jul 2017, Chris Liddell wrote:

> The best I could suggest is to rattle down the list of printers
> supported by the pcl driver, and see if one works.

How owuld I get such a list of printers supported by the pcl driver?
And what would I vary in the ghostscript command line?

> TBH, pcl3 is such a moving target, with so many variations across the
> various HP printers that claim to use "PCL3", it's quite possible the
> existing code just doesn't support it.

Not very encouraging.  :(

> Worse, the pcl3 device is no longer really supported with the original
> author no longer interested, and no one on the Ghostscript team with the
> knowledge or printer access (or time, frankly) to take it on.

Even less encouraging.  :)

> If someone were to reverse engineer what's going on, and create a patch,
> I'll be happy to review it, and get it committed.

Thanks, but that "someone" isn't likely to be me.


+------------------+--------------------------+----------------------------+
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:          |
| (Retired)        | FA29 0E3B 35AF E8AE 6651 | paul at whooppee dot com   |
| Kernel Developer | 0786 F758 55DE 53BA 7731 | pgoyette at netbsd dot org |
+------------------+--------------------------+----------------------------+