HP LaserJet P1505 / P1505n :  foo2zjs - foo2hp - foo2xqx - foo2lava - foo2qpdl - foo2oak
Support for linux printer drivers
The fastest message board... ever.
 
[P1505] How to write custom printing values to the PPD file?
Posted by: cee1 ()
Date: March 08, 2010 06:18AM

Hi all,

Some programs have printing dialog without a "custom printing" option. Writing custom printing values to PPD file, will make those programs support extra paper size.

The PPD file of HP P1505 doesn't contain a "16K" paper size, and I add the following lines to it:
*PageSize w522h737/16K 184x260mm: "%% FoomaticRIPOptionSetting: PageSize=Custom"
*FoomaticRIPOptionSetting PageSize=Custom: "-pCustom.522x737 "
...
*PageRegion w522h737/16K: "%% FoomaticRIPOptionSetting: PageSize=Custom"
...
*ImageableArea w522h737/16K: "Unknown"
...
*PaperDimension w522h737/16K: "522 737"

It partially work, and I can't find where to set paper margins, which place should it be set? ImageableArea ?


Regards



Edited 2 time(s). Last edit at 03/08/2010 06:22AM by cee1.

Options: ReplyQuote
Re: [P1505] How to write custom printing values to the PPD file?
Posted by: rickrich ()
Date: March 08, 2010 04:16PM

You don't do that way. You use the foomatic-db/opt/foo2zjs-PageSize.xml with driverval == 263 (Windows 16k 184x260mm paper code), and foo2xqx-wrapper.in. Then, make; make ppd; make install, etc. PPD are a make target, not the source.



Edited 1 time(s). Last edit at 03/08/2010 05:08PM by rickrich.

Options: ReplyQuote
Re: [P1505] How to write custom printing values to the PPD file?
Posted by: cee1 ()
Date: March 08, 2010 07:58PM

Hi rickrich, thanks for the replay.

Some questions:

1) Should I edit foomatic-db/opt/foo2zjs-PageSize.xml, and add the following:
<enum_val id="ev/foo2oakzjs-PageSize-263">
<ev_longname> <en>16K</en> </ev_longname>
<ev_shortname> <en>16K</en> </ev_shortname>
<ev_driverval>263</ev_driverval>
</enum_val>

2) Should I also edit foo2xqx-wrapper.in? What's the new content should be added? I notice some "XDIM, YDIM, set_clipping, etc" need be set with proper values.

3) What about other "16K"(195x270mm, 197x273mm, 146x215mm)? How to calculate the value of "driverval" and corresponding settings in question2?


Thanks



Edited 1 time(s). Last edit at 03/08/2010 07:59PM by cee1.

Options: ReplyQuote
Re: [P1505] How to write custom printing values to the PPD file?
Posted by: rickrich ()
Date: March 08, 2010 08:53PM

1) long name != short name

2) Yes.

3) windows print to xqxdecode

Options: ReplyQuote
Re: [P1505] How to write custom printing values to the PPD file?
Posted by: cee1 ()
Date: March 09, 2010 08:55AM

Hi rickrich,

How to use xqxdecode? where shall I find a xqx-file?

I need get the following arguments with the help of xqxdecode:
1) "driverval"
2) XDIM and YDIM
3) clipping area
Am I right?


Thanks



Edited 1 time(s). Last edit at 03/09/2010 08:57AM by cee1.

Options: ReplyQuote
Re: [P1505] How to write custom printing values to the PPD file?
Posted by: rickrich ()
Date: March 09, 2010 10:15AM

$ man xqxdecode

Options: ReplyQuote
Re: [P1505] How to write custom printing values to the PPD file?
Posted by: rickrich ()
Date: March 11, 2010 12:27PM

From the Changelog:
2010-03-11      Rick Richardson <rick.richardson@comcast.net>
        * foo2xqx-wrapper: Add -p257, -p263, -p264 for 16K* paper.
        * foomatic-db and .ppd files: Add three 16K papers to foo2xqx driver.

Options: ReplyQuote


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