HP LaserJet 1018 :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
Problems Printing in Folio [Mac OSX]
Posted by: aldeasim ()
Date: October 01, 2010 02:10PM

Hi everyone.

I'm trying to print in Folio (8.5 x 13 inches) using my LJ 1018 in OS X.

It works like a charm when printing in Letter or A4, but when printing in a custom size (I tried Folio and half-Folio) it fails.

It aligns the inferior border of the Folio or half-Folio page with the inferior border of a Letter page.
In other words, if I try to print this Folio page in a Letter sheet, the inferior border is respected but it overflows by the superior border of the sheet.
In the other hand, if I print the Folio page in a Folio sheet, I have an inferior margin of 2 inches, and the page overflows by the superior border as it does with the Letter sheet.

I added Folio as a custom page size, and even directly in the PPD file, but it still does the same. The same occurs with half-Folio (except by the overflowing part, because the page is shorter than the sheet).

Can someone help me? Thanks in advance

My PPD file is:

*PPD-Adobe: "4.3"
*%
*% For information on using this, and to obtain the required backend
*% script, consult http://www.openprinting.org/
*%
*% This file is published under the GNU General Public License
*%
*% PPD-O-MATIC (3.0.0 or newer) generated this PPD file. It is for use with 
*% all programs and environments which use PPD files for dealing with
*% printer capability information. The printer must be configured with the
*% "foomatic-rip" backend filter script of Foomatic 3.0.0 or newer. This 
*% file and "foomatic-rip" work together to support PPD-controlled printer
*% driver option access with arbitrary free software printer drivers and
*% printing spoolers.
*%
*% To save this file on your disk, wait until the download has completed
*% (the animation of the browser logo must stop) and then use the
*% "Save as..." command in the "File" menu of your browser or in the 
*% pop-up manu when you click on this document with the right mouse button.
*% DO NOT cut and paste this file into an editor with your mouse. This can
*% introduce additional line breaks which lead to unexpected results.
*%
*% You may save this file as 'HP-LaserJet_1018-foo2zjs-z1.ppd'
*%
*%
*FormatVersion:	"4.3"
*FileVersion:	"1.1"
*LanguageVersion: English 
*LanguageEncoding: ISOLatin1
*PCFileName:	"FOO2ZJS-.PPD"
*Manufacturer:	"HP"
*Product:	"(HP LaserJet 1018)"
*cupsVersion:	1.0
*cupsManualCopies: True
*cupsModelNumber:  2
*cupsFilter:	"application/vnd.cups-postscript 0 foomatic-rip"
*%pprRIP:        foomatic-rip other
*ModelName:     "HP LaserJet 1018"
*ShortNickName: "HP LaserJet 1018 foo2zjs-z1"
*NickName:      "HP LaserJet 1018 Foomatic/foo2zjs-z1 (recommended)"
*PSVersion:	"(3010.000) 550"
*PSVersion:	"(3010.000) 651"
*PSVersion:	"(3010.000) 652"
*PSVersion:	"(3010.000) 653"
*PSVersion:	"(3010.000) 704"
*PSVersion:	"(3010.000) 705"
*PSVersion:	"(3010.000) 800"
*LanguageLevel:	"3"
*ColorDevice:	False
*DefaultColorSpace: Gray
*FileSystem:	False
*Throughput:	"1"
*LandscapeOrientation: Plus90
*TTRasterizer:	Type42
*1284DeviceID: "MFG:Hewlett-Packard;MDL:HP LaserJet 1018;CMD:ACL;DES:HP LaserJet 1018;DRV:Dfoo2zjs-z1,R1,M0,TF;"

*driverName foo2zjs-z1/foo2zjs-z1: ""
*driverType F/Filter: ""
*driverUrl: "http://foo2zjs.rkkda.com/";
*driverObsolete: False




*HWMargins: 11.34 11.34 +11.34 +11.34
*VariablePaperSize: True
*MaxMediaWidth: 100000
*MaxMediaHeight: 100000
*NonUIOrderDependency: 135 AnySetup *CustomPageSize
*CustomPageSize True: "pop pop pop pop pop
%% FoomaticRIPOptionSetting: PageSize=Custom"
*End
*FoomaticRIPOptionSetting PageSize=Custom: "-pCustom.%0x%1 "
*ParamCustomPageSize Width: 1 points 36 100000
*ParamCustomPageSize Height: 2 points 36 100000
*ParamCustomPageSize Orientation: 3 int 0 0
*ParamCustomPageSize WidthOffset: 4 points 0 0
*ParamCustomPageSize HeightOffset: 5 points 0 0

*FoomaticIDs: HP-LaserJet_1018 foo2zjs-z1
*FoomaticRIPCommandLine: "foo2zjs-wrapper -z1 -P -L0 %A"

*OpenGroup: General/General

... snip ...

*OpenUI *PageSize/Page Size: PickOne
*FoomaticRIPOption PageSize: enum CmdLine A
*OrderDependency: 135 AnySetup *PageSize
*DefaultPageSize: Letter
*PageSize Letter/Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
*FoomaticRIPOptionSetting PageSize=Letter: "-p1 "
*PageSize Folio/Folio: "%% FoomaticRIPOptionSetting: PageSize=Folio"
*FoomaticRIPOptionSetting PageSize=Folio: "-p2 "
*PageSize A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
*FoomaticRIPOptionSetting PageSize=A4: "-p9 "
*PageSize A5/A5: "%% FoomaticRIPOptionSetting: PageSize=A5"
*FoomaticRIPOptionSetting PageSize=A5: "-p11 "
*PageSize A6/A6: "%% FoomaticRIPOptionSetting: PageSize=A6"
*FoomaticRIPOptionSetting PageSize=A6: "-p262 "
*PageSize B5/B5: "%% FoomaticRIPOptionSetting: PageSize=B5"
*FoomaticRIPOptionSetting PageSize=B5: "-p13 "
*PageSize B5ISO/B5 ISO: "%% FoomaticRIPOptionSetting: PageSize=B5ISO"
*FoomaticRIPOptionSetting PageSize=B5ISO: "-p259 "
*PageSize DoublePostcard/Double Postcard: "%% FoomaticRIPOptionSetting: PageSize=DoublePostcard"
*FoomaticRIPOptionSetting PageSize=DoublePostcard: "-p261 "
*PageSize Env10/Env #10: "%% FoomaticRIPOptionSetting: PageSize=Env10"
*FoomaticRIPOptionSetting PageSize=Env10: "-p20 "
*PageSize EnvC5/Env C5: "%% FoomaticRIPOptionSetting: PageSize=EnvC5"
*FoomaticRIPOptionSetting PageSize=EnvC5: "-p28 "
*PageSize EnvDL/Env DL: "%% FoomaticRIPOptionSetting: PageSize=EnvDL"
*FoomaticRIPOptionSetting PageSize=EnvDL: "-p27 "
*PageSize EnvISOB5/Env ISO B5: "%% FoomaticRIPOptionSetting: PageSize=EnvISOB5"
*FoomaticRIPOptionSetting PageSize=EnvISOB5: "-p34 "
*PageSize EnvMonarch/Env Monarch: "%% FoomaticRIPOptionSetting: PageSize=EnvMonarch"
*FoomaticRIPOptionSetting PageSize=EnvMonarch: "-p37 "
*PageSize Executive/Executive: "%% FoomaticRIPOptionSetting: PageSize=Executive"
*FoomaticRIPOptionSetting PageSize=Executive: "-p7 "
*PageSize FanfoldGermanLegal/Fanfold German Legal: "%% FoomaticRIPOptionSetting: PageSize=FanfoldGermanLegal"
*FoomaticRIPOptionSetting PageSize=FanfoldGermanLegal: "-p258 "
*PageSize Legal/Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
*FoomaticRIPOptionSetting PageSize=Legal: "-p5 "
*PageSize Postcard/Postcard: "%% FoomaticRIPOptionSetting: PageSize=Postcard"
*FoomaticRIPOptionSetting PageSize=Postcard: "-p260 "
*PageSize w558h774/16k 197x273 mm: "%% FoomaticRIPOptionSetting: PageSize=w558h774"
*FoomaticRIPOptionSetting PageSize=w558h774: "-p257 "
*CloseUI: *PageSize

*OpenUI *PageRegion: PickOne
*OrderDependency: 135 AnySetup *PageRegion
*DefaultPageRegion: Letter
*PageRegion Letter/Letter: "%% FoomaticRIPOptionSetting: PageSize=Letter"
*PageRegion Folio/Folio: "%% FoomaticRIPOptionSetting: PageSize=Folio"
*PageRegion A4/A4: "%% FoomaticRIPOptionSetting: PageSize=A4"
*PageRegion A5/A5: "%% FoomaticRIPOptionSetting: PageSize=A5"
*PageRegion A6/A6: "%% FoomaticRIPOptionSetting: PageSize=A6"
*PageRegion B5/B5: "%% FoomaticRIPOptionSetting: PageSize=B5"
*PageRegion B5ISO/B5 ISO: "%% FoomaticRIPOptionSetting: PageSize=B5ISO"
*PageRegion DoublePostcard/Double Postcard: "%% FoomaticRIPOptionSetting: PageSize=DoublePostcard"
*PageRegion Env10/Env #10: "%% FoomaticRIPOptionSetting: PageSize=Env10"
*PageRegion EnvC5/Env C5: "%% FoomaticRIPOptionSetting: PageSize=EnvC5"
*PageRegion EnvDL/Env DL: "%% FoomaticRIPOptionSetting: PageSize=EnvDL"
*PageRegion EnvISOB5/Env ISO B5: "%% FoomaticRIPOptionSetting: PageSize=EnvISOB5"
*PageRegion EnvMonarch/Env Monarch: "%% FoomaticRIPOptionSetting: PageSize=EnvMonarch"
*PageRegion Executive/Executive: "%% FoomaticRIPOptionSetting: PageSize=Executive"
*PageRegion FanfoldGermanLegal/Fanfold German Legal: "%% FoomaticRIPOptionSetting: PageSize=FanfoldGermanLegal"
*PageRegion Legal/Legal: "%% FoomaticRIPOptionSetting: PageSize=Legal"
*PageRegion Postcard/Postcard: "%% FoomaticRIPOptionSetting: PageSize=Postcard"
*PageRegion w558h774/16k 197x273 mm: "%% FoomaticRIPOptionSetting: PageSize=w558h774"
*CloseUI: *PageRegion

*DefaultImageableArea: Letter
*ImageableArea Letter/Letter: "11.34 11.34 600.66 780.66"
*ImageableArea Folio/Folio: "11.34 11.34 600.66 924.66"
*ImageableArea A4/A4: "11.34 11.34 583.66 830.66"
*ImageableArea A5/A5: "11.34 11.34 408.66 583.66"
*ImageableArea A6/A6: "11.34 11.34 285.66 408.66"
*ImageableArea B5/B5: "11.34 11.34 486.66 696.66"
*ImageableArea B5ISO/B5 ISO: "11.34 11.34 486.66 696.66"
*ImageableArea DoublePostcard/Double Postcard: "11.34 11.34 271.66 404.66"
*ImageableArea Env10/Env #10: "11.34 11.34 285.66 672.66"
*ImageableArea EnvC5/Env C5: "11.34 11.34 447.66 637.66"
*ImageableArea EnvDL/Env DL: "11.34 11.34 299.66 611.66"
*ImageableArea EnvISOB5/Env ISO B5: "11.34 11.34 486.66 696.66"
*ImageableArea EnvMonarch/Env Monarch: "11.34 11.34 267.66 528.66"
*ImageableArea Executive/Executive: "11.34 11.34 510.66 744.66"
*ImageableArea FanfoldGermanLegal/Fanfold German Legal: "11.34 11.34 600.66 996.66"
*ImageableArea Legal/Legal: "11.34 11.34 600.66 996.66"
*ImageableArea Postcard/Postcard: "11.34 11.34 271.66 404.66"
*ImageableArea w558h774/16k 197x273 mm: "11.34 11.34 546.66 762.66"

*DefaultPaperDimension: Letter
*PaperDimension Letter/Letter: "612 792"
*PaperDimension Folio/Folio: "612 936"
*PaperDimension A4/A4: "595 842"
*PaperDimension A5/A5: "420 595"
*PaperDimension A6/A6: "297 420"
*PaperDimension B5/B5: "498 708"
*PaperDimension B5ISO/B5 ISO: "498 708"
*PaperDimension DoublePostcard/Double Postcard: "283 416"
*PaperDimension Env10/Env #10: "297 684"
*PaperDimension EnvC5/Env C5: "459 649"
*PaperDimension EnvDL/Env DL: "311 623"
*PaperDimension EnvISOB5/Env ISO B5: "498 708"
*PaperDimension EnvMonarch/Env Monarch: "279 540"
*PaperDimension Executive/Executive: "522 756"
*PaperDimension FanfoldGermanLegal/Fanfold German Legal: "612 1008"
*PaperDimension Legal/Legal: "612 1008"
*PaperDimension Postcard/Postcard: "283 416"
*PaperDimension w558h774/16k 197x273 mm: "558 774"

...snip...



Edited 3 time(s). Last edit at 10/02/2010 08:42AM by rickrich.

Options: ReplyQuote
Re: Problems Printing in Folio
Posted by: rickrich ()
Date: October 01, 2010 02:30PM

$ lpr -P hp1018 -o media=letter -o PageSize=Custom.8.5x13in testpage.ps

Works good on Fedora 13. No issues.

$ tail /var/log/messages
Oct 1 13:22:01 dual foo2zjs-wrapper: foo2zjs-wrapper -z1 -P -L0 -r1200x600 -pCustom.612x936 -T3 -m1 -s7 -n1
Oct 1 13:22:02 dual foo2zjs-wrapper: gs -sPAPERSIZE=letter -g10200x7800 -r1200x600 -sDEVICE=pbmraw -dCOLORSCREEN -dMaxBitmap=500000000
Oct 1 13:22:02 dual foo2zjs-wrapper: foo2zjs -r1200x600 -g10200x7800 -p256 -m261 -n1 -d1 -s7 -z1 -u 2x100 -l 2x100 -L 0 -T3 -P



Edited 1 time(s). Last edit at 10/01/2010 02:35PM by rickrich.

Options: ReplyQuote
Re: Problems Printing in Folio [Mac OSX]
Posted by: aldeasim ()
Date: October 01, 2010 02:49PM

Hmm... "The printer or class was not found".

Thanks Rick.

Options: ReplyQuote
Re: Problems Printing in Folio [Mac OSX]
Posted by: rickrich ()
Date: October 01, 2010 05:21PM

On mac, using HPLJ P1102w (foo2zjs):

$ lpr -P HP_LaserJet_Professional_P1102w -o media=letter -o PageSize=Custom.8.5x13in ~/proj/foo2zjs/testpage.ps

$ uname -a
Darwin mac 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

Printed fine. No issues.

Options: ReplyQuote
Re: Problems Printing in Folio [Mac OSX]
Posted by: aldeasim ()
Date: October 02, 2010 01:52PM

Thanks a lot Rick. It printed fine, no overflows.
Now the problem is other: there's a 2 inches margin on the inferior border of the page. It's like the printable area is just way shorter than the page.



Edited 2 time(s). Last edit at 10/02/2010 01:59PM by aldeasim.

Options: ReplyQuote
Re: Problems Printing in Folio [Mac OSX]
Posted by: rickrich ()
Date: October 02, 2010 02:44PM

$ uname -a
Darwin mac 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT 2010; root:xnu-1504.7.4~1/RELEASE_I386 i386


Printed fine. No issues.

NO ISSUES!!!!!

Please put the Postscript source on the web.



Edited 1 time(s). Last edit at 10/02/2010 02:46PM by rickrich.

Options: ReplyQuote
Re: Problems Printing in Folio [Mac OSX]
Posted by: rickrich ()
Date: October 02, 2010 03:28PM

folio-8.5x13.ps

$ lpr -o media=letter -o PageSize=Custom.8.5x13in folio-8.5x13.ps

Printed FINE. Borders are at 0.5 inches all around.

Scan:





Edited 1 time(s). Last edit at 10/02/2010 03:38PM by rickrich.

Options: ReplyQuote
Re: Problems Printing in Folio [Mac OSX]
Posted by: aldeasim ()
Date: October 04, 2010 10:47PM

In effect, it works like a charm!

The borders appear when printing via a GUI (I tried Word and Preview), which tell the printer that the page is either A4 or Letter. Don't know where to fix it (I tried all obvious options in those apps), but certainly neither the printer nor the driver is causing this issue.

I suppose that I'll have print Folio-sized documents in a .ps file and then send it to the printer (which I already tried, and it works as expected).

Thanks a lot, Rick.



Edited 1 time(s). Last edit at 10/04/2010 10:49PM by aldeasim.

Options: ReplyQuote


Sorry, only registered users may post in this forum.
This forum powered by Phorum.