2008/05/21

マイクロドライプリンタのPSプリンタ化 〜 PPDファイル作成 (2)

取り合えず以下のように・・・

MD-5500P用PPDファイル(MDPusr-5500P.PPD)

+++ この下から +++

*PPD-Adobe: "4.3"
*FormatVersion: "4.3"
*FileVersion: "1.0"
*LanguageEncoding: JIS83-RKSJ
*LanguageVersion: Japanese
*PCFileName: "MD5500P.PPD"
*Product: "(MDPusr MD-5500P)"
*PSVersion: "(3011.104) 0"
*ModelName: "MDPusr MD-5500P"
*ShortNickName: "MDPusr MD-5500P"
*NickName: "MDPusr MD-5500P"
*Manufacturer: "MDPusr"
*% PPD for MDPusr MD-5500P
*% === Options and Constraints =========

*% ==== Device Capabilities ===============
*ColorDevice: True
*DefaultColorSpace: CMYK
*FileSystem: True
*?FileSystem: "(True) == flush"
*LanguageLevel: "3"
*FreeVM: "1000000"
*FCacheSize None/Standard: 204800
*Throughput: "1"
*VariablePaperSize: True
*TTRasterizer: Type42
*% Paper Handling ===================

*% Code in this section both selects a tray and sets up a frame buffer.
*OpenUI *PageSize: PickOne
*OrderDependency: 50 AnySetup *PageSize
*DefaultPageSize: A4
*PageSize A4: "
2 dict dup /PageSize [595.20 841.80] put dup /ImagingBBox null put setpagedevice"
*End
*PageSize B5: "
2 dict dup /PageSize [515.76 728.40] put dup /ImagingBBox null put setpagedevice"
*End
*PageSize Letter/レター: "
2 dict dup /PageSize [612.00 792.00] put dup /ImagingBBox null put setpagedevice"
*End
*PageSize A4Extra/A4ノビ: "
2 dict dup /PageSize [634.92 1006.20] put dup /ImagingBBox null put setpagedevice"
*End
*PageSize PostCard/はがき: "
2 dict dup /PageSize [283.44 419.52] put dup /ImagingBBox null put setpagedevice"
*End
*PageSize VDPhotoCard/VDフォトはがき: "
2 dict dup /PageSize [283.44 453.60] put dup /ImagingBBox null put setpagedevice"
*End
*?PageSize: "
save
currentpagedevice /PageSize get aload pop
2 copy gt {exch} if
(Unknown)
6 dict
dup [595.20 841.80] (A4) put
dup [515.76 728.40] (B5) put
dup [612.00 792.00] (Letter) put
dup [634.92 1006.20] (A4Extra) put
dup [283.44 419.52] (PostCard) put
dup [283.44 453.60] (VDPhotoCard) put
{ exch aload pop 4 index sub abs 5 le exch
5 index sub abs 5 le and
{exch pop exit} {pop} ifelse
} bind forall
= flush pop pop
restore
"
*End
*CloseUI: *PageSize

*% definition of imaging area of page ========================
*OpenUI *PageRegion: PickOne
*OrderDependency: 50 AnySetup *PageRegion
*DefaultPageRegion: A4
*PageRegion A4: "
2 dict dup /PageSize [595.20 841.80] put dup /ImagingBBox null put setpagedevice"
*End
*PageRegion B5: " 2 dict dup /PageSize [515.76 728.40] put dup /ImagingBBox null put setpagedevice" *End *PageRegion Letter/レター: "
2 dict dup /PageSize [612.00 792.00] put dup /ImagingBBox null put setpagedevice"
*End
*PageRegion A4Extra/A4ノビ: "
2 dict dup /PageSize [634.92 1006.20] put dup /ImagingBBox null put setpagedevice"
*End
*PageRegion PostCard/はがき: "
2 dict dup /PageSize [283.44 419.52] put dup /ImagingBBox null put setpagedevice"
*End
*PageRegion VDPhotoCard/VDフォトはがき: "
2 dict dup /PageSize [283.44 453.60] put dup /ImagingBBox null put setpagedevice"
*End
*CloseUI: *PageRegion *% The following entries provide information about specific paper keywords. *DefaultImageableArea: A4
*ImageableArea A4: "9.60 42.60 585.60 807.72"
*ImageableArea B5: "9.60 42.60 506.16 694.32"
*ImageableArea Letter/レター: "9.60 42.60 602.40 757.92"
*ImageableArea A4Extra/A4ノビ: "9.60 42.60 625.32 972.12"
*ImageableArea PostCard/はがき: "9.60 41.16 273.84 411.00"
*ImageableArea VDPhotoCard/VDフォトはがき: "9.6 42.6 273.84 445.08"
*?ImageableArea: "
save
/cvp {( ) cvs print ( ) print } bind def
/upperright {10000 mul floor 10000 div} bind def
/lowerleft {10000 mul ceiling 10000 div} bind def
newpath clippath pathbbox
4 -2 roll exch 2 {lowerleft cvp} repeat
exch 2 {upperright cvp} repeat flush
restore
"
*End

*% These provide the physical dimensions of the paper (by keyword)
*DefaultPaperDimension: A4
*PaperDimension A4: "595.20 841.80"
*PaperDimension B5: "515.76 728.40"
*PaperDimension Letter/レター: "612.00 792.00"
*PaperDimension A4Extra/A4ノビ: "634.92 1006.20"
*PaperDimension PostCard/はがき: "283.44 419.52"
*PaperDimension VDPhotoCard/VDフォトはがき: "283.44 453.60"

*% Custom Page Sizes===================
*CustomPageSize True: "
4 dict begin
3 1 roll
2 array astore /PageOffset exch def
2 mod 0 eq {exch} if
2 array astore /PageSize exch def
/ImagingBBox null def
currentdict end setpagedevice"
*End
*ParamCustomPageSize Width: 1 points 277.92 1683.72
*ParamCustomPageSize Height: 2 points 277.92 1683.72
*ParamCustomPageSize WidthOffset: 3 points 0 0
*ParamCustomPageSize HeightOffset: 4 points 0 0
*ParamCustomPageSize Orientation: 5 int 0 3
*MaxMediaWidth: "634.92"
*MaxMediaHeight: "1683.72"
*LeadingEdge Short: ""
*LeadingEdge Long: ""
*DefaultLeadingEdge: Short
*HWMargins: 9.60 42.60 9.60 34.08

*RequiresPageRegion All: True

*% End of PPD file for MDPusr MD-5500P

+++ この上まで +++

※ PPDファイルの内容は、「*PPD-Adobe: "4.3"」 から 「*% End of PPD file for MDPusr MD-5500P」 までになります。

で、簡単な説明は次回です・・・

0 件のコメント: