How can I control resolution when creating PCL files

Ask for help and post your question on how to use XnView Classic.

Moderators: helmut, XnTriq, xnview

Post Reply
eL_PuSHeR
Posts: 267
Joined: Sat Apr 25, 2009 9:23 am

How can I control resolution when creating PCL files

Post by eL_PuSHeR »

Hello. I have SAVED AS a PNG file (scaled at 600 dpi B/W) to a PCL file and I have send it to my HP Laserjet 1200 printer. It was printed at a very low resolution. How can I control resolution when creating PCL files?. It seems I am missing something.

Those codes can be seen looking at the PCL header:

E&l0O&l0E&l2A*p0x0Y*t75R*r2362s1476T*r1A*b0M*b296W

I have little understanding of PCL codes but it seems ESCt75R switches to 75dpi resolution. That's why my image appears so big when printed.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
GeForce GTX 970 (Gigabyte)
eL_PuSHeR
Posts: 267
Joined: Sat Apr 25, 2009 9:23 am

Re: How can I control resolution when creating PCL files

Post by eL_PuSHeR »

This is not what I want. I am bypassing windows printer driver completely. If your printer support some PDL language such as PCL or PS you can send a PCL or PS file using the copy command. In my case:

copy /a file.ps LPT1

copy /b file.pcl LPT1

Here are some proper examples I made of PCL and PS.

PCL5 and PS are 600dpi while PCLXL (PCL6) is 1200dpi. All of them are MONOCHROME (duotone).

PDL examples (<1MB)

I don't know why but both PCL and PS files created by XnView don't print at all or badly. I have already remarked that PCL files created via SAVE AS always have 75dpi resolution, no matter whether you use SET DPI before or already have a proper dpi field in EXIF.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
GeForce GTX 970 (Gigabyte)
User avatar
Peter2
XnThusiast
Posts: 1365
Joined: Thu Nov 24, 2005 3:07 pm
Location: CH

Re: How can I control resolution when creating PCL files

Post by Peter2 »

eL_PuSHeR wrote:...I am bypassing windows printer driver completely. ...
Why? For me I would load a free PCL printer driver and work with "Print to file" (see hint above). There you have the full control of all print-features of XnView AND all features of the driver. All the "save as ..." features have some limitations...
eL_PuSHeR wrote:....If your printer support some PDL language such as PCL or PS you can send a PCL or PS file using the copy command. In my case:

copy /a file.ps LPT1

copy /b file.pcl LPT1...
To you know "GoPlot" from http://www.noliturbare.com ?

Peter
XnViewMP <Current version> German, XnConvert <Current version>, Win 10
eL_PuSHeR
Posts: 267
Joined: Sat Apr 25, 2009 9:23 am

Re: How can I control resolution when creating PCL files

Post by eL_PuSHeR »

Peter2 wrote:
eL_PuSHeR wrote:...I am bypassing windows printer driver completely. ...
Why? For me I would load a free PCL printer driver and work with "Print to file" (see hint above). There you have the full control of all print-features of XnView AND all features of the driver. All the "save as ..." features have some limitations...
Because I am generating all monochrome halftones by myself, my own way. Printer drivers normally defaults to 8x8 halftone cells and offer nothing more to choose from.

Thanks for the link. I am going to check those programs out.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
GeForce GTX 970 (Gigabyte)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: How can I control resolution when creating PCL files

Post by xnview »

eL_PuSHeR wrote:I have little understanding of PCL codes but it seems ESCt75R switches to 75dpi resolution. That's why my image appears so big when printed.
Yes, right a bug
Pierre.
eL_PuSHeR
Posts: 267
Joined: Sat Apr 25, 2009 9:23 am

Re: How can I control resolution when creating PCL files

Post by eL_PuSHeR »

Merci beaucoup Pierre.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
GeForce GTX 970 (Gigabyte)
eL_PuSHeR
Posts: 267
Joined: Sat Apr 25, 2009 9:23 am

Re: How can I control resolution when creating PCL files

Post by eL_PuSHeR »

As of XnView 1.97.1, PCL are keeping proper resolution but when printed using my HP Laserjet 1200 printer I get a mirrored (horizontal) and negative image. Any ideas?

EDIT:

Tested with 1.97.2 - Same results.

And, again, same results on screen when using a program such as PCL Reader.
Intel i7 5960X
Gigabye GA-X99-Gaming 5
8 GB DDR4 (2100)
GeForce GTX 970 (Gigabyte)
Post Reply