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 ?
Edited 2 time(s). Last edit at 03/08/2010 06:22AM by cee1.
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.
1) Should I edit foomatic-db/opt/foo2zjs-PageSize.xml, and add the following:
<ev_longname> <en>16K</en> </ev_longname>
<ev_shortname> <en>16K</en> </ev_shortname>
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?
Edited 1 time(s). Last edit at 03/08/2010 07:59PM by cee1.