home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1993-05-17 | 79.9 KB | [ ONLN/HLX2]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
100%
file
MacBinary II, inited, Wed Apr 21 04:10:26 1993, modified Mon May 17 13:12:29 1993, creator 'HLX2', type 'ONLN', 79791 bytes "New API documentation" , at 0x1382f 1779 bytes resource
default (weak)
99%
file
data
default
100%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ ONLN] macFileCreator [ HLX2]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 15 4e 65 77 20 41 50 | 49 20 64 6f 63 75 6d 65 |..New AP|I docume| |00000010| 6e 74 61 74 69 6f 6e 00 | 00 00 00 00 00 00 00 00 |ntation.|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 4f 4e 4c 4e 48 4c 58 | 32 01 00 00 00 00 00 00 |.ONLNHLX|2.......| |00000050| 00 00 00 00 01 37 af 00 | 00 06 f3 a7 fa b1 f2 a8 |.....7..|........| |00000060| 1d 77 fd 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.w......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 d9 94 00 00 |........|........| |00000080| 37 09 4e 65 77 20 41 50 | 49 20 73 75 70 70 6f 72 |7.New AP|I suppor| |00000090| 74 0d 50 53 57 72 69 74 | 65 72 20 61 64 64 73 20 |t.PSWrit|er adds | |000000a0| 61 20 66 65 77 20 6e 65 | 77 20 50 72 47 65 6e 65 |a few ne|w PrGene| |000000b0| 72 61 6c 20 63 61 6c 6c | 73 20 77 68 69 63 68 20 |ral call|s which | |000000c0| 61 72 65 20 69 6e 74 65 | 6e 64 65 64 20 74 6f 20 |are inte|nded to | |000000d0| 61 69 64 20 61 70 70 6c | 69 63 61 74 69 6f 6e 73 |aid appl|ications| |000000e0| 20 69 6e 20 74 68 65 20 | 67 65 6e 65 72 61 74 69 | in the |generati| |000000f0| 6f 6e 20 6f 66 20 74 68 | 65 69 72 20 6f 77 6e 20 |on of th|eir own | |00000100| 50 6f 73 74 53 63 72 69 | 70 74 20 6c 61 6e 67 75 |PostScri|pt langu| |00000110| 61 67 65 20 63 6f 64 65 | 2e 20 49 6e 20 61 64 64 |age code|. In add| |00000120| 69 74 69 6f 6e 20 77 65 | 20 68 61 76 65 20 65 78 |ition we| have ex| |00000130| 74 65 6e 64 65 64 20 74 | 68 65 20 75 73 65 20 6f |tended t|he use o| |00000140| 66 20 74 68 65 20 50 6f | 73 74 53 63 72 69 70 74 |f the Po|stScript| |00000150| 46 69 6c 65 20 50 69 63 | 43 6f 6d 6d 65 6e 74 20 |File Pic|Comment | |00000160| 74 6f 20 61 6c 6c 6f 77 | 20 73 6f 6d 65 20 61 64 |to allow| some ad| |00000170| 64 69 74 69 6f 6e 61 6c | 20 66 6c 65 78 69 62 69 |ditional| flexibi| |00000180| 6c 69 74 79 2e 20 0d 54 | 68 65 20 50 72 47 65 6e |lity. .T|he PrGen| |00000190| 65 72 61 6c 20 63 61 6c | 6c 73 20 62 72 65 61 6b |eral cal|ls break| |000001a0| 20 64 6f 77 6e 20 69 6e | 74 6f 20 61 20 34 20 63 | down in|to a 4 c| |000001b0| 61 74 65 67 6f 72 69 65 | 73 3a 20 0d a5 20 09 4f |ategorie|s: .. .O| |000001c0| 62 74 61 69 6e 69 6e 67 | 20 74 68 65 20 66 69 6c |btaining| the fil| |000001d0| 65 20 73 70 65 63 69 66 | 69 63 61 74 69 6f 6e 20 |e specif|ication | |000001e0| 63 6f 72 72 65 73 70 6f | 6e 64 69 6e 67 20 74 6f |correspo|nding to| |000001f0| 20 74 68 65 20 50 50 44 | 20 66 69 6c 65 20 63 75 | the PPD| file cu| |00000200| 72 72 65 6e 74 6c 79 20 | 61 73 73 6f 63 69 61 74 |rrently |associat| |00000210| 65 64 20 77 69 74 68 20 | 74 68 65 20 74 61 72 67 |ed with |the targ| |00000220| 65 74 20 70 72 69 6e 74 | 65 72 2e 0d a5 09 44 65 |et print|er....De| |00000230| 74 65 72 6d 69 6e 69 6e | 67 20 74 68 65 20 50 6f |terminin|g the Po| |00000240| 73 74 53 63 72 69 70 74 | 20 6c 61 6e 67 75 61 67 |stScript| languag| |00000250| 65 20 6c 65 76 65 6c 20 | 61 6e 64 20 63 68 61 6e |e level |and chan| |00000260| 6e 65 6c 20 63 68 61 72 | 61 63 74 65 72 69 73 74 |nel char|acterist| |00000270| 69 63 73 20 74 6f 20 74 | 68 65 20 74 61 72 67 65 |ics to t|he targe| |00000280| 74 20 70 72 69 6e 74 65 | 72 20 61 6e 64 20 69 6e |t printe|r and in| |00000290| 66 6f 72 6d 69 6e 67 20 | 74 68 65 20 64 72 69 76 |forming |the driv| |000002a0| 65 72 20 61 73 20 74 6f | 20 74 68 65 20 6e 61 74 |er as to| the nat| |000002b0| 75 72 65 20 6f 66 20 74 | 68 65 20 64 61 74 61 20 |ure of t|he data | |000002c0| 74 68 65 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |the appl|ication | |000002d0| 67 65 6e 65 72 61 74 65 | 73 2e 0d a5 09 43 6f 6e |generate|s....Con| |000002e0| 76 65 72 74 69 6e 67 20 | 61 6e 20 61 70 70 6c 69 |verting |an appli| |000002f0| 63 61 74 69 6f 6e 20 73 | 70 65 63 69 66 69 65 64 |cation s|pecified| |00000300| 20 50 49 43 54 20 64 69 | 72 65 63 74 6c 79 20 69 | PICT di|rectly i| |00000310| 6e 74 6f 20 61 6e 20 45 | 50 53 20 66 69 6c 65 20 |nto an E|PS file | |00000320| 28 77 69 74 68 20 6e 6f | 20 70 72 65 76 69 65 77 |(with no| preview| |00000330| 29 20 77 69 74 68 20 74 | 68 65 20 64 61 74 61 20 |) with t|he data | |00000340| 70 61 73 73 65 64 20 64 | 69 72 65 63 74 6c 79 20 |passed d|irectly | |00000350| 62 61 63 6b 20 74 6f 20 | 74 68 65 20 63 61 6c 6c |back to |the call| |00000360| 69 6e 67 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ing appl|ication | |00000370| 72 61 74 68 65 72 20 74 | 68 61 6e 20 63 61 75 73 |rather t|han caus| |00000380| 69 6e 67 20 74 72 61 6e | 73 6d 69 73 73 69 6f 6e |ing tran|smission| |00000390| 20 74 6f 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 | to the |printer | |000003a0| 6f 72 20 74 6f 20 61 20 | 64 69 73 6b 20 66 69 6c |or to a |disk fil| |000003b0| 65 2e 0d a5 09 47 65 6e | 65 72 61 74 69 6e 67 20 |e....Gen|erating | |000003c0| 74 68 65 20 50 6f 73 74 | 53 63 72 69 70 74 20 73 |the Post|Script s| |000003d0| 74 72 65 61 6d 20 6e 65 | 63 65 73 73 61 72 79 20 |tream ne|cessary | |000003e0| 66 6f 72 20 72 65 6e 64 | 65 72 69 6e 67 20 61 20 |for rend|ering a | |000003f0| 50 6f 73 74 53 63 72 69 | 70 74 20 6f 75 74 6c 69 |PostScri|pt outli| |00000400| 6e 65 20 6f 72 20 41 70 | 70 6c 65 20 54 72 75 65 |ne or Ap|ple True| |00000410| 74 79 70 65 20 66 6f 6e | 74 20 6f 6e 20 61 20 50 |type fon|t on a P| |00000420| 6f 73 74 53 63 72 69 70 | 74 20 70 72 69 6e 74 65 |ostScrip|t printe| |00000430| 72 20 77 69 74 68 20 74 | 68 65 20 64 61 74 61 20 |r with t|he data | |00000440| 70 61 73 73 65 64 20 64 | 69 72 65 63 74 6c 79 20 |passed d|irectly | |00000450| 62 61 63 6b 20 74 6f 20 | 74 68 65 20 63 61 6c 6c |back to |the call| |00000460| 69 6e 67 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |ing appl|ication | |00000470| 72 61 74 68 65 72 20 74 | 68 61 6e 20 63 61 75 73 |rather t|han caus| |00000480| 69 6e 67 20 74 72 61 6e | 73 6d 69 73 73 69 6f 6e |ing tran|smission| |00000490| 20 74 6f 20 74 68 65 20 | 70 72 69 6e 74 65 72 20 | to the |printer | |000004a0| 6f 72 20 74 6f 20 61 20 | 64 69 73 6b 20 66 69 6c |or to a |disk fil| |000004b0| 65 2e 0d 37 2e 31 09 4f | 62 74 61 69 6e 69 6e 67 |e..7.1.O|btaining| |000004c0| 20 54 48 45 20 50 50 44 | 20 46 49 4c 45 20 66 6f | THE PPD| FILE fo| |000004d0| 72 20 74 68 65 20 74 61 | 72 67 65 74 20 70 72 69 |r the ta|rget pri| |000004e0| 6e 74 65 72 0d 53 65 76 | 65 72 61 6c 20 6d 61 6a |nter.Sev|eral maj| |000004f0| 6f 72 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 70 |or appli|cation p| |00000500| 72 6f 67 72 61 6d 73 20 | 72 65 71 75 69 72 65 20 |rograms |require | |00000510| 61 20 50 50 44 20 66 69 | 6c 65 20 66 6f 72 20 6f |a PPD fi|le for o| |00000520| 70 65 72 61 74 69 6f 6e | 20 28 73 75 63 68 20 61 |peration| (such a| |00000530| 73 20 41 64 6f 62 65 20 | 53 65 70 61 72 61 74 6f |s Adobe |Separato| |00000540| 72 29 20 6f 72 20 70 72 | 6f 76 69 64 65 20 73 75 |r) or pr|ovide su| |00000550| 62 73 74 61 6e 74 69 61 | 6c 6c 79 20 62 65 74 74 |bstantia|lly bett| |00000560| 65 72 20 72 65 73 75 6c | 74 73 20 77 68 65 6e 20 |er resul|ts when | |00000570| 61 20 50 50 44 20 66 69 | 6c 65 20 69 73 20 73 70 |a PPD fi|le is sp| |00000580| 65 63 69 66 69 65 64 20 | 28 73 75 63 68 20 61 73 |ecified |(such as| |00000590| 20 41 6c 64 75 73 20 50 | 61 67 65 6d 61 6b 65 72 | Aldus P|agemaker| |000005a0| 20 61 6e 64 20 41 6c 64 | 75 73 20 50 72 65 70 72 | and Ald|us Prepr| |000005b0| 69 6e 74 29 2e 20 54 68 | 65 73 65 20 61 70 70 6c |int). Th|ese appl| |000005c0| 69 63 61 74 69 6f 6e 73 | 20 63 75 72 72 65 6e 74 |ications| current| |000005d0| 6c 79 20 72 65 71 75 69 | 72 65 20 74 68 65 20 75 |ly requi|re the u| |000005e0| 73 65 72 20 74 6f 20 6d | 61 6e 75 61 6c 6c 79 20 |ser to m|anually | |000005f0| 73 70 65 63 69 66 79 20 | 61 20 50 50 44 20 66 69 |specify |a PPD fi| |00000600| 6c 65 20 64 69 72 65 63 | 74 6c 79 2e 20 53 69 6e |le direc|tly. Sin| |00000610| 63 65 20 6d 61 6e 79 20 | 50 53 57 72 69 74 65 72 |ce many |PSWriter| |00000620| 20 75 73 65 72 73 20 68 | 61 76 65 20 61 6c 72 65 | users h|ave alre| |00000630| 61 64 79 20 73 65 74 20 | 75 70 20 74 68 65 69 72 |ady set |up their| |00000640| 20 70 72 69 6e 74 65 72 | 2c 20 74 68 75 73 20 63 | printer|, thus c| |00000650| 68 6f 6f 73 69 6e 67 20 | 61 20 50 50 44 20 66 69 |hoosing |a PPD fi| |00000660| 6c 65 20 61 75 74 6f 6d | 61 74 69 63 61 6c 6c 79 |le autom|atically| |00000670| 20 6f 72 20 64 69 72 65 | 63 74 6c 79 2c 20 69 74 | or dire|ctly, it| |00000680| 20 69 73 20 64 65 73 69 | 72 61 62 6c 65 20 66 6f | is desi|rable fo| |00000690| 72 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 74 |r applic|ations t| |000006a0| 6f 20 6f 62 74 61 69 6e | 20 74 68 65 20 63 75 72 |o obtain| the cur| |000006b0| 72 65 6e 74 20 50 50 44 | 20 66 69 6c 65 20 70 72 |rent PPD| file pr| |000006c0| 6f 67 72 61 6d 6d 61 74 | 69 63 61 6c 6c 79 2e 20 |ogrammat|ically. | |000006d0| 50 53 57 72 69 74 65 72 | 20 70 72 6f 76 69 64 65 |PSWriter| provide| |000006e0| 73 20 61 20 50 72 47 65 | 6e 65 72 61 6c 20 63 61 |s a PrGe|neral ca| |000006f0| 6c 6c 20 74 6f 20 6f 62 | 74 61 69 6e 20 74 68 65 |ll to ob|tain the| |00000700| 20 50 50 44 20 66 69 6c | 65 20 66 69 6c 65 73 70 | PPD fil|e filesp| |00000710| 65 63 20 77 68 69 63 68 | 20 63 6f 72 72 65 73 70 |ec which| corresp| |00000720| 6f 6e 64 73 20 74 6f 20 | 74 68 61 74 20 77 68 69 |onds to |that whi| |00000730| 63 68 20 74 68 65 20 64 | 72 69 76 65 72 20 69 73 |ch the d|river is| |00000740| 20 75 73 69 6e 67 20 66 | 6f 72 20 74 68 65 20 63 | using f|or the c| |00000750| 75 72 72 65 6e 74 6c 79 | 20 63 68 6f 73 65 6e 20 |urrently| chosen | |00000760| 70 72 69 6e 74 65 72 2e | 20 0d 54 68 65 20 6f 70 |printer.| .The op| |00000770| 63 6f 64 65 20 50 53 50 | 72 69 6d 61 72 79 50 50 |code PSP|rimaryPP| |00000780| 44 4f 70 20 69 73 20 75 | 73 65 64 20 66 6f 72 20 |DOp is u|sed for | |00000790| 74 68 69 73 20 63 61 6c | 6c 20 61 6e 64 20 74 68 |this cal|l and th| |000007a0| 65 20 64 61 74 61 20 73 | 74 72 75 63 74 75 72 65 |e data s|tructure| |000007b0| 20 70 61 73 73 65 64 20 | 69 6e 20 69 73 20 66 69 | passed |in is fi| |000007c0| 6c 6c 65 64 20 69 6e 20 | 62 79 20 50 53 57 72 69 |lled in |by PSWri| |000007d0| 74 65 72 2e 20 49 66 20 | 74 68 65 20 63 75 72 72 |ter. If |the curr| |000007e0| 65 6e 74 20 50 50 44 20 | 66 69 6c 65 20 69 73 20 |ent PPD |file is | |000007f0| 74 68 65 20 64 72 69 76 | 65 72 20 62 75 69 6c 74 |the driv|er built| |00000800| 20 69 6e 20 50 50 44 20 | 66 69 6c 65 2c 20 72 61 | in PPD |file, ra| |00000810| 74 68 65 72 20 74 68 61 | 6e 20 61 20 72 65 61 6c |ther tha|n a real| |00000820| 20 66 69 6c 65 2c 20 74 | 68 65 6e 20 74 68 65 20 | file, t|hen the | |00000830| 70 70 64 49 73 52 65 61 | 6c 46 69 6c 65 20 66 69 |ppdIsRea|lFile fi| |00000840| 65 6c 64 20 69 6e 20 74 | 68 65 20 72 65 74 75 72 |eld in t|he retur| |00000850| 6e 65 64 20 73 74 72 75 | 63 74 75 72 65 20 69 73 |ned stru|cture is| |00000860| 20 66 61 6c 73 65 2e 20 | 41 20 76 61 6c 75 65 20 | false. |A value | |00000870| 6f 66 20 74 72 75 65 20 | 6d 65 61 6e 73 20 74 68 |of true |means th| |00000880| 61 74 20 74 68 65 20 66 | 69 6c 65 20 73 70 65 63 |at the f|ile spec| |00000890| 20 72 65 74 75 72 6e 65 | 64 20 69 73 20 61 20 76 | returne|d is a v| |000008a0| 61 6c 69 64 20 66 69 6c | 65 20 61 6e 64 20 63 6f |alid fil|e and co| |000008b0| 72 72 65 73 70 6f 6e 64 | 73 20 74 6f 20 74 68 65 |rrespond|s to the| |000008c0| 20 50 50 44 20 66 69 6c | 65 20 66 6f 72 20 74 68 | PPD fil|e for th| |000008d0| 65 20 74 61 72 67 65 74 | 20 70 72 69 6e 74 65 72 |e target| printer| |000008e0| 2e 20 54 68 65 20 72 65 | 73 75 6c 74 69 6e 67 20 |. The re|sulting | |000008f0| 66 69 6c 65 20 73 70 65 | 63 69 66 69 63 61 74 69 |file spe|cificati| |00000900| 6f 6e 20 69 73 20 61 20 | 72 65 61 6c 20 66 69 6c |on is a |real fil| |00000910| 65 20 77 69 74 68 20 61 | 6c 69 61 73 65 73 20 72 |e with a|liases r| |00000920| 65 73 6f 6c 76 65 64 2e | 20 4e 6f 74 65 20 74 68 |esolved.| Note th| |00000930| 61 74 20 74 68 65 20 72 | 65 73 75 6c 74 69 6e 67 |at the r|esulting| |00000940| 20 50 50 44 20 66 69 6c | 65 20 69 74 73 65 6c 66 | PPD fil|e itself| |00000950| 20 6d 61 79 20 68 61 76 | 65 20 2a 49 6e 63 6c 75 | may hav|e *Inclu| |00000960| 64 65 46 69 6c 65 20 72 | 65 66 65 72 65 6e 63 65 |deFile r|eference| |00000970| 73 20 77 68 69 63 68 20 | 6d 75 73 74 20 62 65 20 |s which |must be | |00000980| 72 65 73 6f 6c 76 65 64 | 20 62 79 20 74 68 65 20 |resolved| by the | |00000990| 61 70 70 6c 69 63 61 74 | 69 6f 6e d5 73 20 6f 77 |applicat|ion.s ow| |000009a0| 6e 20 50 50 44 20 70 61 | 72 73 65 72 2e 0d 65 6e |n PPD pa|rser..en| |000009b0| 75 6d 20 7b 0d 09 50 53 | 50 72 69 6d 61 72 79 50 |um {..PS|PrimaryP| |000009c0| 50 44 4f 70 20 3d 20 31 | 35 0d 7d 3b 0d 73 74 72 |PDOp = 1|5.};.str| |000009d0| 75 63 74 20 54 50 53 50 | 72 69 6d 61 72 79 50 50 |uct TPSP|rimaryPP| |000009e0| 44 20 7b 09 09 0d 09 73 | 68 6f 72 74 09 09 09 69 |D {....s|hort...i| |000009f0| 4f 70 43 6f 64 65 3b 09 | 09 09 0d 20 20 20 73 68 |OpCode;.|... sh| |00000a00| 6f 72 74 09 09 09 69 45 | 72 72 6f 72 3b 0d 09 6c |ort...iE|rror;..l| |00000a10| 6f 6e 67 09 09 09 6c 52 | 65 73 65 72 76 65 64 3b |ong...lR|eserved;| |00000a20| 0d 09 73 68 6f 72 74 09 | 09 09 70 70 64 49 73 52 |..short.|..ppdIsR| |00000a30| 65 61 6c 46 69 6c 65 3b | 09 2f 2f 20 62 6f 6f 6c |ealFile;|.// bool| |00000a40| 65 61 6e 2c 20 66 61 6c | 73 65 20 6f 72 20 74 72 |ean, fal|se or tr| |00000a50| 75 65 0d 09 46 53 53 70 | 65 63 09 09 70 70 64 46 |ue..FSSp|ec..ppdF| |00000a60| 69 6c 65 3b 09 09 09 2f | 2f 20 66 69 6c 65 73 70 |ile;.../|/ filesp| |00000a70| 65 63 20 66 6f 72 20 74 | 68 65 20 50 50 44 20 66 |ec for t|he PPD f| |00000a80| 69 6c 65 0d 7d 3b 0d 74 | 79 70 65 64 65 66 20 73 |ile.};.t|ypedef s| |00000a90| 74 72 75 63 74 20 54 50 | 53 50 72 69 6d 61 72 79 |truct TP|SPrimary| |00000aa0| 50 50 44 20 54 50 53 50 | 72 69 6d 61 72 79 50 50 |PPD TPSP|rimaryPP| |00000ab0| 44 3b 0d 54 50 53 50 72 | 69 6d 61 72 79 50 50 44 |D;.TPSPr|imaryPPD| |00000ac0| 20 70 70 64 3b 0d 50 72 | 4f 70 65 6e 28 29 3b 0d | ppd;.Pr|Open();.| |00000ad0| 69 66 20 28 50 72 44 72 | 76 72 56 65 72 73 28 29 |if (PrDr|vrVers()| |00000ae0| 20 3e 3d 20 38 30 29 20 | 0d 7b 09 2f 2a 20 41 50 | >= 80) |.{./* AP| |00000af0| 49 20 6f 6e 6c 79 20 61 | 76 61 69 6c 61 62 6c 65 |I only a|vailable| |00000b00| 20 77 69 74 68 20 50 53 | 57 72 69 74 65 72 20 2a | with PS|Writer *| |00000b10| 2f 09 0d 09 70 70 64 2e | 69 4f 70 43 6f 64 65 20 |/...ppd.|iOpCode | |00000b20| 3d 20 50 53 50 72 69 6d | 61 72 79 50 50 44 4f 70 |= PSPrim|aryPPDOp| |00000b30| 3b 0d 09 70 70 64 2e 6c | 52 65 73 65 72 76 65 64 |;..ppd.l|Reserved| |00000b40| 20 3d 20 30 3b 0d 09 50 | 72 47 65 6e 65 72 61 6c | = 0;..P|rGeneral| |00000b50| 28 28 50 74 72 29 26 70 | 70 64 29 3b 0d 09 69 66 |((Ptr)&p|pd);..if| |00000b60| 20 28 70 70 64 2e 70 70 | 64 49 73 52 65 61 6c 46 | (ppd.pp|dIsRealF| |00000b70| 69 6c 65 29 20 0d 09 7b | 09 09 2f 2a 20 4f 6e 6c |ile) ..{|../* Onl| |00000b80| 79 20 74 72 75 65 20 69 | 66 20 50 50 44 20 66 69 |y true i|f PPD fi| |00000b90| 6c 65 20 69 73 20 6e 6f | 74 20 62 75 69 6c 74 20 |le is no|t built | |00000ba0| 69 6e 20 50 50 44 20 2a | 2f 0d 09 2f 2a 20 70 70 |in PPD *|/../* pp| |00000bb0| 64 2e 70 70 64 46 69 6c | 65 20 69 73 20 61 20 66 |d.ppdFil|e is a f| |00000bc0| 69 6c 65 20 73 70 65 63 | 20 66 6f 72 20 74 68 65 |ile spec| for the| |00000bd0| 20 6d 61 69 6e 20 50 50 | 44 20 66 69 6c 65 2e 20 | main PP|D file. | |00000be0| 0d 09 53 65 65 20 64 6f | 63 20 66 6f 72 20 53 79 |..See do|c for Sy| |00000bf0| 73 74 65 6d 20 37 20 66 | 6f 72 20 65 78 61 6d 70 |stem 7 f|or examp| |00000c00| 6c 65 73 20 6f 66 20 68 | 6f 77 20 74 6f 20 75 73 |les of h|ow to us| |00000c10| 65 20 69 74 2e 2a 2f 0d | 09 7d 0d 7d 0d 50 72 43 |e it.*/.|.}.}.PrC| |00000c20| 6c 6f 73 65 28 29 3b 0d | 37 2e 32 09 4f 62 74 61 |lose();.|7.2.Obta| |00000c30| 69 6e 69 6e 67 20 69 6e | 66 6f 72 6d 61 74 69 6f |ining in|formatio| |00000c40| 6e 20 61 62 6f 75 74 20 | 74 68 65 20 74 61 72 67 |n about |the targ| |00000c50| 65 74 20 70 72 69 6e 74 | 65 72 0d 54 77 6f 20 6e |et print|er.Two n| |00000c60| 65 77 20 50 72 47 65 6e | 65 72 61 6c 20 73 65 6c |ew PrGen|eral sel| |00000c70| 65 63 74 6f 72 73 20 61 | 6c 6c 6f 77 20 61 6e 20 |ectors a|llow an | |00000c80| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 74 6f 20 67 |applicat|ion to g| |00000c90| 65 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 61 |et infor|mation a| |00000ca0| 62 6f 75 74 20 74 68 65 | 20 74 61 72 67 65 74 20 |bout the| target | |00000cb0| 70 72 69 6e 74 65 72 2e | 20 54 68 65 20 67 65 74 |printer.| The get| |00000cc0| 50 53 49 6e 66 6f 4f 70 | 20 73 65 6c 65 63 74 6f |PSInfoOp| selecto| |00000cd0| 72 20 61 6c 6c 6f 77 73 | 20 61 70 70 6c 69 63 61 |r allows| applica| |00000ce0| 74 69 6f 6e 73 20 74 6f | 20 64 65 74 65 72 6d 69 |tions to| determi| |00000cf0| 6e 65 20 77 68 65 74 68 | 65 72 20 74 68 65 20 74 |ne wheth|er the t| |00000d00| 61 72 67 65 74 20 70 72 | 69 6e 74 65 72 20 73 75 |arget pr|inter su| |00000d10| 70 70 6f 72 74 73 20 50 | 6f 73 74 53 63 72 69 70 |pports P|ostScrip| |00000d20| 74 20 4c 65 76 65 6c 20 | 20 32 2c 20 4c 65 76 65 |t Level | 2, Leve| |00000d30| 6c 20 31 2c 20 6f 72 20 | 69 73 20 75 6e 6b 6e 6f |l 1, or |is unkno| |00000d40| 77 6e 2e 20 49 74 20 61 | 6c 73 6f 20 61 6c 6c 6f |wn. It a|lso allo| |00000d50| 77 73 20 61 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |ws an ap|plicatio| |00000d60| 6e 20 74 6f 20 64 65 74 | 65 72 6d 69 6e 65 20 77 |n to det|ermine w| |00000d70| 68 65 74 68 65 72 20 74 | 68 65 20 63 6f 6d 6d 75 |hether t|he commu| |00000d80| 6e 69 63 61 74 69 6f 6e | 73 20 70 61 74 68 77 61 |nication|s pathwa| |00000d90| 79 20 74 6f 20 74 68 69 | 73 20 70 72 69 6e 74 65 |y to thi|s printe| |00000da0| 72 20 73 75 70 70 6f 72 | 74 73 20 42 69 6e 61 72 |r suppor|ts Binar| |00000db0| 79 20 63 6f 6d 6d 75 6e | 69 63 61 74 69 6f 6e 73 |y commun|ications| |00000dc0| 20 6f 72 20 6f 6e 6c 79 | 20 41 53 43 49 49 20 63 | or only| ASCII c| |00000dd0| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 73 2e 20 28 |ommunica|tions. (| |00000de0| 4e 6f 74 65 20 74 68 61 | 74 20 50 53 57 72 69 74 |Note tha|t PSWrit| |00000df0| 65 72 20 69 73 20 6e 6f | 74 20 61 6c 77 61 79 73 |er is no|t always| |00000e00| 20 70 72 69 6e 74 69 6e | 67 20 74 6f 20 61 20 70 | printin|g to a p| |00000e10| 72 69 6e 74 65 72 20 6f | 76 65 72 20 61 20 63 68 |rinter o|ver a ch| |00000e20| 61 6e 6e 65 6c 20 73 75 | 63 68 20 61 73 20 41 70 |annel su|ch as Ap| |00000e30| 70 6c 65 54 61 6c 6b 20 | 77 68 69 63 68 20 73 75 |pleTalk |which su| |00000e40| 70 70 6f 72 74 73 20 62 | 69 6e 61 72 79 20 63 6f |pports b|inary co| |00000e50| 6d 6d 75 6e 69 63 61 74 | 69 6f 6e 73 2e 29 20 54 |mmunicat|ions.) T| |00000e60| 68 69 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |his info|rmation | |00000e70| 69 73 20 69 6e 74 65 6e | 64 65 64 20 74 6f 20 61 |is inten|ded to a| |00000e80| 69 64 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |id the a|pplicati| |00000e90| 6f 6e 27 73 20 65 66 66 | 6f 72 74 73 20 74 6f 20 |on's eff|orts to | |00000ea0| 67 65 6e 65 72 61 74 65 | 20 65 66 66 69 63 69 65 |generate| efficie| |00000eb0| 6e 74 20 50 6f 73 74 53 | 63 72 69 70 74 20 6c 61 |nt PostS|cript la| |00000ec0| 6e 67 75 61 67 65 20 63 | 6f 64 65 2e 20 0d 41 64 |nguage c|ode. .Ad| |00000ed0| 64 69 74 69 6f 6e 61 6c | 6c 79 20 61 6e 20 61 70 |ditional|ly an ap| |00000ee0| 70 6c 69 63 61 74 69 6f | 6e 20 63 61 6e 20 64 65 |plicatio|n can de| |00000ef0| 74 65 72 6d 69 6e 65 20 | 69 66 20 74 68 65 20 6f |termine |if the o| |00000f00| 75 74 70 75 74 20 69 73 | 20 62 65 69 6e 67 20 64 |utput is| being d| |00000f10| 69 72 65 63 74 65 64 20 | 74 6f 20 64 69 73 6b 20 |irected |to disk | |00000f20| 61 6e 64 20 69 66 20 73 | 6f 2c 20 77 68 65 74 68 |and if s|o, wheth| |00000f30| 65 72 20 74 68 65 20 6f | 75 74 70 75 74 20 66 6f |er the o|utput fo| |00000f40| 72 6d 61 74 20 69 73 20 | 61 20 50 6f 73 74 53 63 |rmat is |a PostSc| |00000f50| 72 69 70 74 20 66 69 6c | 65 2c 20 61 6e 20 45 50 |ript fil|e, an EP| |00000f60| 53 20 66 69 6c 65 2c 20 | 6f 72 20 69 73 20 75 6e |S file, |or is un| |00000f70| 6b 6e 6f 77 6e 2e 20 42 | 79 20 6b 6e 6f 77 69 6e |known. B|y knowin| |00000f80| 67 20 74 68 61 74 20 74 | 68 65 20 6f 75 74 70 75 |g that t|he outpu| |00000f90| 74 20 69 73 20 61 6e 20 | 45 50 53 20 66 69 6c 65 |t is an |EPS file| |00000fa0| 2c 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 73 20 77 |, applic|ations w| |00000fb0| 68 69 63 68 20 6e 6f 72 | 6d 61 6c 6c 79 20 64 6f |hich nor|mally do| |00000fc0| 20 6e 6f 74 20 67 65 6e | 65 72 61 74 65 20 51 75 | not gen|erate Qu| |00000fd0| 69 63 6b 44 72 61 77 20 | 6f 75 74 70 75 74 20 64 |ickDraw |output d| |00000fe0| 75 72 69 6e 67 20 70 72 | 69 6e 74 69 6e 67 20 74 |uring pr|inting t| |00000ff0| 6f 20 61 20 50 6f 73 74 | 53 63 72 69 70 74 20 64 |o a Post|Script d| |00001000| 72 69 76 65 72 20 63 61 | 6e 20 63 6f 6e 64 69 74 |river ca|n condit| |00001010| 69 6f 6e 61 6c 6c 79 20 | 69 6e 63 6c 75 64 65 20 |ionally |include | |00001020| 74 68 65 20 51 75 69 63 | 6b 44 72 61 77 20 69 6e |the Quic|kDraw in| |00001030| 20 6f 72 64 65 72 20 74 | 6f 20 67 65 6e 65 72 61 | order t|o genera| |00001040| 74 65 20 61 20 73 63 72 | 65 65 6e 20 70 72 65 76 |te a scr|een prev| |00001050| 69 65 77 2e 20 0d 54 68 | 65 20 50 53 49 6e 74 65 |iew. .Th|e PSInte| |00001060| 6e 74 69 6f 6e 73 4f 70 | 20 73 65 6c 65 63 74 6f |ntionsOp| selecto| |00001070| 72 20 61 6c 6c 6f 77 73 | 20 61 6e 20 61 70 70 6c |r allows| an appl| |00001080| 69 63 61 74 69 6f 6e 20 | 28 61 66 74 65 72 20 63 |ication |(after c| |00001090| 6f 6e 73 69 64 65 72 61 | 74 69 6f 6e 20 6f 66 20 |onsidera|tion of | |000010a0| 74 68 65 20 70 72 69 6e | 74 65 72 d5 73 20 63 68 |the prin|ter.s ch| |000010b0| 61 72 61 63 74 65 72 69 | 73 74 69 63 73 20 64 65 |aracteri|stics de| |000010c0| 74 65 72 6d 69 6e 65 64 | 20 77 69 74 68 20 74 68 |termined| with th| |000010d0| 65 20 67 65 74 50 53 49 | 6e 66 6f 4f 70 20 63 61 |e getPSI|nfoOp ca| |000010e0| 6c 6c 29 20 74 6f 20 69 | 6e 66 6f 72 6d 20 74 68 |ll) to i|nform th| |000010f0| 65 20 64 72 69 76 65 72 | 20 6f 66 20 74 68 65 20 |e driver| of the | |00001100| 63 68 61 72 61 63 74 65 | 72 69 73 74 69 63 73 20 |characte|ristics | |00001110| 6f 66 20 74 68 65 20 63 | 6f 64 65 20 74 68 65 20 |of the c|ode the | |00001120| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 67 65 6e 65 |applicat|ion gene| |00001130| 72 61 74 65 73 2e 20 50 | 53 57 72 69 74 65 72 20 |rates. P|SWriter | |00001140| 6e 6f 72 6d 61 6c 6c 79 | 20 67 65 6e 65 72 61 74 |normally| generat| |00001150| 65 73 20 63 6f 6d 6d 65 | 6e 74 73 20 69 6e 74 6f |es comme|nts into| |00001160| 20 74 68 65 20 50 6f 73 | 74 53 63 72 69 70 74 20 | the Pos|tScript | |00001170| 73 74 72 65 61 6d 20 77 | 68 69 63 68 20 69 6e 64 |stream w|hich ind| |00001180| 69 63 61 74 65 20 69 74 | 73 20 72 65 71 75 69 72 |icate it|s requir| |00001190| 65 6d 65 6e 74 73 20 66 | 6f 72 20 74 68 69 73 20 |ements f|or this | |000011a0| 70 61 72 74 69 63 75 6c | 61 72 20 64 6f 63 75 6d |particul|ar docum| |000011b0| 65 6e 74 2e 20 54 68 65 | 20 50 53 49 6e 74 65 6e |ent. The| PSInten| |000011c0| 74 69 6f 6e 73 4f 70 20 | 73 65 6c 65 63 74 6f 72 |tionsOp |selector| |000011d0| 20 74 6f 20 74 68 65 20 | 50 72 47 65 6e 65 72 61 | to the |PrGenera| |000011e0| 6c 20 63 61 6c 6c 20 61 | 6c 6c 6f 77 73 20 74 68 |l call a|llows th| |000011f0| 65 20 64 72 69 76 65 72 | 20 74 6f 20 6d 65 72 67 |e driver| to merg| |00001200| 65 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |e the ap|plicatio| |00001210| 6e d5 73 20 72 65 71 75 | 69 72 65 6d 65 6e 74 73 |n.s requ|irements| |00001220| 20 77 69 74 68 20 69 74 | 73 20 6f 77 6e 20 72 65 | with it|s own re| |00001230| 71 75 69 72 65 6d 65 6e | 74 73 2e 20 42 79 20 64 |quiremen|ts. By d| |00001240| 65 66 61 75 6c 74 20 74 | 68 65 20 64 72 69 76 65 |efault t|he drive| |00001250| 72 20 61 73 73 75 6d 65 | 73 20 74 68 61 74 20 74 |r assume|s that t| |00001260| 68 65 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 77 |he appli|cation w| |00001270| 69 6c 6c 20 67 65 6e 65 | 72 61 74 65 20 4c 65 76 |ill gene|rate Lev| |00001280| 65 6c 20 31 20 63 6f 64 | 65 20 61 6e 64 20 41 53 |el 1 cod|e and AS| |00001290| 43 49 49 20 64 61 74 61 | 2e 0d 57 68 65 6e 20 70 |CII data|..When p| |000012a0| 72 69 6e 74 69 6e 67 20 | 74 6f 20 61 20 50 6f 73 |rinting |to a Pos| |000012b0| 74 53 63 72 69 70 74 20 | 64 65 76 69 63 65 2c 20 |tScript |device, | |000012c0| 74 68 69 73 20 64 61 74 | 61 20 69 73 20 64 65 74 |this dat|a is det| |000012d0| 65 72 6d 69 6e 65 64 20 | 66 72 6f 6d 20 74 68 65 |ermined |from the| |000012e0| 20 64 61 74 61 62 61 73 | 65 20 6f 66 20 69 6e 66 | databas|e of inf| |000012f0| 6f 72 6d 61 74 69 6f 6e | 20 74 68 61 74 20 74 68 |ormation| that th| |00001300| 65 20 64 72 69 76 65 72 | 20 6d 61 69 6e 74 61 69 |e driver| maintai| |00001310| 6e 73 20 61 62 6f 75 74 | 20 65 61 63 68 20 70 72 |ns about| each pr| |00001320| 69 6e 74 65 72 20 6b 6e | 6f 77 6e 20 74 6f 20 69 |inter kn|own to i| |00001330| 74 20 69 6e 20 74 68 65 | 20 63 68 6f 6f 73 65 72 |t in the| chooser| |00001340| 2e 20 54 68 69 73 20 70 | 6f 72 74 69 6f 6e 20 6f |. This p|ortion o| |00001350| 66 20 74 68 65 20 64 61 | 74 61 62 61 73 65 20 69 |f the da|tabase i| |00001360| 73 20 74 68 61 74 20 67 | 65 6e 65 72 61 74 65 64 |s that g|enerated| |00001370| 20 62 79 20 61 20 71 75 | 65 72 79 20 74 6f 20 74 | by a qu|ery to t| |00001380| 68 65 20 70 72 69 6e 74 | 65 72 2e 20 4f 6e 6c 79 |he print|er. Only| |00001390| 20 64 61 74 61 20 66 72 | 6f 6d 20 74 68 65 20 63 | data fr|om the c| |000013a0| 68 6f 6f 73 65 72 20 71 | 75 65 72 79 20 69 73 20 |hooser q|uery is | |000013b0| 75 73 65 64 2c 20 6e 6f | 74 20 74 68 65 20 63 75 |used, no|t the cu| |000013c0| 72 72 65 6e 74 6c 79 20 | 73 65 6c 65 63 74 65 64 |rrently |selected| |000013d0| 20 70 72 69 6e 74 65 72 | 20 64 65 73 63 72 69 70 | printer| descrip| |000013e0| 74 69 6f 6e 20 66 69 6c | 65 2e 20 49 66 20 74 68 |tion fil|e. If th| |000013f0| 65 20 63 68 6f 6f 73 65 | 72 20 71 75 65 72 79 20 |e choose|r query | |00001400| 68 61 73 20 6e 6f 74 20 | 62 65 65 6e 20 64 6f 6e |has not |been don| |00001410| 65 20 66 6f 72 20 74 68 | 65 20 74 61 72 67 65 74 |e for th|e target| |00001420| 20 70 72 69 6e 74 65 72 | 20 28 62 65 63 61 75 73 | printer| (becaus| |00001430| 65 20 65 69 74 68 65 72 | 20 6e 6f 20 73 65 74 75 |e either| no setu| |00001440| 70 20 68 61 73 20 62 65 | 65 6e 20 64 6f 6e 65 20 |p has be|en done | |00001450| 6f 72 20 61 20 6d 61 6e | 75 61 6c 20 73 65 74 75 |or a man|ual setu| |00001460| 70 20 77 61 73 20 64 6f | 6e 65 20 62 79 20 74 68 |p was do|ne by th| |00001470| 65 20 75 73 65 72 29 2c | 20 74 68 65 6e 20 74 68 |e user),| then th| |00001480| 65 20 64 61 74 61 20 72 | 65 74 75 72 6e 65 64 20 |e data r|eturned | |00001490| 62 79 20 74 68 65 20 67 | 65 74 50 53 49 6e 66 6f |by the g|etPSInfo| |000014a0| 4f 70 20 63 61 6c 6c 20 | 69 73 20 61 20 6c 61 6e |Op call |is a lan| |000014b0| 67 75 61 67 65 20 6c 65 | 76 65 6c 20 6f 66 20 55 |guage le|vel of U| |000014c0| 6e 6b 6e 6f 77 6e 20 61 | 6e 64 20 61 20 63 68 61 |nknown a|nd a cha| |000014d0| 6e 6e 65 6c 20 63 68 61 | 72 61 63 74 65 72 69 73 |nnel cha|racteris| |000014e0| 74 69 63 20 6f 66 20 41 | 53 43 49 49 2e 20 20 49 |tic of A|SCII. I| |000014f0| 66 20 74 68 65 20 75 73 | 65 72 20 69 73 20 6e 6f |f the us|er is no| |00001500| 74 20 73 61 76 69 6e 67 | 20 74 6f 20 61 20 66 69 |t saving| to a fi| |00001510| 6c 65 2c 20 74 68 65 6e | 20 74 68 65 20 70 72 69 |le, then| the pri| |00001520| 6e 74 54 6f 46 69 6c 65 | 20 66 69 65 6c 64 20 6f |ntToFile| field o| |00001530| 66 20 74 68 65 20 72 65 | 74 75 72 6e 65 64 20 73 |f the re|turned s| |00001540| 74 72 75 63 74 75 72 65 | 20 69 73 20 66 61 6c 73 |tructure| is fals| |00001550| 65 20 61 6e 64 20 74 68 | 65 20 74 79 70 65 4f 66 |e and th|e typeOf| |00001560| 53 61 76 65 20 66 69 65 | 6c 64 20 69 73 20 75 6e |Save fie|ld is un| |00001570| 64 65 66 69 6e 65 64 2e | 0d 57 68 65 6e 20 73 61 |defined.|.When sa| |00001580| 76 69 6e 67 20 74 6f 20 | 64 69 73 6b 2c 20 74 68 |ving to |disk, th| |00001590| 69 73 20 64 61 74 61 20 | 69 73 20 64 65 74 65 72 |is data |is deter| |000015a0| 6d 69 6e 65 64 20 66 72 | 6f 6d 20 74 68 65 20 73 |mined fr|om the s| |000015b0| 70 65 63 69 66 69 63 61 | 74 69 6f 6e 20 6f 66 20 |pecifica|tion of | |000015c0| 74 68 65 20 75 73 65 72 | 27 73 20 73 61 76 65 20 |the user|'s save | |000015d0| 74 6f 20 64 69 73 6b 20 | 73 65 6c 65 63 74 69 6f |to disk |selectio| |000015e0| 6e 2e 20 4e 6f 74 65 20 | 74 68 61 74 20 69 6e 20 |n. Note |that in | |000015f0| 65 69 74 68 65 72 20 63 | 61 73 65 2c 20 74 68 65 |either c|ase, the| |00001600| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 6d 75 73 | applica|tion mus| |00001610| 74 20 77 61 69 74 20 75 | 6e 74 69 6c 20 50 72 4f |t wait u|ntil PrO| |00001620| 70 65 6e 44 6f 63 20 68 | 61 73 20 62 65 65 6e 20 |penDoc h|as been | |00001630| 63 61 6c 6c 65 64 20 69 | 6e 20 6f 72 64 65 72 20 |called i|n order | |00001640| 74 6f 20 65 78 65 63 75 | 74 65 20 74 68 69 73 20 |to execu|te this | |00001650| 50 72 47 65 6e 65 72 61 | 6c 20 63 61 6c 6c 2e 20 |PrGenera|l call. | |00001660| 54 68 69 73 20 69 73 20 | 62 65 63 61 75 73 65 20 |This is |because | |00001670| 74 68 65 20 75 73 65 72 | 20 6d 61 79 20 69 6e 64 |the user| may ind| |00001680| 65 65 64 20 68 61 76 65 | 20 62 65 65 6e 20 73 61 |eed have| been sa| |00001690| 76 69 6e 67 20 74 6f 20 | 64 69 73 6b 20 66 6f 72 |ving to |disk for| |000016a0| 20 74 68 69 73 20 70 72 | 69 6e 74 20 6a 6f 62 2e | this pr|int job.| |000016b0| 20 57 68 65 6e 20 74 68 | 65 20 4c 65 76 65 6c 20 | When th|e Level | |000016c0| 31 20 43 6f 6d 70 61 74 | 69 62 6c 65 20 6f 70 74 |1 Compat|ible opt| |000016d0| 69 6f 6e 20 69 73 20 73 | 65 6c 65 63 74 65 64 20 |ion is s|elected | |000016e0| 69 6e 20 74 68 65 20 73 | 61 76 65 20 74 6f 20 64 |in the s|ave to d| |000016f0| 69 73 6b 20 74 68 65 6e | 20 74 68 69 73 20 63 61 |isk then| this ca| |00001700| 6c 6c 20 72 65 74 75 72 | 6e 73 20 6c 61 6e 67 75 |ll retur|ns langu| |00001710| 61 67 65 20 6c 65 76 65 | 6c 20 6f 66 20 4c 65 76 |age leve|l of Lev| |00001720| 65 6c 31 61 6e 64 4c 65 | 76 65 6c 32 2e 20 54 68 |el1andLe|vel2. Th| |00001730| 69 73 20 61 6c 6c 6f 77 | 73 20 61 70 70 6c 69 63 |is allow|s applic| |00001740| 61 74 69 6f 6e 73 20 74 | 6f 20 65 69 74 68 65 72 |ations t|o either| |00001750| 20 74 72 65 61 74 20 74 | 68 65 20 4c 65 76 65 6c | treat t|he Level| |00001760| 20 31 20 43 6f 6d 70 61 | 74 69 62 6c 65 20 6f 70 | 1 Compa|tible op| |00001770| 74 69 6f 6e 20 61 73 20 | 6d 65 61 6e 69 6e 67 20 |tion as |meaning | |00001780| 74 68 65 20 74 61 72 67 | 65 74 20 70 72 69 6e 74 |the targ|et print| |00001790| 65 72 20 69 73 20 4c 65 | 76 65 6c 20 31 20 6f 72 |er is Le|vel 1 or| |000017a0| 2c 20 61 73 20 50 53 57 | 72 69 74 65 72 20 64 6f |, as PSW|riter do| |000017b0| 65 73 2c 20 74 72 65 61 | 74 20 74 68 65 20 63 61 |es, trea|t the ca| |000017c0| 73 65 20 6f 66 20 4c 65 | 76 65 6c 20 31 20 43 6f |se of Le|vel 1 Co| |000017d0| 6d 70 61 74 69 62 6c 65 | 20 74 68 65 20 73 61 6d |mpatible| the sam| |000017e0| 65 20 61 73 20 55 6e 6b | 6e 6f 77 6e 2e 20 54 68 |e as Unk|nown. Th| |000017f0| 69 73 20 61 70 70 72 6f | 61 63 68 20 61 6c 6c 6f |is appro|ach allo| |00001800| 77 73 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 73 20 |ws appli|cations | |00001810| 74 6f 20 64 69 73 74 69 | 6e 67 75 69 73 68 20 61 |to disti|nguish a| |00001820| 20 74 72 75 6c 79 20 75 | 6e 6b 6e 6f 77 6e 20 73 | truly u|nknown s| |00001830| 69 74 75 61 74 69 6f 6e | 20 73 75 63 68 20 61 73 |ituation| such as| |00001840| 20 61 20 70 72 69 6e 74 | 20 73 70 6f 6f 6c 65 72 | a print| spooler| |00001850| 20 66 72 6f 6d 20 74 68 | 65 20 73 61 76 65 20 74 | from th|e save t| |00001860| 6f 20 64 69 73 6b 20 4c | 65 76 65 6c 20 31 20 43 |o disk L|evel 1 C| |00001870| 6f 6d 70 61 74 69 62 6c | 65 2e 20 4e 6f 72 6d 61 |ompatibl|e. Norma| |00001880| 6c 6c 79 20 74 68 65 20 | 73 74 72 61 74 65 67 79 |lly the |strategy| |00001890| 20 77 6f 75 6c 64 20 62 | 65 20 69 64 65 6e 74 69 | would b|e identi| |000018a0| 63 61 6c 20 69 6e 20 62 | 6f 74 68 20 63 61 73 65 |cal in b|oth case| |000018b0| 73 2e 0d 57 68 65 6e 20 | 73 61 76 69 6e 67 20 74 |s..When |saving t| |000018c0| 6f 20 64 69 73 6b 2c 20 | 74 68 65 20 70 72 69 6e |o disk, |the prin| |000018d0| 74 54 6f 46 69 6c 65 20 | 66 69 65 6c 64 20 6f 66 |tToFile |field of| |000018e0| 20 74 68 65 20 73 74 72 | 75 63 74 75 72 65 20 72 | the str|ucture r| |000018f0| 65 74 75 72 6e 65 64 20 | 62 79 20 74 68 65 20 67 |eturned |by the g| |00001900| 65 74 50 53 49 6e 66 6f | 4f 70 20 63 61 6c 6c 20 |etPSInfo|Op call | |00001910| 69 73 20 73 65 74 20 74 | 6f 20 74 72 75 65 2e 20 |is set t|o true. | |00001920| 54 68 65 20 74 79 70 65 | 4f 66 53 61 76 65 20 66 |The type|OfSave f| |00001930| 69 65 6c 64 20 69 73 20 | 66 69 6c 6c 65 64 20 69 |ield is |filled i| |00001940| 6e 20 62 61 73 65 64 20 | 6f 6e 20 74 68 65 20 66 |n based |on the f| |00001950| 6f 72 6d 61 74 20 74 68 | 65 20 75 73 65 72 20 68 |ormat th|e user h| |00001960| 61 73 20 73 65 6c 65 63 | 74 65 64 20 66 72 6f 6d |as selec|ted from| |00001970| 20 74 68 65 20 73 61 76 | 65 20 74 6f 20 64 69 73 | the sav|e to dis| |00001980| 6b 20 64 69 61 6c 6f 67 | 2e 20 49 66 20 74 68 65 |k dialog|. If the| |00001990| 20 66 6f 72 6d 61 74 20 | 50 6f 73 74 53 63 72 69 | format |PostScri| |000019a0| 70 74 20 4a 6f 62 20 28 | 74 68 65 20 64 65 66 61 |pt Job (|the defa| |000019b0| 75 6c 74 29 20 69 73 20 | 73 65 6c 65 63 74 65 64 |ult) is |selected| |000019c0| 2c 20 74 68 65 6e 20 50 | 53 57 72 69 74 65 72 20 |, then P|SWriter | |000019d0| 73 65 74 73 20 74 68 65 | 20 74 79 70 65 4f 66 53 |sets the| typeOfS| |000019e0| 61 76 65 20 74 6f 20 74 | 68 65 20 76 61 6c 75 65 |ave to t|he value| |000019f0| 20 6b 53 61 76 65 50 53 | 46 69 6c 65 2e 20 57 68 | kSavePS|File. Wh| |00001a00| 65 6e 20 74 68 65 20 75 | 73 65 72 20 73 65 6c 65 |en the u|ser sele| |00001a10| 63 74 73 20 45 50 53 20 | 53 74 61 6e 64 61 72 64 |cts EPS |Standard| |00001a20| 20 50 72 65 76 69 65 77 | 2c 20 50 53 57 72 69 74 | Preview|, PSWrit| |00001a30| 65 72 20 73 65 74 73 20 | 74 68 65 20 74 79 70 65 |er sets |the type| |00001a40| 4f 66 53 61 76 65 20 74 | 6f 20 74 68 65 20 76 61 |OfSave t|o the va| |00001a50| 6c 75 65 20 6b 53 61 76 | 65 45 50 53 42 69 74 4d |lue kSav|eEPSBitM| |00001a60| 61 70 2e 20 57 68 65 6e | 20 74 68 65 20 75 73 65 |ap. When| the use| |00001a70| 72 20 73 65 6c 65 63 74 | 73 20 45 50 53 20 45 6e |r select|s EPS En| |00001a80| 68 61 6e 63 65 64 20 50 | 72 65 76 69 65 77 2c 20 |hanced P|review, | |00001a90| 50 53 57 72 69 74 65 72 | 20 73 65 74 73 20 74 68 |PSWriter| sets th| |00001aa0| 65 20 74 79 70 65 4f 66 | 53 61 76 65 20 74 6f 20 |e typeOf|Save to | |00001ab0| 74 68 65 20 76 61 6c 75 | 65 20 6b 53 61 76 65 45 |the valu|e kSaveE| |00001ac0| 50 53 50 49 43 54 2e 20 | 57 68 65 6e 20 74 68 65 |PSPICT. |When the| |00001ad0| 20 75 73 65 72 20 73 65 | 6c 65 63 74 73 20 45 50 | user se|lects EP| |00001ae0| 53 20 4e 6f 20 50 72 65 | 76 69 65 77 2c 20 50 53 |S No Pre|view, PS| |00001af0| 57 72 69 74 65 72 20 73 | 65 74 73 20 74 68 65 20 |Writer s|ets the | |00001b00| 74 79 70 65 4f 66 53 61 | 76 65 20 74 6f 20 74 68 |typeOfSa|ve to th| |00001b10| 65 20 76 61 6c 75 65 20 | 6b 53 61 76 65 45 50 53 |e value |kSaveEPS| |00001b20| 4e 6f 50 72 65 76 69 65 | 77 2e 20 49 66 20 74 68 |NoPrevie|w. If th| |00001b30| 65 20 75 73 65 72 20 73 | 65 6c 65 63 74 73 20 61 |e user s|elects a| |00001b40| 6e 79 20 6f 74 68 65 72 | 20 66 6f 72 6d 61 74 2c |ny other| format,| |00001b50| 20 74 68 65 6e 20 50 53 | 57 72 69 74 65 72 20 73 | then PS|Writer s| |00001b60| 65 74 73 20 74 68 65 20 | 74 79 70 65 4f 66 53 61 |ets the |typeOfSa| |00001b70| 76 65 20 74 6f 20 74 68 | 65 20 76 61 6c 75 65 20 |ve to th|e value | |00001b80| 6b 53 61 76 65 50 53 55 | 6e 6b 6e 6f 77 6e 2e 0d |kSavePSU|nknown..| |00001b90| 4e 6f 74 65 20 74 68 61 | 74 20 4c 65 76 65 6c 20 |Note tha|t Level | |00001ba0| 32 20 6f 72 20 62 69 6e | 61 72 79 20 63 6f 6d 6d |2 or bin|ary comm| |00001bb0| 75 6e 69 63 61 74 69 6f | 6e 20 73 75 70 70 6f 72 |unicatio|n suppor| |00001bc0| 74 20 66 6f 72 20 74 68 | 65 20 74 61 72 67 65 74 |t for th|e target| |00001bd0| 20 70 72 69 6e 74 65 72 | 20 64 6f 65 73 20 63 61 | printer| does ca| |00001be0| 75 73 65 20 50 53 57 72 | 69 74 65 72 20 74 6f 20 |use PSWr|iter to | |00001bf0| 67 65 6e 65 72 61 74 65 | 20 73 75 63 68 20 6f 75 |generate| such ou| |00001c00| 74 70 75 74 20 69 6e 20 | 61 6c 6c 20 63 61 73 65 |tput in |all case| |00001c10| 73 20 66 6f 72 20 69 74 | 73 20 6f 77 6e 20 6f 75 |s for it|s own ou| |00001c20| 74 70 75 74 2e 20 46 6f | 72 20 74 68 69 73 20 72 |tput. Fo|r this r| |00001c30| 65 61 73 6f 6e 20 61 70 | 70 6c 69 63 61 74 69 6f |eason ap|plicatio| |00001c40| 6e 73 20 61 72 65 20 65 | 6e 63 6f 75 72 61 67 65 |ns are e|ncourage| |00001c50| 64 20 74 6f 20 63 6f 6e | 73 65 72 76 61 74 69 76 |d to con|servativ| |00001c60| 65 6c 79 20 73 70 65 63 | 69 66 79 20 74 68 65 69 |ely spec|ify thei| |00001c70| 72 20 6f 77 6e 20 72 65 | 71 75 69 72 65 6d 65 6e |r own re|quiremen| |00001c80| 74 73 2e 20 41 70 70 6c | 69 63 61 74 69 6f 6e 73 |ts. Appl|ications| |00001c90| 20 73 68 6f 75 6c 64 20 | 6e 6f 74 20 6d 65 72 65 | should |not mere| |00001ca0| 6c 79 20 70 61 73 73 20 | 74 68 65 20 73 61 6d 65 |ly pass |the same| |00001cb0| 20 64 61 74 61 20 62 61 | 63 6b 20 74 6f 20 74 68 | data ba|ck to th| |00001cc0| 65 20 64 72 69 76 65 72 | 20 77 69 74 68 6f 75 74 |e driver| without| |00001cd0| 20 72 65 67 61 72 64 20 | 74 6f 20 74 68 65 69 72 | regard |to their| |00001ce0| 20 6f 77 6e 20 6e 65 65 | 64 73 2e 20 41 70 70 6c | own nee|ds. Appl| |00001cf0| 69 63 61 74 69 6f 6e 73 | 20 61 72 65 20 6e 6f 74 |ications| are not| |00001d00| 20 72 65 71 75 69 72 65 | 64 20 74 6f 20 63 61 6c | require|d to cal| |00001d10| 6c 20 50 53 49 6e 74 65 | 6e 74 69 6f 6e 73 20 62 |l PSInte|ntions b| |00001d20| 75 74 20 69 74 20 69 73 | 20 73 74 72 6f 6e 67 6c |ut it is| strongl| |00001d30| 79 20 72 65 63 6f 6d 6d | 65 6e 64 65 64 20 74 68 |y recomm|ended th| |00001d40| 61 74 20 74 68 65 79 20 | 64 6f 20 73 6f 20 69 66 |at they |do so if| |00001d50| 20 74 68 65 79 20 67 65 | 6e 65 72 61 74 65 20 63 | they ge|nerate c| |00001d60| 6f 64 65 20 77 68 69 63 | 68 20 72 65 71 75 69 72 |ode whic|h requir| |00001d70| 65 73 20 61 20 62 69 6e | 61 72 79 20 63 68 61 6e |es a bin|ary chan| |00001d80| 6e 65 6c 20 6f 72 20 72 | 65 71 75 69 72 65 73 20 |nel or r|equires | |00001d90| 50 6f 73 74 53 63 72 69 | 70 74 20 4c 65 76 65 6c |PostScri|pt Level| |00001da0| 20 32 2e 0d 49 6e 20 70 | 61 72 74 69 63 75 6c 61 | 2..In p|articula| |00001db0| 72 2c 20 69 66 20 61 6e | 20 61 70 70 6c 69 63 61 |r, if an| applica| |00001dc0| 74 69 6f 6e 20 64 6f 65 | 73 2c 20 64 75 72 69 6e |tion doe|s, durin| |00001dd0| 67 20 61 20 67 69 76 65 | 6e 20 70 72 69 6e 74 69 |g a give|n printi| |00001de0| 6e 67 20 73 65 73 73 69 | 6f 6e 2c 20 67 65 6e 65 |ng sessi|on, gene| |00001df0| 72 61 74 65 20 50 6f 73 | 74 53 63 72 69 70 74 20 |rate Pos|tScript | |00001e00| 4c 65 76 65 6c 20 32 20 | 73 70 65 63 69 66 69 63 |Level 2 |specific| |00001e10| 20 63 6f 64 65 20 77 69 | 74 68 20 6e 6f 20 66 61 | code wi|th no fa| |00001e20| 6c 6c 62 61 63 6b 20 73 | 74 72 61 74 65 67 79 20 |llback s|trategy | |00001e30| 66 6f 72 20 6c 65 76 65 | 6c 20 31 20 70 72 69 6e |for leve|l 1 prin| |00001e40| 74 65 72 73 2c 20 69 74 | 20 73 68 6f 75 6c 64 20 |ters, it| should | |00001e50| 69 6e 64 69 63 61 74 65 | 20 74 68 69 73 20 74 6f |indicate| this to| |00001e60| 20 74 68 65 20 64 72 69 | 76 65 72 2e 20 54 68 61 | the dri|ver. Tha| |00001e70| 74 20 69 73 2c 20 69 66 | 20 61 6e 20 61 70 70 6c |t is, if| an appl| |00001e80| 69 63 61 74 69 6f 6e 20 | 67 65 6e 65 72 61 74 65 |ication |generate| |00001e90| 73 20 69 74 73 20 50 6f | 73 74 53 63 72 69 70 74 |s its Po|stScript| |00001ea0| 20 6c 61 6e 67 75 61 67 | 65 20 63 6f 64 65 20 69 | languag|e code i| |00001eb0| 6e 20 61 20 6d 61 6e 6e | 65 72 20 74 68 61 74 20 |n a mann|er that | |00001ec0| 77 69 6c 6c 20 66 61 69 | 6c 20 6f 6e 20 61 20 4c |will fai|l on a L| |00001ed0| 65 76 65 6c 20 31 20 70 | 72 69 6e 74 65 72 20 69 |evel 1 p|rinter i| |00001ee0| 74 20 73 68 6f 75 6c 64 | 20 69 6e 64 69 63 61 74 |t should| indicat| |00001ef0| 65 20 74 6f 20 74 68 65 | 20 64 72 69 76 65 72 20 |e to the| driver | |00001f00| 74 68 61 74 20 66 61 63 | 74 20 77 69 74 68 20 74 |that fac|t with t| |00001f10| 68 65 20 61 70 70 72 6f | 70 72 69 61 74 65 20 50 |he appro|priate P| |00001f20| 72 47 65 6e 65 72 61 6c | 20 63 61 6c 6c 2e 20 4f |rGeneral| call. O| |00001f30| 6e 6c 79 20 69 66 20 61 | 6e 20 61 70 70 6c 69 63 |nly if a|n applic| |00001f40| 61 74 69 6f 6e 20 72 65 | 71 75 69 72 65 73 20 61 |ation re|quires a| |00001f50| 20 62 69 6e 61 72 79 20 | 63 68 61 6e 6e 65 6c 20 | binary |channel | |00001f60| 73 68 6f 75 6c 64 20 69 | 74 20 69 6e 66 6f 72 6d |should i|t inform| |00001f70| 20 74 68 65 20 64 72 69 | 76 65 72 2e 20 54 68 69 | the dri|ver. Thi| |00001f80| 73 20 61 6c 6c 6f 77 73 | 20 74 68 65 20 64 72 69 |s allows| the dri| |00001f90| 76 65 72 20 74 6f 20 63 | 6f 72 72 65 63 74 6c 79 |ver to c|orrectly| |00001fa0| 20 6d 61 72 6b 20 69 74 | 73 20 6f 75 74 70 75 74 | mark it|s output| |00001fb0| 20 73 6f 20 74 68 61 74 | 20 73 75 62 73 65 71 75 | so that| subsequ| |00001fc0| 65 6e 74 20 70 72 6f 63 | 65 73 73 69 6e 67 20 6f |ent proc|essing o| |00001fd0| 66 20 74 68 65 20 64 6f | 63 75 6d 65 6e 74 20 63 |f the do|cument c| |00001fe0| 61 6e 20 62 65 20 64 6f | 6e 65 20 77 69 74 68 20 |an be do|ne with | |00001ff0| 74 68 69 73 20 69 6e 66 | 6f 72 6d 61 74 69 6f 6e |this inf|ormation| |00002000| 20 61 76 61 69 6c 61 62 | 6c 65 2e 20 54 68 69 73 | availab|le. This| |00002010| 20 61 6c 6c 6f 77 73 20 | 70 6f 73 74 20 70 72 6f | allows |post pro| |00002020| 63 65 73 73 69 6e 67 20 | 73 6f 66 74 77 61 72 65 |cessing |software| |00002030| 20 74 6f 20 63 6f 72 72 | 65 63 74 6c 79 20 72 6f | to corr|ectly ro| |00002040| 75 74 65 20 6f 72 20 68 | 61 6e 64 6c 65 20 64 6f |ute or h|andle do| |00002050| 63 75 6d 65 6e 74 73 20 | 77 68 69 63 68 20 72 65 |cuments |which re| |00002060| 71 75 69 72 65 20 61 20 | 62 69 6e 61 72 79 20 63 |quire a |binary c| |00002070| 6f 6d 6d 75 6e 69 63 61 | 74 69 6f 6e 73 20 63 68 |ommunica|tions ch| |00002080| 61 6e 6e 65 6c 20 6f 72 | 20 61 20 4c 65 76 65 6c |annel or| a Level| |00002090| 20 32 20 70 72 69 6e 74 | 65 72 2e 0d 4e 6f 74 65 | 2 print|er..Note| |000020a0| 20 74 68 61 74 20 74 68 | 65 72 65 20 69 73 20 61 | that th|ere is a| |000020b0| 20 76 65 72 79 20 68 69 | 67 68 20 64 65 67 72 65 | very hi|gh degre| |000020c0| 65 20 6f 66 20 70 72 6f | 62 61 62 69 6c 69 74 79 |e of pro|bability| |000020d0| 20 74 68 61 74 20 61 20 | 6a 6f 62 20 77 69 6c 6c | that a |job will| |000020e0| 20 66 61 69 6c 20 69 66 | 20 61 6e 20 61 70 70 6c | fail if| an appl| |000020f0| 69 63 61 74 69 6f 6e 20 | 67 65 6e 65 72 61 74 65 |ication |generate| |00002100| 73 20 62 69 6e 61 72 79 | 20 64 61 74 61 20 77 68 |s binary| data wh| |00002110| 65 6e 20 74 68 65 20 63 | 68 61 6e 6e 65 6c 20 6f |en the c|hannel o| |00002120| 6e 6c 79 20 73 75 70 70 | 6f 72 74 73 20 41 53 43 |nly supp|orts ASC| |00002130| 49 49 20 6f 72 20 69 74 | 20 74 68 65 20 61 70 70 |II or it| the app| |00002140| 6c 69 63 61 74 69 6f 6e | 20 67 65 6e 65 72 61 74 |lication| generat| |00002150| 65 73 20 4c 65 76 65 6c | 20 32 20 6f 6e 6c 79 20 |es Level| 2 only | |00002160| 63 6f 64 65 20 77 68 65 | 6e 20 61 20 70 72 69 6e |code whe|n a prin| |00002170| 74 65 72 20 69 73 20 61 | 20 4c 65 76 65 6c 20 31 |ter is a| Level 1| |00002180| 20 70 72 69 6e 74 65 72 | 2e 20 54 68 65 20 61 70 | printer|. The ap| |00002190| 70 6c 69 63 61 74 69 6f | 6e 20 69 6e 74 65 72 66 |plicatio|n interf| |000021a0| 61 63 65 20 69 73 20 61 | 73 20 66 6f 6c 6c 6f 77 |ace is a|s follow| |000021b0| 73 3a 0d 2f 2a 20 74 68 | 69 73 20 69 73 20 64 65 |s:./* th|is is de| |000021c0| 66 69 6e 65 64 20 69 6e | 20 50 72 47 65 6e 65 72 |fined in| PrGener| |000021d0| 61 6c 2e 68 20 2a 2f 0d | 65 6e 75 6d 20 7b 0d 09 |al.h */.|enum {..| |000021e0| 67 65 74 50 53 49 6e 66 | 6f 4f 70 20 3d 09 09 31 |getPSInf|oOp =..1| |000021f0| 30 2c 0d 09 50 53 49 6e | 74 65 6e 74 69 6f 6e 73 |0,..PSIn|tentions| |00002200| 4f 70 20 3d 09 31 31 0d | 7d 3b 0d 65 6e 75 6d 20 |Op =.11.|};.enum | |00002210| 7b 0d 09 4c 65 76 65 6c | 31 61 6e 64 32 20 3d 20 |{..Level|1and2 = | |00002220| 2d 32 2c 0d 09 55 6e 6b | 6e 6f 77 6e 4c 65 76 65 |-2,..Unk|nownLeve| |00002230| 6c 20 3d 20 2d 31 2c 0d | 09 4f 74 68 65 72 4c 65 |l = -1,.|.OtherLe| |00002240| 76 65 6c 20 3d 20 30 2c | 0d 09 4c 65 76 65 6c 31 |vel = 0,|..Level1| |00002250| 20 3d 20 31 2c 0d 09 4c | 65 76 65 6c 32 20 3d 20 | = 1,..L|evel2 = | |00002260| 32 0d 7d 3b 0d 65 6e 75 | 6d 20 7b 0d 09 6b 53 61 |2.};.enu|m {..kSa| |00002270| 76 65 50 53 55 6e 6b 6e | 6f 77 6e 20 3d 20 2d 31 |vePSUnkn|own = -1| |00002280| 2c 0d 09 6b 53 61 76 65 | 50 53 46 69 6c 65 20 3d |,..kSave|PSFile =| |00002290| 20 30 2c 0d 09 6b 53 61 | 76 65 45 50 53 42 69 74 | 0,..kSa|veEPSBit| |000022a0| 4d 61 70 2c 0d 09 6b 53 | 61 76 65 45 50 53 50 49 |Map,..kS|aveEPSPI| |000022b0| 43 54 2c 0d 09 6b 53 61 | 76 65 45 50 53 4e 6f 50 |CT,..kSa|veEPSNoP| |000022c0| 72 65 76 69 65 77 0d 7d | 3b 0d 23 64 65 66 69 6e |review.}|;.#defin| |000022d0| 65 20 6b 50 53 49 6e 66 | 6f 56 65 72 73 69 6f 6e |e kPSInf|oVersion| |000022e0| 20 31 0d 73 74 72 75 63 | 74 20 54 67 65 74 50 53 | 1.struc|t TgetPS| |000022f0| 49 6e 66 6f 20 7b 0d 09 | 73 68 6f 72 74 09 09 09 |Info {..|short...| |00002300| 09 69 4f 70 43 6f 64 65 | 3b 0d 09 73 68 6f 72 74 |.iOpCode|;..short| |00002310| 09 09 09 09 69 45 72 72 | 6f 72 3b 0d 09 6c 6f 6e |....iErr|or;..lon| |00002320| 67 09 09 09 09 6c 52 65 | 73 65 72 76 65 64 3b 0d |g....lRe|served;.| |00002330| 09 73 74 72 75 63 74 20 | 54 50 72 69 6e 74 2a 2a |.struct |TPrint**| |00002340| 09 68 50 72 69 6e 74 3b | 0d 09 73 68 6f 72 74 09 |.hPrint;|..short.| |00002350| 09 09 09 76 65 72 73 69 | 6f 6e 3b 0d 09 73 68 6f |...versi|on;..sho| |00002360| 72 74 09 09 09 09 6c 65 | 76 65 6c 3b 0d 20 20 20 |rt....le|vel;. | |00002370| 73 68 6f 72 74 09 09 09 | 09 74 79 70 65 4f 66 53 |short...|.typeOfS| |00002380| 61 76 65 3b 0d 09 75 6e | 73 69 67 6e 65 64 20 73 |ave;..un|signed s| |00002390| 68 6f 72 74 20 70 72 69 | 6e 74 54 6f 46 69 6c 65 |hort pri|ntToFile| |000023a0| 20 3a 20 31 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 | : 1;..u|nsigned | |000023b0| 73 68 6f 72 74 20 62 69 | 6e 61 72 79 20 3a 20 31 |short bi|nary : 1| |000023c0| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |;..unsig|ned shor| |000023d0| 74 20 72 65 73 65 72 76 | 65 64 20 3a 20 31 34 3b |t reserv|ed : 14;| |000023e0| 0d 7d 3b 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |.};.type|def stru| |000023f0| 63 74 20 54 67 65 74 50 | 53 49 6e 66 6f 20 54 67 |ct TgetP|SInfo Tg| |00002400| 65 74 50 53 49 6e 66 6f | 3b 0d 23 64 65 66 69 6e |etPSInfo|;.#defin| |00002410| 65 20 6b 50 53 49 6e 74 | 65 6e 74 69 6f 6e 73 56 |e kPSInt|entionsV| |00002420| 65 72 73 69 6f 6e 20 31 | 0d 73 74 72 75 63 74 20 |ersion 1|.struct | |00002430| 54 50 53 49 6e 74 65 6e | 74 69 6f 6e 73 20 7b 0d |TPSInten|tions {.| |00002440| 09 73 68 6f 72 74 09 09 | 09 09 69 4f 70 43 6f 64 |.short..|..iOpCod| |00002450| 65 3b 0d 09 73 68 6f 72 | 74 09 09 09 09 69 45 72 |e;..shor|t....iEr| |00002460| 72 6f 72 3b 0d 09 6c 6f | 6e 67 09 09 09 09 6c 52 |ror;..lo|ng....lR| |00002470| 65 73 65 72 76 65 64 3b | 0d 09 73 74 72 75 63 74 |eserved;|..struct| |00002480| 20 54 50 72 69 6e 74 2a | 2a 09 68 50 72 69 6e 74 | TPrint*|*.hPrint| |00002490| 3b 0d 09 73 68 6f 72 74 | 09 09 09 09 76 65 72 73 |;..short|....vers| |000024a0| 69 6f 6e 3b 0d 09 73 68 | 6f 72 74 09 09 09 09 6c |ion;..sh|ort....l| |000024b0| 65 76 65 6c 3b 0d 09 75 | 6e 73 69 67 6e 65 64 20 |evel;..u|nsigned | |000024c0| 73 68 6f 72 74 09 62 69 | 6e 61 72 79 20 3a 20 31 |short.bi|nary : 1| |000024d0| 3b 0d 09 75 6e 73 69 67 | 6e 65 64 20 73 68 6f 72 |;..unsig|ned shor| |000024e0| 74 09 72 65 73 65 72 76 | 65 64 20 3a 20 31 35 3b |t.reserv|ed : 15;| |000024f0| 0d 7d 3b 0d 74 79 70 65 | 64 65 66 20 73 74 72 75 |.};.type|def stru| |00002500| 63 74 20 54 50 53 49 6e | 74 65 6e 74 69 6f 6e 73 |ct TPSIn|tentions| |00002510| 20 54 50 53 49 6e 74 65 | 6e 74 69 6f 6e 73 3b 0d | TPSInte|ntions;.| |00002520| 2f 2a 20 65 6e 64 20 65 | 78 63 65 72 70 74 20 50 |/* end e|xcerpt P| |00002530| 72 47 65 6e 65 72 61 6c | 2e 68 20 66 69 6c 65 20 |rGeneral|.h file | |00002540| 2a 2f 0d 76 6f 69 64 20 | 4d 79 50 72 69 6e 74 28 |*/.void |MyPrint(| |00002550| 54 48 50 72 69 6e 74 20 | 70 68 29 20 7b 0d 09 54 |THPrint |ph) {..T| |00002560| 67 65 74 50 53 49 6e 66 | 6f 20 67 65 74 49 6e 66 |getPSInf|o getInf| |00002570| 6f 3b 0d 09 54 50 53 49 | 6e 74 65 6e 74 69 6f 6e |o;..TPSI|ntention| |00002580| 73 20 69 6e 74 65 6e 74 | 69 6f 6e 73 3b 0d 09 54 |s intent|ions;..T| |00002590| 50 50 72 50 6f 72 74 20 | 70 70 6f 72 74 3b 0d 09 |PPrPort |pport;..| |000025a0| 0d 09 50 72 4f 70 65 6e | 28 29 3b 0d 09 69 66 20 |..PrOpen|();..if | |000025b0| 28 50 72 4a 6f 62 44 69 | 61 6c 6f 67 28 70 68 29 |(PrJobDi|alog(ph)| |000025c0| 26 26 20 28 50 72 44 72 | 76 72 56 65 72 73 28 29 |&& (PrDr|vrVers()| |000025d0| 3e 3d 20 38 30 29 20 29 | 20 7b 0d 09 09 70 70 6f |>= 80) )| {...ppo| |000025e0| 72 74 20 3d 20 50 72 4f | 70 65 6e 44 6f 63 28 70 |rt = PrO|penDoc(p| |000025f0| 68 2c 20 30 2c 20 30 29 | 3b 0d 09 09 2f 2a 20 67 |h, 0, 0)|;.../* g| |00002600| 65 74 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 2a |et infor|mation *| |00002610| 2f 0d 09 09 67 65 74 49 | 6e 66 6f 2e 69 4f 70 43 |/...getI|nfo.iOpC| |00002620| 6f 64 65 20 3d 20 67 65 | 74 50 53 49 6e 66 6f 4f |ode = ge|tPSInfoO| |00002630| 70 3b 0d 09 09 67 65 74 | 49 6e 66 6f 2e 68 50 72 |p;...get|Info.hPr| |00002640| 69 6e 74 20 3d 20 70 68 | 3b 0d 09 09 09 09 2f 2a |int = ph|;...../*| |00002650| 20 67 65 74 50 53 49 6e | 66 6f 4f 70 20 6d 75 73 | getPSIn|foOp mus| |00002660| 74 20 6b 6e 6f 77 20 73 | 69 7a 65 20 6f 66 20 73 |t know s|ize of s| |00002670| 74 72 75 63 74 20 2a 2f | 0d 09 09 67 65 74 49 6e |truct */|...getIn| |00002680| 66 6f 2e 76 65 72 73 69 | 6f 6e 20 3d 20 6b 50 53 |fo.versi|on = kPS| |00002690| 49 6e 66 6f 56 65 72 73 | 69 6f 6e 20 3b 0d 09 09 |InfoVers|ion ;...| |000026a0| 50 72 47 65 6e 65 72 61 | 6c 28 28 50 74 72 29 26 |PrGenera|l((Ptr)&| |000026b0| 67 65 74 49 6e 66 6f 29 | 3b 0d 09 09 2f 2a 20 68 |getInfo)|;.../* h| |000026c0| 65 72 65 20 77 65 20 63 | 61 6e 20 63 68 65 63 6b |ere we c|an check| |000026d0| 20 72 65 74 75 72 6e 65 | 64 20 76 65 72 73 69 6f | returne|d versio| |000026e0| 6e 20 61 67 61 69 6e 73 | 74 20 0d 09 09 09 77 68 |n agains|t ....wh| |000026f0| 61 74 20 77 65 20 65 78 | 70 65 63 74 20 2a 2f 09 |at we ex|pect */.| |00002700| 09 0d 09 09 69 66 20 28 | 67 65 74 49 6e 66 6f 2e |....if (|getInfo.| |00002710| 76 65 72 73 69 6f 6e 20 | 3e 3d 20 6b 50 53 49 6e |version |>= kPSIn| |00002720| 66 6f 56 65 72 73 69 6f | 6e 20 29 20 7b 0d 09 2f |foVersio|n ) {../| |00002730| 2a 20 75 73 61 67 65 20 | 6f 66 20 67 65 74 49 6e |* usage |of getIn| |00002740| 66 6f 2e 6c 65 76 65 6c | 2c 20 67 65 74 49 6e 66 |fo.level|, getInf| |00002750| 6f 2e 62 69 6e 61 72 79 | 2c 20 09 67 65 74 49 6e |o.binary|, .getIn| |00002760| 66 6f 2e 74 79 70 65 4f | 66 53 61 76 65 2c 20 67 |fo.typeO|fSave, g| |00002770| 65 74 49 6e 66 6f 2e 70 | 72 69 6e 74 54 6f 46 69 |etInfo.p|rintToFi| |00002780| 6c 65 20 67 6f 65 73 20 | 68 65 72 65 2a 2f 0d 09 |le goes |here*/..| |00002790| 09 7d 0d 09 09 2f 2a 20 | 6e 6f 77 20 74 65 6c 6c |.}.../* |now tell| |000027a0| 20 64 72 69 76 65 72 20 | 61 62 6f 75 74 20 6f 75 | driver |about ou| |000027b0| 72 20 69 6e 74 65 6e 74 | 69 6f 6e 73 20 2a 2f 0d |r intent|ions */.| |000027c0| 09 09 69 6e 74 65 6e 74 | 69 6f 6e 73 2e 69 4f 70 |..intent|ions.iOp| |000027d0| 43 6f 64 65 20 3d 20 50 | 53 49 6e 74 65 6e 74 69 |Code = P|SIntenti| |000027e0| 6f 6e 73 4f 70 3b 0d 09 | 09 69 6e 74 65 6e 74 69 |onsOp;..|.intenti| |000027f0| 6f 6e 73 2e 68 50 72 69 | 6e 74 20 3d 20 70 68 3b |ons.hPri|nt = ph;| |00002800| 0d 09 09 69 6e 74 65 6e | 74 69 6f 6e 73 2e 76 65 |...inten|tions.ve| |00002810| 72 73 69 6f 6e 20 3d 20 | 6b 50 53 49 6e 74 65 6e |rsion = |kPSInten| |00002820| 74 69 6f 6e 73 56 65 72 | 73 69 6f 6e 20 3b 0d 09 |tionsVer|sion ;..| |00002830| 09 0d 09 09 2f 2a 20 75 | 73 65 20 4c 65 76 65 6c |..../* u|se Level| |00002840| 32 20 61 6e 64 20 62 69 | 6e 61 72 79 20 6f 6e 6c |2 and bi|nary onl| |00002850| 79 20 69 66 20 73 75 70 | 70 6f 72 74 65 64 20 21 |y if sup|ported !| |00002860| 21 21 20 0d 09 09 09 74 | 68 69 73 20 63 6f 64 65 |!! ....t|his code| |00002870| 20 73 68 6f 75 6c 64 20 | 63 68 65 63 6b 20 74 68 | should |check th| |00002880| 65 20 72 65 73 75 74 6c | 73 20 6f 66 20 74 68 65 |e resutl|s of the| |00002890| 20 67 65 74 69 6e 66 6f | 20 09 09 09 62 65 66 6f | getinfo| ...befo| |000028a0| 72 65 20 73 65 74 74 69 | 6e 67 20 61 6e 64 20 75 |re setti|ng and u| |000028b0| 73 69 6e 67 20 74 68 65 | 73 65 20 66 69 65 6c 64 |sing the|se field| |000028c0| 73 21 21 21 09 09 09 2a | 2f 0d 0d 09 09 69 6e 74 |s!!!...*|/....int| |000028d0| 65 6e 74 69 6f 6e 73 2e | 6c 65 76 65 6c 20 3d 20 |entions.|level = | |000028e0| 4c 65 76 65 6c 32 3b 0d | 20 09 09 69 6e 74 65 6e |Level2;.| ..inten| |000028f0| 74 69 6f 6e 73 2e 62 69 | 6e 61 72 79 20 3d 20 74 |tions.bi|nary = t| |00002900| 72 75 65 3b 0d 09 09 50 | 72 47 65 6e 65 72 61 6c |rue;...P|rGeneral| |00002910| 28 28 50 74 72 29 26 69 | 6e 74 65 6e 74 69 6f 6e |((Ptr)&i|ntention| |00002920| 73 29 3b 0d 09 09 2f 2a | 20 72 65 73 74 20 6f 66 |s);.../*| rest of| |00002930| 20 70 72 69 6e 74 69 6e | 67 20 2a 2f 0d 09 7d 0d | printin|g */..}.| |00002940| 09 50 72 43 6c 6f 73 65 | 28 29 3b 0d 7d 0d 37 2e |.PrClose|();.}.7.| |00002950| 33 09 50 49 43 54 20 74 | 6f 20 45 50 53 20 63 6f |3.PICT t|o EPS co| |00002960| 6e 76 65 72 73 69 6f 6e | 0d 4d 61 6e 79 20 61 70 |nversion|.Many ap| |00002970| 70 6c 69 63 61 74 69 6f | 6e 20 70 72 6f 67 72 61 |plicatio|n progra| |00002980| 6d 73 20 77 69 73 68 20 | 74 6f 20 67 65 6e 65 72 |ms wish |to gener| |00002990| 61 74 65 20 74 68 65 69 | 72 20 6f 77 6e 20 50 6f |ate thei|r own Po| |000029a0| 73 74 53 63 72 69 70 74 | 20 6c 61 6e 67 75 61 67 |stScript| languag| |000029b0| 65 20 63 6f 64 65 20 66 | 6f 72 20 74 68 65 69 72 |e code f|or their| |000029c0| 20 6f 77 6e 20 69 6e 74 | 65 72 6e 61 6c 20 64 61 | own int|ernal da| |000029d0| 74 61 2e 20 54 68 65 73 | 65 20 70 72 6f 67 72 61 |ta. Thes|e progra| |000029e0| 6d 73 20 74 68 65 6d 73 | 65 6c 76 65 73 20 72 65 |ms thems|elves re| |000029f0| 71 75 69 72 65 20 74 68 | 65 20 63 6f 6e 76 65 72 |quire th|e conver| |00002a00| 73 69 6f 6e 20 6f 66 20 | 70 61 73 74 65 64 20 51 |sion of |pasted Q| |00002a10| 75 69 63 6b 44 72 61 77 | 20 70 69 63 74 75 72 65 |uickDraw| picture| |00002a20| 20 64 61 74 61 20 69 6e | 74 6f 20 50 6f 73 74 53 | data in|to PostS| |00002a30| 63 72 69 70 74 20 6c 61 | 6e 67 75 61 67 65 20 63 |cript la|nguage c| |00002a40| 6f 64 65 20 64 75 72 69 | 6e 67 20 70 72 69 6e 74 |ode duri|ng print| |00002a50| 69 6e 67 2e 20 54 6f 20 | 61 63 68 69 65 76 65 20 |ing. To |achieve | |00002a60| 74 68 65 20 62 65 73 74 | 20 70 6f 73 73 69 62 6c |the best| possibl| |00002a70| 65 20 72 65 73 75 6c 74 | 73 20 77 69 74 68 20 74 |e result|s with t| |00002a80| 68 65 20 66 65 77 65 73 | 74 20 63 6f 6e 66 6c 69 |he fewes|t confli| |00002a90| 63 74 73 20 62 65 74 77 | 65 65 6e 20 74 68 65 20 |cts betw|een the | |00002aa0| 76 61 72 69 6f 75 73 20 | 67 65 6e 65 72 61 74 6f |various |generato| |00002ab0| 72 73 20 6f 66 20 74 68 | 65 20 50 6f 73 74 53 63 |rs of th|e PostSc| |00002ac0| 72 69 70 74 20 63 6f 64 | 65 2c 20 50 53 57 72 69 |ript cod|e, PSWri| |00002ad0| 74 65 72 20 73 75 70 70 | 6f 72 74 73 20 74 68 65 |ter supp|orts the| |00002ae0| 20 61 62 69 6c 69 74 79 | 20 74 6f 20 63 6f 6e 76 | ability| to conv| |00002af0| 65 72 74 20 51 75 69 63 | 6b 44 72 61 77 20 70 69 |ert Quic|kDraw pi| |00002b00| 63 74 75 72 65 73 20 69 | 6e 74 6f 20 45 50 53 20 |ctures i|nto EPS | |00002b10| 66 69 6c 65 73 20 77 69 | 74 68 6f 75 74 20 74 68 |files wi|thout th| |00002b20| 65 20 61 73 73 6f 63 69 | 61 74 65 64 20 75 73 65 |e associ|ated use| |00002b30| 72 20 64 69 61 6c 6f 67 | 73 2e 20 54 68 69 73 20 |r dialog|s. This | |00002b40| 61 6c 6c 6f 77 73 20 61 | 6e 20 61 70 70 6c 69 63 |allows a|n applic| |00002b50| 61 74 69 6f 6e 20 74 6f | 20 64 6f 20 74 68 69 73 |ation to| do this| |00002b60| 20 63 6f 6e 76 65 72 73 | 69 6f 6e 20 66 6f 72 20 | convers|ion for | |00002b70| 61 6c 6c 20 69 74 73 20 | 70 69 63 74 75 72 65 73 |all its |pictures| |00002b80| 20 61 6e 64 20 6d 65 72 | 67 65 20 74 68 65 20 72 | and mer|ge the r| |00002b90| 65 73 75 6c 74 73 20 69 | 6e 74 6f 20 69 74 73 20 |esults i|nto its | |00002ba0| 61 70 70 6c 69 63 61 74 | 69 6f 6e 20 67 65 6e 65 |applicat|ion gene| |00002bb0| 72 61 74 65 64 20 70 72 | 69 6e 74 20 73 74 72 65 |rated pr|int stre| |00002bc0| 61 6d 2c 20 74 68 75 73 | 20 63 6f 6e 74 72 6f 6c |am, thus| control| |00002bd0| 6c 69 6e 67 20 61 6c 6c | 20 74 68 65 20 50 6f 73 |ling all| the Pos| |00002be0| 74 53 63 72 69 70 74 20 | 6d 65 6d 6f 72 79 20 6d |tScript |memory m| |00002bf0| 61 6e 61 67 65 6d 65 6e | 74 20 61 6e 64 20 6f 75 |anagemen|t and ou| |00002c00| 74 70 75 74 20 73 74 72 | 65 61 6d 20 77 69 74 68 |tput str|eam with| |00002c10| 6f 75 74 20 66 75 72 74 | 68 65 72 20 72 65 6c 69 |out furt|her reli| |00002c20| 61 6e 63 65 20 6f 6e 20 | 74 68 65 20 64 72 69 76 |ance on |the driv| |00002c30| 65 72 2e 0d 4f 6e 65 20 | 73 69 67 6e 69 66 69 63 |er..One |signific| |00002c40| 61 6e 74 20 72 65 73 74 | 72 69 63 74 69 6f 6e 20 |ant rest|riction | |00002c50| 69 73 20 74 68 61 74 20 | 61 6c 6c 20 50 49 43 54 |is that |all PICT| |00002c60| 20 74 6f 20 45 50 53 20 | 63 6f 6e 76 65 72 73 69 | to EPS |conversi| |00002c70| 6f 6e 73 20 6d 75 73 74 | 20 74 61 6b 65 20 70 6c |ons must| take pl| |00002c80| 61 63 65 20 77 69 74 68 | 69 6e 20 50 72 4f 70 65 |ace with|in PrOpe| |00002c90| 6e 2f 50 72 43 6c 6f 73 | 65 20 62 75 74 20 6f 75 |n/PrClos|e but ou| |00002ca0| 74 73 69 64 65 20 6f 66 | 20 61 20 70 72 69 6e 74 |tside of| a print| |00002cb0| 20 6a 6f 62 20 28 74 68 | 61 74 20 69 73 20 6f 75 | job (th|at is ou| |00002cc0| 74 73 69 64 65 20 6f 66 | 20 50 72 4f 70 65 6e 44 |tside of| PrOpenD| |00002cd0| 6f 63 2f 50 72 43 6c 6f | 73 65 44 6f 63 29 2e 20 |oc/PrClo|seDoc). | |00002ce0| 54 68 75 73 20 74 68 65 | 20 6f 75 74 70 75 74 20 |Thus the| output | |00002cf0| 66 72 6f 6d 20 74 68 65 | 20 63 6f 6e 76 65 72 73 |from the| convers| |00002d00| 69 6f 6e 20 63 61 6e 20 | 6e 6f 74 20 64 69 72 65 |ion can |not dire| |00002d10| 63 74 6c 79 20 62 65 20 | 70 6c 61 63 65 64 20 69 |ctly be |placed i| |00002d20| 6e 20 74 68 65 20 6a 6f | 62 20 73 74 72 65 61 6d |n the jo|b stream| |00002d30| 20 64 69 72 65 63 74 6c | 79 20 62 75 74 20 6d 75 | directl|y but mu| |00002d40| 73 74 20 62 65 20 73 74 | 6f 72 65 64 20 70 72 69 |st be st|ored pri| |00002d50| 6f 72 20 74 6f 20 74 68 | 65 20 61 63 74 75 61 6c |or to th|e actual| |00002d60| 20 70 72 69 6e 74 20 6a | 6f 62 20 69 74 73 65 6c | print j|ob itsel| |00002d70| 66 20 61 6e 64 20 70 6c | 61 63 65 64 20 69 6e 74 |f and pl|aced int| |00002d80| 6f 20 74 68 65 20 73 74 | 72 65 61 6d 20 75 73 69 |o the st|ream usi| |00002d90| 6e 67 20 74 68 65 20 73 | 74 61 6e 64 61 72 64 20 |ng the s|tandard | |00002da0| 50 6f 73 74 53 63 72 69 | 70 74 20 50 69 63 43 6f |PostScri|pt PicCo| |00002db0| 6d 6d 65 6e 74 73 20 6f | 72 20 74 68 65 20 50 6f |mments o|r the Po| |00002dc0| 73 74 53 63 72 69 70 74 | 46 69 6c 65 20 50 69 63 |stScript|File Pic| |00002dd0| 43 6f 6d 6d 65 6e 74 2e | 0d 54 68 65 20 69 6e 74 |Comment.|.The int| |00002de0| 65 72 66 61 63 65 20 75 | 73 65 64 20 74 6f 20 61 |erface u|sed to a| |00002df0| 63 63 6f 6d 70 6c 69 73 | 68 20 74 68 69 73 20 69 |ccomplis|h this i| |00002e00| 73 20 61 20 50 72 47 65 | 6e 65 72 61 6c 20 63 61 |s a PrGe|neral ca| |00002e10| 6c 6c 20 77 69 74 68 20 | 61 70 70 72 6f 70 72 69 |ll with |appropri| |00002e20| 61 74 65 20 64 61 74 61 | 20 69 6e 20 74 68 65 20 |ate data| in the | |00002e30| 73 74 72 75 63 74 75 72 | 65 20 70 61 73 73 65 64 |structur|e passed| |00002e40| 20 69 6e 2e 20 54 68 65 | 20 6f 70 63 6f 64 65 20 | in. The| opcode | |00002e50| 75 73 65 64 20 69 73 20 | 50 53 41 64 6f 62 65 4f |used is |PSAdobeO| |00002e60| 70 20 28 64 65 63 69 6d | 61 6c 20 31 34 29 2e 20 |p (decim|al 14). | |00002e70| 54 68 65 20 64 61 74 61 | 20 70 61 73 73 65 64 20 |The data| passed | |00002e80| 69 6e 20 69 6e 63 6c 75 | 64 65 73 20 61 20 73 75 |in inclu|des a su| |00002e90| 62 2d 73 65 6c 65 63 74 | 6f 72 20 74 6f 20 64 65 |b-select|or to de| |00002ea0| 74 65 72 6d 69 6e 65 20 | 77 68 69 63 68 20 76 65 |termine |which ve| |00002eb0| 72 73 69 6f 6e 20 6f 66 | 20 50 53 41 64 6f 62 65 |rsion of| PSAdobe| |00002ec0| 4f 70 20 69 73 20 74 6f | 20 62 65 20 75 73 65 64 |Op is to| be used| |00002ed0| 2e 20 41 20 73 75 62 73 | 65 6c 65 63 74 6f 72 20 |. A subs|elector | |00002ee0| 76 61 6c 75 65 20 6f 66 | 20 50 53 70 69 63 74 32 |value of| PSpict2| |00002ef0| 65 70 73 20 28 64 65 63 | 69 6d 61 6c 20 20 31 29 |eps (dec|imal 1)| |00002f00| 20 69 6e 64 69 63 61 74 | 65 73 20 74 68 69 73 20 | indicat|es this | |00002f10| 50 72 47 65 6e 65 72 61 | 6c 20 63 61 6c 6c 20 69 |PrGenera|l call i| |00002f20| 73 20 66 6f 72 20 74 68 | 65 20 50 69 63 74 20 74 |s for th|e Pict t| |00002f30| 6f 20 45 50 53 20 63 6f | 6e 76 65 72 73 69 6f 6e |o EPS co|nversion| |00002f40| 2e 0d 54 68 69 73 20 63 | 61 6c 6c 20 69 73 20 75 |..This c|all is u| |00002f50| 73 65 64 20 62 79 20 62 | 75 69 6c 64 69 6e 67 20 |sed by b|uilding | |00002f60| 75 70 20 61 20 54 50 53 | 41 64 6f 62 65 20 64 61 |up a TPS|Adobe da| |00002f70| 74 61 20 73 74 72 75 63 | 74 75 72 65 20 77 68 69 |ta struc|ture whi| |00002f80| 63 68 20 68 61 73 20 74 | 68 65 20 61 70 70 72 6f |ch has t|he appro| |00002f90| 70 72 69 61 74 65 20 76 | 61 6c 75 65 73 20 73 65 |priate v|alues se| |00002fa0| 74 2e 20 54 68 65 20 66 | 69 65 6c 64 73 20 6f 66 |t. The f|ields of| |00002fb0| 20 74 68 65 20 64 61 74 | 61 20 73 74 72 75 63 74 | the dat|a struct| |00002fc0| 75 72 65 20 70 61 73 73 | 65 64 20 74 6f 20 50 72 |ure pass|ed to Pr| |00002fd0| 47 65 6e 65 72 61 6c 20 | 61 72 65 0d 69 4f 70 43 |General |are.iOpC| |00002fe0| 6f 64 65 09 73 65 74 20 | 74 6f 20 50 53 41 64 6f |ode.set |to PSAdo| |00002ff0| 62 65 4f 70 20 66 6f 72 | 20 74 68 69 73 20 63 61 |beOp for| this ca| |00003000| 6c 6c 0d 69 45 72 72 6f | 72 09 73 68 6f 72 74 20 |ll.iErro|r.short | |00003010| 72 65 74 75 72 6e 65 64 | 20 65 72 72 6f 72 20 63 |returned| error c| |00003020| 6f 64 65 0d 6c 52 65 73 | 65 72 76 65 64 09 72 65 |ode.lRes|erved.re| |00003030| 73 65 72 76 65 64 20 6c | 6f 6e 67 20 77 6f 72 64 |served l|ong word| |00003040| 20 73 68 6f 75 6c 64 20 | 62 65 20 73 65 74 20 74 | should |be set t| |00003050| 6f 20 30 20 69 6e 20 74 | 68 69 73 20 76 65 72 73 |o 0 in t|his vers| |00003060| 69 6f 6e 0d 73 75 62 49 | 64 09 73 65 74 20 74 6f |ion.subI|d.set to| |00003070| 20 50 53 70 69 63 74 32 | 65 70 73 20 66 6f 72 20 | PSpict2|eps for | |00003080| 74 68 69 73 20 63 61 6c | 6c 0d 76 65 72 73 69 6f |this cal|l.versio| |00003090| 6e 09 73 65 74 20 74 6f | 20 6b 50 53 41 64 6f 62 |n.set to| kPSAdob| |000030a0| 65 56 65 72 73 69 6f 6e | 20 66 6f 72 20 74 68 69 |eVersion| for thi| |000030b0| 73 20 76 65 72 73 69 6f | 6e 20 6f 66 20 74 68 65 |s versio|n of the| |000030c0| 20 69 6e 74 65 72 66 61 | 63 65 0d 6f 70 09 70 6f | interfa|ce.op.po| |000030d0| 69 6e 74 65 72 20 74 6f | 20 63 61 6c 6c 62 61 63 |inter to| callbac| |000030e0| 6b 20 66 75 6e 63 74 69 | 6f 6e 20 77 68 69 63 68 |k functi|on which| |000030f0| 20 72 65 63 65 69 76 65 | 73 20 74 68 65 20 45 50 | receive|s the EP| |00003100| 53 20 64 61 74 61 0d 62 | 69 6e 61 72 79 09 62 69 |S data.b|inary.bi| |00003110| 74 20 66 69 65 6c 64 20 | 73 65 74 20 74 6f 20 74 |t field |set to t| |00003120| 72 75 65 20 74 6f 20 72 | 65 71 75 65 73 74 20 62 |rue to r|equest b| |00003130| 69 6e 61 72 79 20 64 61 | 74 61 2c 20 66 61 6c 73 |inary da|ta, fals| |00003140| 65 20 72 65 71 75 65 73 | 74 73 20 74 68 61 74 20 |e reques|ts that | |00003150| 41 53 43 49 49 20 64 61 | 74 61 20 62 65 20 67 65 |ASCII da|ta be ge| |00003160| 6e 65 72 61 74 65 64 2e | 20 54 68 69 73 20 69 73 |nerated.| This is| |00003170| 20 65 71 75 69 76 61 6c | 65 6e 74 20 74 6f 20 74 | equival|ent to t| |00003180| 68 65 20 41 53 43 49 49 | 2f 20 42 69 6e 61 72 79 |he ASCII|/ Binary| |00003190| 20 62 75 74 74 6f 6e 73 | 20 69 6e 20 74 68 65 20 | buttons| in the | |000031a0| 73 61 76 65 20 74 6f 20 | 64 69 73 6b 20 64 69 61 |save to |disk dia| |000031b0| 6c 6f 67 2e 0d 6c 65 76 | 65 6c 32 09 62 69 74 20 |log..lev|el2.bit | |000031c0| 66 69 65 6c 64 20 73 65 | 74 20 74 6f 20 74 72 75 |field se|t to tru| |000031d0| 65 20 74 6f 20 72 65 71 | 75 65 73 74 20 6f 75 74 |e to req|uest out| |000031e0| 70 75 74 20 66 6f 72 20 | 6c 65 76 65 6c 20 32 20 |put for |level 2 | |000031f0| 6f 6e 6c 79 2c 20 66 61 | 6c 73 65 20 72 65 71 75 |only, fa|lse requ| |00003200| 65 73 74 73 20 4c 65 76 | 65 6c 20 31 20 43 6f 6d |ests Lev|el 1 Com| |00003210| 70 61 74 69 62 6c 65 20 | 64 61 74 61 2e 20 54 68 |patible |data. Th| |00003220| 69 73 20 69 73 20 65 71 | 75 69 76 61 6c 65 6e 74 |is is eq|uivalent| |00003230| 20 74 6f 20 74 68 65 20 | 4c 65 76 65 6c 20 31 20 | to the |Level 1 | |00003240| 43 6f 6d 70 61 74 69 62 | 6c 65 2f 4c 65 76 65 6c |Compatib|le/Level| |00003250| 20 32 20 6f 6e 6c 79 20 | 72 61 64 69 6f 20 62 75 | 2 only |radio bu| |00003260| 74 74 6f 6e 73 20 69 6e | 20 74 68 65 20 73 61 76 |ttons in| the sav| |00003270| 65 20 74 6f 20 64 69 73 | 6b 20 64 69 61 6c 6f 67 |e to dis|k dialog| |00003280| 2e 0d 72 65 73 65 72 76 | 65 64 09 72 65 73 65 72 |..reserv|ed.reser| |00003290| 76 65 64 20 62 69 74 73 | 20 66 6f 72 20 66 75 74 |ved bits| for fut| |000032a0| 75 72 65 20 65 78 70 61 | 6e 73 69 6f 6e 2e 20 53 |ure expa|nsion. S| |000032b0| 68 6f 75 6c 64 20 62 65 | 20 73 65 74 20 74 6f 20 |hould be| set to | |000032c0| 30 2e 0d 69 73 2e 70 69 | 63 74 32 65 70 73 2e 70 |0..is.pi|ct2eps.p| |000032d0| 69 63 74 09 68 61 6e 64 | 6c 65 20 74 6f 20 74 68 |ict.hand|le to th| |000032e0| 65 20 70 69 63 74 75 72 | 65 20 74 6f 20 62 65 20 |e pictur|e to be | |000032f0| 63 6f 6e 76 65 72 74 65 | 64 0d 69 73 2e 70 69 63 |converte|d.is.pic| |00003300| 74 32 65 70 73 2e 67 65 | 74 50 69 63 50 72 6f 63 |t2eps.ge|tPicProc| |00003310| 0d 49 66 20 74 68 69 73 | 20 66 69 65 6c 64 20 69 |.If this| field i| |00003320| 73 20 6e 6f 6e 2d 6e 75 | 6c 6c 2c 20 69 74 20 69 |s non-nu|ll, it i| |00003330| 73 20 75 73 65 64 20 61 | 73 20 61 20 70 6f 69 6e |s used a|s a poin| |00003340| 74 65 72 20 74 6f 20 61 | 20 47 65 74 50 69 63 20 |ter to a| GetPic | |00003350| 66 75 6e 63 74 69 6f 6e | 20 74 68 61 74 20 77 69 |function| that wi| |00003360| 6c 6c 20 62 65 20 75 73 | 65 64 20 69 6e 73 74 65 |ll be us|ed inste| |00003370| 61 64 20 6f 66 20 74 68 | 65 20 73 74 61 6e 64 61 |ad of th|e standa| |00003380| 72 64 20 47 65 74 50 69 | 63 20 70 72 6f 63 65 64 |rd GetPi|c proced| |00003390| 75 72 65 2e 20 50 53 57 | 72 69 74 65 72 20 77 69 |ure. PSW|riter wi| |000033a0| 6c 6c 2c 20 66 6f 72 20 | 70 75 72 70 6f 73 65 73 |ll, for |purposes| |000033b0| 20 6f 66 20 63 6f 6e 76 | 65 72 74 69 6e 67 20 74 | of conv|erting t| |000033c0| 68 65 20 50 49 43 54 20 | 74 6f 20 45 50 53 2c 20 |he PICT |to EPS, | |000033d0| 66 69 72 73 74 20 72 65 | 70 6c 61 63 65 20 74 68 |first re|place th| |000033e0| 65 20 73 74 61 6e 64 61 | 72 64 20 47 65 74 50 69 |e standa|rd GetPi| |000033f0| 63 20 62 6f 74 74 6c 65 | 6e 65 63 6b 20 77 69 74 |c bottle|neck wit| |00003400| 68 20 74 68 65 20 73 75 | 70 70 6c 69 65 64 20 66 |h the su|pplied f| |00003410| 75 6e 63 74 69 6f 6e 20 | 62 65 66 6f 72 65 20 63 |unction |before c| |00003420| 61 6c 6c 69 6e 67 20 44 | 72 61 77 50 69 63 74 75 |alling D|rawPictu| |00003430| 72 65 2e 20 54 68 69 73 | 20 63 61 6e 20 62 65 20 |re. This| can be | |00003440| 75 73 65 64 20 69 66 20 | 74 68 65 20 50 49 43 54 |used if |the PICT| |00003450| 20 74 6f 20 62 65 20 63 | 6f 6e 76 65 72 74 65 64 | to be c|onverted| |00003460| 20 69 73 20 73 74 6f 72 | 65 64 20 6f 6e 20 64 69 | is stor|ed on di| |00003470| 73 6b 2e 20 53 65 65 20 | 73 65 63 74 69 6f 6e 73 |sk. See |sections| |00003480| 20 69 6e 20 49 6e 73 69 | 64 65 20 4d 61 63 20 56 | in Insi|de Mac V| |00003490| 6f 6c 75 6d 65 20 49 20 | 61 6e 64 20 56 20 6f 6e |olume I |and V on| |000034a0| 20 68 6f 77 20 74 6f 20 | 64 72 61 77 20 51 75 69 | how to |draw Qui| |000034b0| 63 6b 44 72 61 77 20 70 | 69 63 74 75 72 65 73 20 |ckDraw p|ictures | |000034c0| 66 72 6f 6d 20 64 69 73 | 6b 2e 2e 0d 69 73 2e 70 |from dis|k...is.p| |000034d0| 69 63 74 32 65 70 73 2e | 69 6e 63 6c 75 64 65 46 |ict2eps.|includeF| |000034e0| 6f 6e 74 73 20 0d 64 65 | 74 65 72 6d 69 6e 65 73 |onts .de|termines| |000034f0| 20 77 68 65 74 68 65 72 | 20 74 6f 20 69 6e 63 6c | whether| to incl| |00003500| 75 64 65 20 50 6f 73 74 | 53 63 72 69 70 74 20 66 |ude Post|Script f| |00003510| 6f 6e 74 73 20 69 6e 20 | 74 68 65 20 63 6f 6e 76 |onts in |the conv| |00003520| 65 72 74 65 64 20 45 50 | 53 20 66 69 6c 65 2e 20 |erted EP|S file. | |00003530| 56 61 6c 69 64 20 76 61 | 6c 75 65 73 20 61 72 65 |Valid va|lues are| |00003540| 20 69 6e 63 6c 75 64 65 | 4e 6f 46 6f 6e 74 73 2c | include|NoFonts,| |00003550| 20 69 6e 63 6c 75 64 65 | 41 6c 6c 46 6f 6e 74 73 | include|AllFonts| |00003560| 20 61 6e 64 20 69 6e 63 | 6c 75 64 65 41 6c 6c 42 | and inc|ludeAllB| |00003570| 75 74 31 33 2e 20 54 68 | 65 73 65 20 76 61 6c 75 |ut13. Th|ese valu| |00003580| 65 73 20 63 6f 72 72 65 | 73 70 6f 6e 64 20 74 6f |es corre|spond to| |00003590| 20 74 68 6f 73 65 20 6d | 65 6e 75 20 69 74 65 6d | those m|enu item| |000035a0| 73 20 69 6e 20 74 68 65 | 20 73 61 76 65 20 74 6f |s in the| save to| |000035b0| 20 64 69 73 6b 20 64 69 | 61 6c 6f 67 2e 20 4e 6f | disk di|alog. No| |000035c0| 74 65 20 74 68 61 74 20 | 66 6f 6e 74 73 20 77 68 |te that |fonts wh| |000035d0| 69 63 68 20 61 72 65 20 | 4d 61 63 69 6e 74 6f 73 |ich are |Macintos| |000035e0| 68 20 62 69 74 6d 61 70 | 20 66 6f 6e 74 73 20 61 |h bitmap| fonts a| |000035f0| 72 65 20 63 6f 6e 76 65 | 72 74 65 64 20 69 6e 74 |re conve|rted int| |00003600| 6f 20 61 20 54 79 70 65 | 20 33 20 66 6f 6e 74 20 |o a Type| 3 font | |00003610| 61 6e 64 20 69 6e 63 6c | 75 64 65 64 20 69 6e 20 |and incl|uded in | |00003620| 74 68 65 20 73 74 72 65 | 61 6d 20 72 65 67 61 72 |the stre|am regar| |00003630| 64 6c 65 73 73 20 6f 66 | 20 74 68 65 20 76 61 6c |dless of| the val| |00003640| 75 65 20 6f 66 20 69 73 | 20 66 69 65 6c 64 2c 20 |ue of is| field, | |00003650| 65 78 61 63 74 6c 79 20 | 61 73 20 74 68 65 79 20 |exactly |as they | |00003660| 61 72 65 20 64 75 72 69 | 6e 67 20 73 61 76 65 20 |are duri|ng save | |00003670| 74 6f 20 64 69 73 6b 2e | 0d 69 73 2e 70 69 63 74 |to disk.|.is.pict| |00003680| 32 65 70 73 2e 74 69 74 | 6c 65 09 61 20 70 61 73 |2eps.tit|le.a pas| |00003690| 63 61 6c 20 73 74 72 69 | 6e 67 20 74 6f 20 75 73 |cal stri|ng to us| |000036a0| 65 20 66 6f 72 20 74 68 | 65 20 74 69 74 6c 65 20 |e for th|e title | |000036b0| 66 69 65 6c 64 20 6f 66 | 20 74 68 65 20 63 72 65 |field of| the cre| |000036c0| 61 74 65 64 20 45 50 53 | 20 66 69 6c 65 2e 20 0d |ated EPS| file. .| |000036d0| 69 73 2e 70 69 63 74 32 | 65 70 73 2e 75 6e 6c 69 |is.pict2|eps.unli| |000036e0| 6d 69 74 65 64 46 6f 6e | 74 73 20 0d 61 20 62 69 |mitedFon|ts .a bi| |000036f0| 74 20 66 69 65 6c 64 20 | 77 68 69 63 68 2c 20 77 |t field |which, w| |00003700| 68 65 6e 20 74 72 75 65 | 2c 20 69 73 20 65 71 75 |hen true|, is equ| |00003710| 69 76 61 6c 65 6e 74 20 | 74 6f 20 63 68 65 63 6b |ivalent |to check| |00003720| 69 6e 67 20 74 68 65 20 | 62 6f 78 20 69 6e 20 74 |ing the |box in t| |00003730| 68 65 20 70 61 67 65 20 | 73 65 74 75 70 20 6f 70 |he page |setup op| |00003740| 74 69 6f 6e 73 20 64 69 | 61 6c 6f 67 20 66 6f 72 |tions di|alog for| |00003750| 20 55 6e 6c 69 6d 69 74 | 65 64 20 44 6f 77 6e 6c | Unlimit|ed Downl| |00003760| 6f 61 64 61 62 6c 65 20 | 46 6f 6e 74 73 2e 0d 69 |oadable |Fonts..i| |00003770| 73 2e 70 69 63 74 32 65 | 70 73 2e 74 65 78 74 53 |s.pict2e|ps.textS| |00003780| 6d 6f 6f 74 68 69 6e 67 | 20 20 0d 61 20 62 69 74 |moothing| .a bit| |00003790| 20 66 69 65 6c 64 20 77 | 68 69 63 68 2c 20 77 68 | field w|hich, wh| |000037a0| 65 6e 20 74 72 75 65 2c | 20 69 73 20 65 71 75 69 |en true,| is equi| |000037b0| 76 61 6c 65 6e 74 20 74 | 6f 20 63 68 65 63 6b 69 |valent t|o checki| |000037c0| 6e 67 20 74 68 65 20 62 | 6f 78 20 69 6e 20 74 68 |ng the b|ox in th| |000037d0| 65 20 70 61 67 65 20 73 | 65 74 75 70 20 6f 70 74 |e page s|etup opt| |000037e0| 69 6f 6e 73 20 64 69 61 | 6c 6f 67 20 66 6f 72 20 |ions dia|log for | |000037f0| 54 65 78 74 20 53 6d 6f | 6f 74 68 69 6e 67 2e 0d |Text Smo|othing..| |00003800| 69 73 2e 70 69 63 74 32 | 65 70 73 2e 67 72 61 70 |is.pict2|eps.grap| |00003810| 68 69 63 73 53 6d 6f 6f | 74 68 69 6e 67 20 20 0d |hicsSmoo|thing .| |00003820| 61 20 62 69 74 20 66 69 | 65 6c 64 20 77 68 69 63 |a bit fi|eld whic| |00003830| 68 2c 20 77 68 65 6e 20 | 74 72 75 65 2c 20 69 73 |h, when |true, is| |00003840| 20 65 71 75 69 76 61 6c | 65 6e 74 20 74 6f 20 63 | equival|ent to c| |00003850| 68 65 63 6b 69 6e 67 20 | 74 68 65 20 62 6f 78 20 |hecking |the box | |00003860| 69 6e 20 74 68 65 20 70 | 61 67 65 20 73 65 74 75 |in the p|age setu| |00003870| 70 20 6f 70 74 69 6f 6e | 73 20 64 69 61 6c 6f 67 |p option|s dialog| |00003880| 20 66 6f 72 20 47 72 61 | 70 68 69 63 73 20 53 6d | for Gra|phics Sm| |00003890| 6f 6f 74 68 69 6e 67 2e | 0d 69 73 2e 70 69 63 74 |oothing.|.is.pict| |000038a0| 32 65 70 73 2e 63 6f 6c | 6f 72 20 3d 20 6b 43 6f |2eps.col|or = kCo| |000038b0| 6c 6f 72 3b 20 0d 61 20 | 62 69 74 20 66 69 65 6c |lor; .a |bit fiel| |000038c0| 64 20 63 6f 72 72 65 73 | 70 6f 6e 64 69 6e 67 20 |d corres|ponding | |000038d0| 74 6f 20 74 68 65 20 63 | 6f 6c 6f 72 20 73 65 74 |to the c|olor set| |000038e0| 74 69 6e 67 73 20 70 6f | 70 75 70 20 6d 65 6e 75 |tings po|pup menu| |000038f0| 20 69 6e 20 74 68 65 20 | 50 72 69 6e 74 20 4f 70 | in the |Print Op| |00003900| 74 69 6f 6e 73 20 64 69 | 61 6c 6f 67 2e 20 56 61 |tions di|alog. Va| |00003910| 6c 75 65 73 20 61 72 65 | 20 6b 42 6c 61 63 6b 41 |lues are| kBlackA| |00003920| 6e 64 57 68 69 74 65 2c | 20 20 6b 43 6f 6c 6f 72 |ndWhite,| kColor| |00003930| 2c 20 61 6e 64 20 6b 43 | 61 6c 69 62 72 61 74 65 |, and kC|alibrate| |00003940| 64 43 6f 6c 6f 72 2e 0d | 69 73 2e 70 69 63 74 32 |dColor..|is.pict2| |00003950| 65 70 73 2e 66 6f 6e 74 | 53 75 62 73 74 69 74 75 |eps.font|Substitu| |00003960| 74 69 6f 6e 20 20 0d 61 | 20 62 69 74 20 66 69 65 |tion .a| bit fie| |00003970| 6c 64 20 77 68 69 63 68 | 2c 20 77 68 65 6e 20 74 |ld which|, when t| |00003980| 72 75 65 2c 20 69 73 20 | 65 71 75 69 76 61 6c 65 |rue, is |equivale| |00003990| 6e 74 20 74 6f 20 63 68 | 65 63 6b 69 6e 67 20 74 |nt to ch|ecking t| |000039a0| 68 65 20 62 6f 78 20 69 | 6e 20 74 68 65 20 70 61 |he box i|n the pa| |000039b0| 67 65 20 73 65 74 75 70 | 20 6f 70 74 69 6f 6e 73 |ge setup| options| |000039c0| 20 64 69 61 6c 6f 67 20 | 66 6f 72 20 53 75 62 73 | dialog |for Subs| |000039d0| 74 69 74 75 74 65 20 46 | 6f 6e 74 73 2e 0d 69 73 |titute F|onts..is| |000039e0| 2e 70 69 63 74 32 65 70 | 73 2e 72 65 73 65 72 76 |.pict2ep|s.reserv| |000039f0| 65 64 20 0d 72 65 73 65 | 72 76 65 64 20 62 69 74 |ed .rese|rved bit| |00003a00| 73 20 77 68 69 63 68 20 | 73 68 6f 75 6c 64 20 62 |s which |should b| |00003a10| 65 20 73 65 74 20 74 6f | 20 7a 65 72 6f 2e 0d 0d |e set to| zero...| |00003a20| 54 68 65 20 6f 70 20 66 | 69 65 6c 64 20 6f 66 20 |The op f|ield of | |00003a30| 74 68 65 20 69 6e 70 75 | 74 20 64 61 74 61 20 74 |the inpu|t data t| |00003a40| 6f 20 50 72 47 65 6e 65 | 72 61 6c 20 66 6f 72 20 |o PrGene|ral for | |00003a50| 74 68 69 73 20 63 61 6c | 6c 20 69 73 20 61 20 70 |this cal|l is a p| |00003a60| 6f 69 6e 74 65 72 20 74 | 6f 20 74 68 65 20 61 70 |ointer t|o the ap| |00003a70| 70 6c 69 63 61 74 69 6f | 6e 20 70 72 6f 76 69 64 |plicatio|n provid| |00003a80| 65 64 20 63 61 6c 6c 62 | 61 63 6b 20 66 75 6e 63 |ed callb|ack func| |00003a90| 74 69 6f 6e 20 77 68 69 | 63 68 20 77 69 6c 6c 20 |tion whi|ch will | |00003aa0| 72 65 63 65 69 76 65 20 | 74 68 65 20 50 6f 73 74 |receive |the Post| |00003ab0| 53 63 72 69 70 74 20 64 | 61 74 61 20 73 74 72 65 |Script d|ata stre| |00003ac0| 61 6d 20 66 72 6f 6d 20 | 50 53 57 72 69 74 65 72 |am from |PSWriter| |00003ad0| 20 64 75 72 69 6e 67 20 | 74 68 65 20 63 6f 6e 76 | during |the conv| |00003ae0| 65 72 73 69 6f 6e 20 74 | 6f 20 61 6e 20 45 50 53 |ersion t|o an EPS| |00003af0| 20 66 69 6c 65 2e 20 54 | 68 65 20 66 75 6e 63 74 | file. T|he funct| |00003b00| 69 6f 6e 20 64 65 63 6c | 61 72 61 74 69 6f 6e 20 |ion decl|aration | |00003b10| 66 6f 72 20 74 68 69 73 | 20 63 61 6c 6c 62 61 63 |for this| callbac| |00003b20| 6b 20 66 75 6e 63 74 69 | 6f 6e 20 69 73 3a 0d 73 |k functi|on is:.s| |00003b30| 74 61 74 69 63 20 4f 53 | 45 72 72 20 63 6f 6d 6d |tatic OS|Err comm| |00003b40| 4f 75 74 28 50 74 72 20 | 62 75 66 66 65 72 2c 20 |Out(Ptr |buffer, | |00003b50| 6c 6f 6e 67 20 6e 42 79 | 74 65 73 29 3b 0d 50 53 |long nBy|tes);.PS| |00003b60| 57 72 69 74 65 72 20 70 | 72 6f 76 69 64 65 73 20 |Writer p|rovides | |00003b70| 6e 6f 20 62 75 66 66 65 | 72 69 6e 67 20 69 6e 74 |no buffe|ring int| |00003b80| 6f 20 74 68 65 20 6f 75 | 74 70 75 74 20 70 72 6f |o the ou|tput pro| |00003b90| 63 65 64 75 72 65 2e 20 | 53 69 6e 63 65 20 50 53 |cedure. |Since PS| |00003ba0| 57 72 69 74 65 72 20 77 | 72 69 74 65 73 20 6f 75 |Writer w|rites ou| |00003bb0| 74 20 69 74 73 20 64 61 | 74 61 20 74 6f 20 74 68 |t its da|ta to th| |00003bc0| 69 73 20 70 72 6f 63 65 | 64 75 72 65 20 69 6e 20 |is proce|dure in | |00003bd0| 6c 6f 74 73 20 6f 66 20 | 76 65 72 79 20 73 6d 61 |lots of |very sma| |00003be0| 6c 6c 20 70 69 65 63 65 | 73 2c 20 69 74 20 69 73 |ll piece|s, it is| |00003bf0| 20 73 74 72 6f 6e 67 6c | 79 20 72 65 6f 6d 6d 65 | strongl|y reomme| |00003c00| 6e 64 65 64 20 74 68 61 | 74 20 74 68 65 20 61 70 |nded tha|t the ap| |00003c10| 70 6c 69 63 61 74 69 6f | 6e 20 70 72 6f 76 69 64 |plicatio|n provid| |00003c20| 65 20 62 75 66 66 65 72 | 69 6e 67 20 66 6f 72 20 |e buffer|ing for | |00003c30| 74 68 65 20 64 61 74 61 | 20 61 73 20 69 74 20 69 |the data| as it i| |00003c40| 73 20 63 61 6c 6c 65 64 | 20 62 79 20 74 68 65 20 |s called| by the | |00003c50| 64 72 69 76 65 72 2e 20 | 0d 37 2e 34 09 70 6f 73 |driver. |.7.4.pos| |00003c60| 74 73 63 72 69 70 74 20 | 61 6e 64 20 74 72 75 65 |tscript |and true| |00003c70| 74 79 70 65 20 66 6f 6e | 74 20 6f 75 74 70 75 74 |type fon|t output| |00003c80| 0d 41 73 20 64 69 73 63 | 75 73 73 65 64 20 66 6f |.As disc|ussed fo| |00003c90| 72 20 74 68 65 20 50 49 | 43 54 20 74 6f 20 45 50 |r the PI|CT to EP| |00003ca0| 53 20 63 6f 6e 76 65 72 | 73 69 6f 6e 20 64 69 73 |S conver|sion dis| |00003cb0| 63 75 73 73 69 6f 6e 2c | 20 73 6f 6d 65 20 61 70 |cussion,| some ap| |00003cc0| 70 6c 69 63 61 74 69 6f | 6e 20 70 72 6f 67 72 61 |plicatio|n progra| |00003cd0| 6d 73 20 77 69 73 68 20 | 74 6f 20 67 65 6e 65 72 |ms wish |to gener| |00003ce0| 61 74 65 20 74 68 65 69 | 72 20 6f 77 6e 20 50 6f |ate thei|r own Po| |00003cf0| 73 74 53 63 72 69 70 74 | 20 6c 61 6e 67 75 61 67 |stScript| languag| |00003d00| 65 20 63 6f 64 65 20 66 | 6f 72 20 74 68 65 69 72 |e code f|or their| |00003d10| 20 6f 77 6e 20 69 6e 74 | 65 72 6e 61 6c 20 64 61 | own int|ernal da| |00003d20| 74 61 2e 20 54 68 65 73 | 65 20 61 70 70 6c 69 63 |ta. Thes|e applic| |00003d30| 61 74 69 6f 6e 20 70 72 | 6f 67 72 61 6d 73 20 6d |ation pr|ograms m| |00003d40| 61 79 20 77 69 73 68 20 | 74 6f 20 68 61 76 65 20 |ay wish |to have | |00003d50| 74 68 65 20 64 72 69 76 | 65 72 20 64 6f 77 6e 6c |the driv|er downl| |00003d60| 6f 61 64 20 66 6f 6e 74 | 73 20 74 6f 20 74 68 65 |oad font|s to the| |00003d70| 20 70 72 69 6e 74 65 72 | 2e 20 50 53 57 72 69 74 | printer|. PSWrit| |00003d80| 65 72 20 70 72 6f 76 69 | 64 65 73 20 61 6e 20 69 |er provi|des an i| |00003d90| 6e 74 65 72 66 61 63 65 | 20 74 6f 20 67 61 74 68 |nterface| to gath| |00003da0| 65 72 20 66 6f 6e 74 20 | 64 61 74 61 20 66 72 6f |er font |data fro| |00003db0| 6d 20 74 68 65 20 68 6f | 73 74 20 61 6e 64 20 72 |m the ho|st and r| |00003dc0| 65 74 75 72 6e 20 69 74 | 20 74 6f 20 74 68 65 20 |eturn it| to the | |00003dd0| 63 6c 69 65 6e 74 20 61 | 70 70 6c 69 63 61 74 69 |client a|pplicati| |00003de0| 6f 6e 20 70 72 6f 67 72 | 61 6d 20 66 6f 72 20 69 |on progr|am for i| |00003df0| 74 73 20 6e 65 65 64 73 | 2e 0d 54 68 65 20 69 6e |ts needs|..The in| |00003e00| 74 65 72 66 61 63 65 20 | 75 73 65 64 20 74 6f 20 |terface |used to | |00003e10| 61 63 63 6f 6d 70 6c 69 | 73 68 20 74 68 69 73 20 |accompli|sh this | |00003e20| 69 73 20 61 20 50 72 47 | 65 6e 65 72 61 6c 20 63 |is a PrG|eneral c| |00003e30| 61 6c 6c 20 77 69 74 68 | 20 61 70 70 72 6f 70 72 |all with| appropr| |00003e40| 69 61 74 65 20 64 61 74 | 61 20 69 6e 20 74 68 65 |iate dat|a in the| |00003e50| 20 73 74 72 75 63 74 75 | 72 65 20 70 61 73 73 65 | structu|re passe| |00003e60| 64 20 69 6e 2e 20 54 68 | 65 20 6f 70 63 6f 64 65 |d in. Th|e opcode| |00003e70| 20 61 67 61 69 6e 20 69 | 73 20 50 53 41 64 6f 62 | again i|s PSAdob| |00003e80| 65 4f 70 20 28 64 65 63 | 69 6d 61 6c 20 31 34 29 |eOp (dec|imal 14)| |00003e90| 2e 20 54 68 65 20 64 61 | 74 61 20 70 61 73 73 65 |. The da|ta passe| |00003ea0| 64 20 69 6e 20 69 6e 63 | 6c 75 64 65 73 20 61 20 |d in inc|ludes a | |00003eb0| 73 75 62 2d 73 65 6c 65 | 63 74 6f 72 20 74 6f 20 |sub-sele|ctor to | |00003ec0| 64 65 74 65 72 6d 69 6e | 65 20 77 68 69 63 68 20 |determin|e which | |00003ed0| 76 65 72 73 69 6f 6e 20 | 6f 66 20 50 53 41 64 6f |version |of PSAdo| |00003ee0| 62 65 4f 70 20 69 73 20 | 74 6f 20 62 65 20 75 73 |beOp is |to be us| |00003ef0| 65 64 2e 20 41 20 73 75 | 62 73 65 6c 65 63 74 6f |ed. A su|bselecto| |00003f00| 72 20 76 61 6c 75 65 20 | 6f 66 20 50 53 46 6f 6e |r value |of PSFon| |00003f10| 74 49 6e 66 6f 20 28 64 | 65 63 69 6d 61 6c 20 20 |tInfo (d|ecimal | |00003f20| 32 29 20 69 6e 64 69 63 | 61 74 65 73 20 74 68 69 |2) indic|ates thi| |00003f30| 73 20 50 72 47 65 6e 65 | 72 61 6c 20 63 61 6c 6c |s PrGene|ral call| |00003f40| 20 69 73 20 66 6f 72 20 | 74 68 65 20 66 6f 6e 74 | is for |the font| |00003f50| 20 64 61 74 61 20 66 75 | 6e 63 74 69 6f 6e 2e 0d | data fu|nction..| |00003f60| 54 68 69 73 20 50 72 47 | 65 6e 65 72 61 6c 20 63 |This PrG|eneral c| |00003f70| 61 6c 6c 20 73 75 62 73 | 65 6c 65 63 74 6f 72 20 |all subs|elector | |00003f80| 69 73 20 74 79 70 69 63 | 61 6c 6c 79 20 75 73 65 |is typic|ally use| |00003f90| 64 20 69 6e 20 74 77 6f | 20 73 65 70 61 72 61 74 |d in two| separat| |00003fa0| 65 20 70 61 73 73 65 73 | 2e 20 54 68 65 20 66 69 |e passes|. The fi| |00003fb0| 72 73 74 20 70 61 73 73 | 20 69 73 20 74 6f 20 62 |rst pass| is to b| |00003fc0| 6f 74 68 20 67 61 74 68 | 65 72 20 69 6e 66 6f 72 |oth gath|er infor| |00003fd0| 6d 61 74 69 6f 6e 20 28 | 61 73 20 6f 70 70 6f 73 |mation (|as oppos| |00003fe0| 65 64 20 74 6f 20 74 68 | 65 20 50 6f 73 74 53 63 |ed to th|e PostSc| |00003ff0| 72 69 70 74 20 66 6f 6e | 74 20 64 61 74 61 20 69 |ript fon|t data i| |00004000| 74 73 65 6c 66 29 20 61 | 62 6f 75 74 20 74 68 65 |tself) a|bout the| |00004010| 20 66 6f 6e 74 20 61 6e | 64 20 66 6f 72 20 50 53 | font an|d for PS| |00004020| 57 72 69 74 65 72 20 74 | 6f 20 62 75 69 6c 64 20 |Writer t|o build | |00004030| 75 70 20 74 68 65 20 69 | 6e 66 6f 72 6d 61 74 69 |up the i|nformati| |00004040| 6f 6e 20 69 74 20 6e 65 | 65 64 73 20 69 6e 20 6f |on it ne|eds in o| |00004050| 72 64 65 72 20 74 6f 20 | 65 78 74 72 61 63 74 20 |rder to |extract | |00004060| 74 68 65 20 66 6f 6e 74 | 20 64 61 74 61 20 6c 61 |the font| data la| |00004070| 74 65 72 2e 20 41 70 70 | 6c 69 63 61 74 69 6f 6e |ter. App|lication| |00004080| 73 20 6d 61 79 20 65 78 | 61 6d 69 6e 65 20 74 68 |s may ex|amine th| |00004090| 65 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 72 65 |e inform|ation re| |000040a0| 74 75 72 6e 65 64 20 74 | 6f 20 64 65 63 69 64 65 |turned t|o decide| |000040b0| 20 68 6f 77 20 74 6f 20 | 70 72 6f 63 65 73 73 20 | how to |process | |000040c0| 61 20 67 69 76 65 6e 20 | 66 6f 6e 74 2e 20 54 68 |a given |font. Th| |000040d0| 65 20 64 61 74 61 20 66 | 69 65 6c 64 20 70 61 73 |e data f|ield pas| |000040e0| 73 65 64 20 69 6e 74 6f | 20 50 53 46 6f 6e 74 49 |sed into| PSFontI| |000040f0| 6e 66 6f 20 69 73 20 69 | 6e 69 74 69 61 6c 69 7a |nfo is i|nitializ| |00004100| 65 64 20 74 6f 20 61 20 | 7a 65 72 6f 20 68 61 6e |ed to a |zero han| |00004110| 64 6c 65 20 62 65 66 6f | 72 65 20 72 65 71 75 65 |dle befo|re reque| |00004120| 73 74 69 6e 67 20 69 6e | 66 6f 72 6d 61 74 69 6f |sting in|formatio| |00004130| 6e 20 6f 6e 20 61 20 66 | 6f 6e 74 2e 20 49 66 20 |n on a f|ont. If | |00004140| 74 68 65 20 66 6f 6e 74 | 20 64 61 74 61 20 66 6f |the font| data fo| |00004150| 72 20 6d 6f 72 65 20 74 | 68 61 6e 20 6f 6e 65 20 |r more t|han one | |00004160| 66 6f 6e 74 20 69 73 20 | 64 65 73 69 72 65 64 2c |font is |desired,| |00004170| 20 74 68 65 6e 20 74 68 | 65 20 64 61 74 61 20 66 | then th|e data f| |00004180| 69 65 6c 64 20 69 73 20 | 6e 6f 74 20 72 65 2d 69 |ield is |not re-i| |00004190| 6e 69 74 69 61 6c 69 7a | 65 64 20 62 65 66 6f 72 |nitializ|ed befor| |000041a0| 65 20 74 68 65 20 63 61 | 6c 6c 20 66 6f 72 20 74 |e the ca|ll for t| |000041b0| 68 65 20 6e 65 78 74 20 | 66 6f 6e 74 2e 20 44 75 |he next |font. Du| |000041c0| 72 69 6e 67 20 65 61 63 | 68 20 63 61 6c 6c 20 74 |ring eac|h call t| |000041d0| 6f 20 50 72 47 65 6e 65 | 72 61 6c 20 77 69 74 68 |o PrGene|ral with| |000041e0| 20 73 75 62 73 65 6c 65 | 63 74 6f 72 20 50 53 46 | subsele|ctor PSF| |000041f0| 6f 6e 74 49 6e 66 6f 2c | 20 74 68 65 20 64 61 74 |ontInfo,| the dat| |00004200| 61 20 73 74 72 75 63 74 | 75 72 65 20 69 73 20 72 |a struct|ure is r| |00004210| 65 74 75 72 6e 73 20 74 | 68 65 20 69 6e 66 6f 20 |eturns t|he info | |00004220| 66 6f 72 20 74 68 65 20 | 63 75 72 72 65 6e 74 20 |for the |current | |00004230| 63 61 6c 6c 20 61 6e 64 | 20 75 70 64 61 74 65 73 |call and| updates| |00004240| 20 74 68 65 20 64 61 74 | 61 20 66 69 65 6c 64 20 | the dat|a field | |00004250| 69 6e 20 70 72 65 70 61 | 72 61 74 69 6f 6e 20 66 |in prepa|ration f| |00004260| 6f 72 20 72 65 74 75 72 | 6e 69 6e 67 20 74 68 65 |or retur|ning the| |00004270| 20 61 63 74 75 61 6c 20 | 66 6f 6e 74 20 64 61 74 | actual |font dat| |00004280| 61 2e 20 4f 6e 63 65 20 | 74 68 65 20 63 6c 69 65 |a. Once |the clie| |00004290| 6e 74 20 61 70 70 6c 69 | 63 61 74 69 6f 6e 20 68 |nt appli|cation h| |000042a0| 61 73 20 72 65 71 75 65 | 73 74 65 64 20 74 68 65 |as reque|sted the| |000042b0| 20 69 6e 66 6f 20 66 6f | 72 20 61 6c 6c 20 66 6f | info fo|r all fo| |000042c0| 6e 74 73 20 66 6f 72 20 | 77 68 69 63 68 20 64 61 |nts for |which da| |000042d0| 74 61 20 69 73 20 72 65 | 71 75 69 72 65 64 2c 20 |ta is re|quired, | |000042e0| 74 68 65 20 64 61 74 61 | 20 70 6f 72 74 69 6f 6e |the data| portion| |000042f0| 20 6f 66 20 74 68 65 20 | 72 65 63 6f 72 64 20 70 | of the |record p| |00004300| 61 73 73 65 64 20 69 6e | 74 6f 20 50 72 47 65 6e |assed in|to PrGen| |00004310| 65 72 61 6c 20 74 6f 20 | 63 61 75 73 65 20 74 68 |eral to |cause th| |00004320| 65 20 66 6f 6e 74 20 64 | 61 74 61 20 74 6f 20 62 |e font d|ata to b| |00004330| 65 20 72 65 74 75 72 6e | 65 64 20 74 6f 20 74 68 |e return|ed to th| |00004340| 65 20 61 70 70 6c 69 63 | 61 74 69 6f 6e 20 76 69 |e applic|ation vi| |00004350| 61 20 74 68 65 20 63 61 | 6c 6c 62 61 63 6b 20 70 |a the ca|llback p| |00004360| 72 6f 63 65 64 75 72 65 | 20 73 75 70 70 6c 69 65 |rocedure| supplie| |00004370| 64 2e 0d 43 61 6c 6c 73 | 20 74 6f 20 74 68 65 20 |d..Calls| to the | |00004380| 50 53 46 6f 6e 74 49 6e | 66 6f 20 63 61 6c 6c 20 |PSFontIn|fo call | |00004390| 6d 75 73 74 20 74 61 6b | 65 20 70 6c 61 63 65 20 |must tak|e place | |000043a0| 77 69 74 68 69 6e 20 50 | 72 4f 70 65 6e 2f 50 72 |within P|rOpen/Pr| |000043b0| 43 6c 6f 73 65 2e 20 55 | 6e 6c 69 6b 65 20 50 53 |Close. U|nlike PS| |000043c0| 70 69 63 74 32 65 70 73 | 2c 20 50 53 46 6f 6e 74 |pict2eps|, PSFont| |000043d0| 49 6e 66 6f 20 6d 61 79 | 20 74 61 6b 65 20 70 6c |Info may| take pl| |000043e0| 61 63 65 20 77 69 74 68 | 69 6e 20 50 72 4f 70 65 |ace with|in PrOpe| |000043f0| 6e 44 6f 63 2f 50 72 43 | 6c 6f 73 65 44 6f 63 2e |nDoc/PrC|loseDoc.| |00004400| 0d 54 68 69 73 20 63 61 | 6c 6c 20 69 73 20 75 73 |.This ca|ll is us| |00004410| 65 64 20 62 79 20 62 75 | 69 6c 64 69 6e 67 20 75 |ed by bu|ilding u| |00004420| 70 20 61 20 64 61 74 61 | 20 73 74 72 75 63 74 75 |p a data| structu| |00004430| 72 65 20 77 68 69 63 68 | 20 68 61 73 20 74 68 65 |re which| has the| |00004440| 20 61 70 70 72 6f 70 72 | 69 61 74 65 20 76 61 6c | appropr|iate val| |00004450| 75 65 73 20 73 65 74 2e | 20 54 68 65 20 66 69 65 |ues set.| The fie| |00004460| 6c 64 73 20 6f 66 20 74 | 68 65 20 64 61 74 61 20 |lds of t|he data | |00004470| 73 74 72 75 63 74 75 72 | 65 20 70 61 73 73 65 64 |structur|e passed| |00004480| 20 74 6f 20 50 72 47 65 | 6e 65 72 61 6c 20 61 72 | to PrGe|neral ar| |00004490| 65 0d 69 4f 70 43 6f 64 | 65 09 73 65 74 20 74 6f |e.iOpCod|e.set to| |000044a0| 20 50 53 41 64 6f 62 65 | 4f 70 20 66 6f 72 20 74 | PSAdobe|Op for t| |000044b0| 68 69 73 20 63 61 6c 6c | 0d 69 45 72 72 6f 72 09 |his call|.iError.| |000044c0| 73 68 6f 72 74 20 72 65 | 74 75 72 6e 65 64 20 65 |short re|turned e| |000044d0| 72 72 6f 72 20 63 6f 64 | 65 0d 6c 52 65 73 65 72 |rror cod|e.lReser| |000044e0| 76 65 64 09 72 65 73 65 | 72 76 65 64 20 6c 6f 6e |ved.rese|rved lon| |000044f0| 67 20 77 6f 72 64 20 73 | 68 6f 75 6c 64 20 62 65 |g word s|hould be| |00004500| 20 73 65 74 20 74 6f 20 | 30 20 69 6e 20 74 68 69 | set to |0 in thi| |00004510| 73 20 76 65 72 73 69 6f | 6e 0d 73 75 62 49 64 09 |s versio|n.subId.| |00004520| 73 65 74 20 74 6f 20 50 | 53 46 6f 6e 74 49 6e 66 |set to P|SFontInf| |00004530| 6f 20 66 6f 72 20 74 68 | 69 73 20 63 61 6c 6c 0d |o for th|is call.| |00004540| 76 65 72 73 69 6f 6e 09 | 73 65 74 20 74 6f 20 6b |version.|set to k| |00004550| 50 53 41 64 6f 62 65 56 | 65 72 73 69 6f 6e 20 66 |PSAdobeV|ersion f| |00004560| 6f 72 20 74 68 69 73 20 | 76 65 72 73 69 6f 6e 20 |or this |version | |00004570| 6f 66 20 74 68 65 20 69 | 6e 74 65 72 66 61 63 65 |of the i|nterface| |00004580| 0d 6f 70 09 70 6f 69 6e | 74 65 72 20 74 6f 20 63 |.op.poin|ter to c| |00004590| 61 6c 6c 62 61 63 6b 20 | 66 75 6e 63 74 69 6f 6e |allback |function| |000045a0| 20 77 68 69 63 68 20 72 | 65 63 65 69 76 65 73 20 | which r|eceives | |000045b0| 74 68 65 20 66 6f 6e 74 | 20 64 61 74 61 0d 62 69 |the font| data.bi| |000045c0| 6e 61 72 79 09 62 69 74 | 20 66 69 65 6c 64 20 73 |nary.bit| field s| |000045d0| 65 74 20 74 6f 20 74 72 | 75 65 20 74 6f 20 72 65 |et to tr|ue to re| |000045e0| 71 75 65 73 74 20 62 69 | 6e 61 72 79 20 64 61 74 |quest bi|nary dat| |000045f0| 61 2c 20 66 61 6c 73 65 | 20 72 65 71 75 65 73 74 |a, false| request| |00004600| 73 20 74 68 61 74 20 41 | 53 43 49 49 20 64 61 74 |s that A|SCII dat| |00004610| 61 20 62 65 20 67 65 6e | 65 72 61 74 65 64 2e 20 |a be gen|erated. | |00004620| 54 68 69 73 20 69 73 20 | 65 71 75 69 76 61 6c 65 |This is |equivale| |00004630| 6e 74 20 74 6f 20 74 68 | 65 20 41 53 43 49 49 2f |nt to th|e ASCII/| |00004640| 20 42 69 6e 61 72 79 20 | 62 75 74 74 6f 6e 73 20 | Binary |buttons | |00004650| 69 6e 20 74 68 65 20 73 | 61 76 65 20 74 6f 20 64 |in the s|ave to d| |00004660| 69 73 6b 20 64 69 61 6c | 6f 67 2e 0d 6c 65 76 65 |isk dial|og..leve| |00004670| 6c 32 09 62 69 74 20 66 | 69 65 6c 64 20 73 65 74 |l2.bit f|ield set| |00004680| 20 74 6f 20 74 72 75 65 | 20 74 6f 20 72 65 71 75 | to true| to requ| |00004690| 65 73 74 20 6f 75 74 70 | 75 74 20 66 6f 72 20 6c |est outp|ut for l| |000046a0| 65 76 65 6c 20 32 20 6f | 6e 6c 79 2c 20 66 61 6c |evel 2 o|nly, fal| |000046b0| 73 65 20 72 65 71 75 65 | 73 74 73 20 4c 65 76 65 |se reque|sts Leve| |000046c0| 6c 20 31 20 43 6f 6d 70 | 61 74 69 62 6c 65 20 64 |l 1 Comp|atible d| |000046d0| 61 74 61 2e 20 54 68 69 | 73 20 69 73 20 65 71 75 |ata. Thi|s is equ| |000046e0| 69 76 61 6c 65 6e 74 20 | 74 6f 20 74 68 65 20 4c |ivalent |to the L| |000046f0| 65 76 65 6c 20 31 20 43 | 6f 6d 70 61 74 69 62 6c |evel 1 C|ompatibl| |00004700| 65 2f 4c 65 76 65 6c 20 | 32 20 6f 6e 6c 79 20 72 |e/Level |2 only r| |00004710| 61 64 69 6f 20 62 75 74 | 74 6f 6e 73 20 69 6e 20 |adio but|tons in | |00004720| 74 68 65 20 73 61 76 65 | 20 74 6f 20 64 69 73 6b |the save| to disk| |00004730| 20 64 69 61 6c 6f 67 2e | 0d 72 65 73 65 72 76 65 | dialog.|.reserve| |00004740| 64 09 72 65 73 65 72 76 | 65 64 20 62 69 74 73 20 |d.reserv|ed bits | |00004750| 66 6f 72 20 66 75 74 75 | 72 65 20 65 78 70 61 6e |for futu|re expan| |00004760| 73 69 6f 6e 2e 20 53 68 | 6f 75 6c 64 20 62 65 20 |sion. Sh|ould be | |00004770| 73 65 74 20 74 6f 20 30 | 2e 0d 69 73 2e 66 6f 6e |set to 0|..is.fon| |00004780| 74 49 6e 66 6f 2e 69 64 | 09 51 75 69 63 6b 44 72 |tInfo.id|.QuickDr| |00004790| 61 77 20 49 44 20 6e 75 | 6d 62 65 72 20 6f 66 20 |aw ID nu|mber of | |000047a0| 66 6f 6e 74 20 66 6f 72 | 20 77 68 69 63 68 20 69 |font for| which i| |000047b0| 6e 66 6f 20 69 73 20 72 | 65 71 75 65 73 74 65 64 |nfo is r|equested| |000047c0| 2e 20 54 68 69 73 20 66 | 69 65 6c 64 20 69 73 20 |. This f|ield is | |000047d0| 6e 6f 74 20 75 73 65 64 | 20 69 66 20 74 68 65 20 |not used| if the | |000047e0| 70 73 4e 61 6d 65 20 66 | 69 65 6c 64 20 69 73 20 |psName f|ield is | |000047f0| 6e 6f 6e 7a 65 72 6f 2e | 20 53 65 65 20 62 65 6c |nonzero.| See bel| |00004800| 6f 77 2e 0d 69 73 2e 66 | 6f 6e 74 49 6e 66 6f 2e |ow..is.f|ontInfo.| |00004810| 73 74 79 6c 65 09 51 75 | 69 63 6b 44 72 61 77 20 |style.Qu|ickDraw | |00004820| 73 74 79 6c 65 20 6f 66 | 20 74 68 65 20 66 6f 6e |style of| the fon| |00004830| 74 20 66 6f 72 20 77 68 | 69 63 68 20 69 6e 66 6f |t for wh|ich info| |00004840| 20 69 73 20 72 65 71 75 | 65 73 74 65 64 2e 20 54 | is requ|ested. T| |00004850| 68 69 73 20 66 69 65 6c | 64 20 69 73 20 6e 6f 74 |his fiel|d is not| |00004860| 20 75 73 65 64 20 69 66 | 20 74 68 65 20 70 73 4e | used if| the psN| |00004870| 61 6d 65 20 66 69 65 6c | 64 20 69 73 20 6e 6f 6e |ame fiel|d is non| |00004880| 7a 65 72 6f 2e 20 53 65 | 65 20 62 65 6c 6f 77 2e |zero. Se|e below.| |00004890| 0d 69 73 2e 66 6f 6e 74 | 49 6e 66 6f 2e 70 73 4e |.is.font|Info.psN| |000048a0| 61 6d 65 0d 54 68 65 20 | 50 6f 73 74 53 63 72 69 |ame.The |PostScri| |000048b0| 70 74 20 66 6f 6e 74 20 | 6e 61 6d 65 20 66 6f 72 |pt font |name for| |000048c0| 20 77 68 69 63 68 20 74 | 68 65 20 66 6f 6e 74 20 | which t|he font | |000048d0| 69 6e 66 6f 72 6d 61 74 | 69 6f 6e 20 69 73 20 72 |informat|ion is r| |000048e0| 65 71 75 65 73 74 65 64 | 2e 20 54 68 69 73 20 6e |equested|. This n| |000048f0| 61 6d 65 20 69 73 20 70 | 61 73 73 65 64 20 69 6e |ame is p|assed in| |00004900| 20 61 73 20 61 20 50 61 | 73 63 61 6c 20 53 74 72 | as a Pa|scal Str| |00004910| 69 6e 67 2e 20 49 66 20 | 74 68 65 20 6c 65 6e 67 |ing. If |the leng| |00004920| 74 68 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |th of th|e string| |00004930| 20 69 73 20 7a 65 72 6f | 20 74 68 65 6e 20 74 68 | is zero| then th| |00004940| 65 20 72 65 71 75 65 73 | 74 20 69 73 20 62 61 73 |e reques|t is bas| |00004950| 65 64 20 6f 6e 20 74 68 | 65 20 51 75 69 63 6b 44 |ed on th|e QuickD| |00004960| 72 61 77 20 66 6f 6e 74 | 20 69 64 20 61 6e 64 20 |raw font| id and | |00004970| 73 74 79 6c 65 2e 20 49 | 66 20 74 68 65 20 74 68 |style. I|f the th| |00004980| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 69 73 |e length| of this| |00004990| 20 73 74 72 69 6e 67 20 | 61 73 20 70 61 73 73 65 | string |as passe| |000049a0| 64 20 69 6e 74 6f 20 50 | 72 47 65 6e 65 72 61 6c |d into P|rGeneral| |000049b0| 20 69 73 20 30 2c 20 61 | 6e 64 20 74 68 65 20 66 | is 0, a|nd the f| |000049c0| 6f 6e 74 20 72 65 71 75 | 65 73 74 65 64 20 69 73 |ont requ|ested is| |000049d0| 20 61 20 50 6f 73 74 53 | 63 72 69 70 74 20 66 6f | a PostS|cript fo| |000049e0| 6e 74 2c 20 74 68 65 6e | 20 74 68 65 20 76 61 6c |nt, then| the val| |000049f0| 75 65 20 61 66 74 65 72 | 20 74 68 65 20 50 72 47 |ue after| the PrG| |00004a00| 65 6e 65 72 61 6c 20 63 | 61 6c 6c 20 77 69 6c 6c |eneral c|all will| |00004a10| 20 62 65 20 61 20 50 61 | 73 63 61 6c 20 73 74 72 | be a Pa|scal str| |00004a20| 69 6e 67 20 77 69 74 68 | 20 74 68 65 20 50 6f 73 |ing with| the Pos| |00004a30| 74 53 63 72 69 70 74 20 | 66 6f 6e 74 20 6e 61 6d |tScript |font nam| |00004a40| 65 2e 0d 69 73 2e 66 6f | 6e 74 49 6e 66 6f 2e 70 |e..is.fo|ntInfo.p| |00004a50| 72 69 6e 74 65 72 43 6c | 61 73 73 0d 50 61 73 73 |rinterCl|ass.Pass| |00004a60| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 50 53 46 6f |ed into |the PSFo| |00004a70| 6e 74 49 6e 66 6f 20 63 | 61 6c 6c 20 74 6f 20 73 |ntInfo c|all to s| |00004a80| 70 65 63 69 66 79 20 74 | 68 65 20 70 72 69 6e 74 |pecify t|he print| |00004a90| 65 72 20 74 79 70 65 20 | 66 6f 72 20 77 68 69 63 |er type |for whic| |00004aa0| 68 20 66 6f 6e 74 20 64 | 61 74 61 20 69 73 20 64 |h font d|ata is d| |00004ab0| 65 73 69 72 65 64 2e 20 | 54 68 69 73 20 69 73 20 |esired. |This is | |00004ac0| 73 70 65 63 69 66 69 63 | 61 6c 6c 79 20 74 6f 20 |specific|ally to | |00004ad0| 68 61 6e 64 6c 65 20 54 | 72 75 65 54 79 70 65 20 |handle T|rueType | |00004ae0| 66 6f 6e 74 73 20 77 68 | 69 63 68 20 69 6e 20 73 |fonts wh|ich in s| |00004af0| 6f 6d 65 20 63 61 73 65 | 73 20 6d 75 73 74 20 62 |ome case|s must b| |00004b00| 65 20 63 6f 6e 76 65 72 | 74 65 64 20 69 6e 74 6f |e conver|ted into| |00004b10| 20 6f 74 68 65 72 20 66 | 6f 72 6d 73 20 69 6e 20 | other f|orms in | |00004b20| 6f 72 64 65 72 20 74 6f | 20 62 65 20 73 65 6e 74 |order to| be sent| |00004b30| 20 74 6f 20 50 6f 73 74 | 53 63 72 69 70 74 20 70 | to Post|Script p| |00004b40| 72 69 6e 74 65 72 73 2e | 20 56 61 6c 69 64 20 76 |rinters.| Valid v| |00004b50| 61 6c 75 65 73 20 66 6f | 72 20 74 68 69 73 20 66 |alues fo|r this f| |00004b60| 69 65 6c 64 20 61 72 65 | 20 69 43 6c 61 73 73 55 |ield are| iClassU| |00004b70| 6e 6b 6e 6f 77 6e 2c 20 | 69 43 6c 61 73 73 43 2c |nknown, |iClassC,| |00004b80| 20 69 43 6c 61 73 73 42 | 2c 20 61 6e 64 20 69 43 | iClassB|, and iC| |00004b90| 6c 61 73 73 41 0d 69 73 | 2e 66 6f 6e 74 49 6e 66 |lassA.is|.fontInf| |00004ba0| 6f 2e 63 61 6c 63 56 4d | 75 73 61 67 65 20 0d 41 |o.calcVM|usage .A| |00004bb0| 20 62 69 74 20 66 69 65 | 6c 64 20 77 68 69 63 68 | bit fie|ld which| |00004bc0| 2c 20 77 68 65 6e 20 73 | 65 74 20 74 6f 20 74 72 |, when s|et to tr| |00004bd0| 75 65 2c 20 77 69 6c 6c | 20 72 65 74 75 72 6e 20 |ue, will| return | |00004be0| 74 68 65 20 66 6f 6e 74 | 20 76 6d 75 73 61 67 65 |the font| vmusage| |00004bf0| 20 69 6e 74 6f 20 74 68 | 65 20 61 70 70 72 6f 70 | into th|e approp| |00004c00| 72 69 61 74 65 20 66 69 | 65 6c 64 20 69 6e 20 74 |riate fi|eld in t| |00004c10| 68 65 20 64 61 74 61 20 | 72 65 63 6f 72 64 2e 20 |he data |record. | |00004c20| 4d 6f 73 74 20 61 70 70 | 6c 69 63 61 74 69 6f 6e |Most app|lication| |00004c30| 20 73 68 6f 75 6c 64 20 | 73 65 74 20 74 68 65 20 | should |set the | |00004c40| 66 69 65 6c 64 20 74 6f | 20 66 61 6c 73 65 2e 0d |field to| false..| |00004c50| 69 73 2e 66 6f 6e 74 49 | 6e 66 6f 2e 70 6f 73 74 |is.fontI|nfo.post| |00004c60| 53 63 72 69 70 74 0d 72 | 65 74 75 72 6e 65 64 20 |Script.r|eturned | |00004c70| 62 79 20 74 68 65 20 50 | 53 46 6f 6e 74 49 6e 66 |by the P|SFontInf| |00004c80| 6f 20 63 61 6c 6c 2e 20 | 49 66 20 74 68 65 20 63 |o call. |If the c| |00004c90| 61 6c 6c 20 69 73 20 73 | 70 65 63 69 66 69 65 64 |all is s|pecified| |00004ca0| 20 62 79 20 69 64 20 61 | 6e 64 20 73 74 79 6c 65 | by id a|nd style| |00004cb0| 2c 20 74 68 65 6e 20 74 | 68 69 73 20 66 69 65 6c |, then t|his fiel| |00004cc0| 64 20 69 73 20 73 65 74 | 20 74 6f 20 74 72 75 65 |d is set| to true| |00004cd0| 20 69 66 20 74 68 65 20 | 66 6f 6e 74 20 69 73 20 | if the |font is | |00004ce0| 61 20 50 6f 73 74 53 63 | 72 69 70 74 20 6c 61 6e |a PostSc|ript lan| |00004cf0| 67 75 61 67 65 20 66 6f | 6e 74 2e 20 54 68 61 74 |guage fo|nt. That| |00004d00| 20 69 73 2c 20 69 66 20 | 74 68 65 20 46 4f 4e 44 | is, if |the FOND| |00004d10| 20 63 6f 6e 74 61 69 6e | 73 20 61 20 73 74 79 6c | contain|s a styl| |00004d20| 65 20 6d 61 70 70 69 6e | 67 20 74 61 62 6c 65 20 |e mappin|g table | |00004d30| 74 68 65 6e 20 74 68 69 | 73 20 69 73 20 74 72 75 |then thi|s is tru| |00004d40| 65 2e 20 54 68 65 20 6e | 61 6d 65 20 66 72 6f 6d |e. The n|ame from| |00004d50| 20 74 68 65 20 73 74 79 | 6c 65 20 6d 61 70 70 69 | the sty|le mappi| |00004d60| 6e 67 20 74 61 62 6c 65 | 20 69 73 20 74 68 65 6e |ng table| is then| |00004d70| 20 70 75 74 20 69 6e 20 | 70 73 4e 61 6d 65 2e 0d | put in |psName..| |00004d80| 69 73 2e 66 6f 6e 74 49 | 6e 66 6f 2e 68 61 73 50 |is.fontI|nfo.hasP| |00004d90| 53 4f 75 74 6c 69 6e 65 | 20 0d 72 65 74 75 72 6e |SOutline| .return| |00004da0| 65 64 20 62 79 20 74 68 | 65 20 50 53 46 6f 6e 74 |ed by th|e PSFont| |00004db0| 49 6e 66 6f 20 63 61 6c | 6c 2c 20 74 68 65 20 76 |Info cal|l, the v| |00004dc0| 61 6c 75 65 20 69 73 20 | 73 65 74 20 74 72 75 65 |alue is |set true| |00004dd0| 20 69 66 20 74 68 65 20 | 66 6f 6e 74 20 68 61 73 | if the |font has| |00004de0| 20 61 20 63 6f 72 72 65 | 73 70 6f 6e 64 69 6e 67 | a corre|sponding| |00004df0| 20 50 6f 73 74 53 63 72 | 69 70 74 20 6f 75 74 6c | PostScr|ipt outl| |00004e00| 69 6e 65 20 61 6e 64 20 | 69 74 20 69 73 20 61 76 |ine and |it is av| |00004e10| 61 69 6c 61 62 6c 65 20 | 6f 6e 20 74 68 65 20 68 |ailable |on the h| |00004e20| 6f 73 74 2e 0d 69 73 2e | 66 6f 6e 74 49 6e 66 6f |ost..is.|fontInfo| |00004e30| 2e 74 72 75 65 54 79 70 | 65 20 0d 72 65 74 75 72 |.trueTyp|e .retur| |00004e40| 6e 65 64 20 62 79 20 74 | 68 65 20 50 53 46 6f 6e |ned by t|he PSFon| |00004e50| 74 49 6e 66 6f 20 63 61 | 6c 6c 2c 20 74 68 65 20 |tInfo ca|ll, the | |00004e60| 76 61 6c 75 65 20 69 73 | 20 74 72 75 65 20 69 66 |value is| true if| |00004e70| 20 74 68 65 20 72 65 71 | 75 65 73 74 65 64 20 66 | the req|uested f| |00004e80| 6f 6e 74 20 69 73 20 61 | 20 54 72 75 65 54 79 70 |ont is a| TrueTyp| |00004e90| 65 20 66 6f 6e 74 20 61 | 6e 64 20 74 68 65 72 65 |e font a|nd there| |00004ea0| 20 69 73 20 6e 6f 20 63 | 6f 72 72 65 73 70 6f 6e | is no c|orrespon| |00004eb0| 64 69 6e 67 20 50 6f 73 | 74 53 63 72 69 70 74 20 |ding Pos|tScript | |00004ec0| 6f 75 74 6c 69 6e 65 20 | 66 6f 6e 74 20 61 76 61 |outline |font ava| |00004ed0| 69 6c 61 62 6c 65 20 66 | 6f 72 20 64 6f 77 6e 6c |ilable f|or downl| |00004ee0| 6f 61 64 69 6e 67 2e 20 | 49 66 20 74 68 65 20 70 |oading. |If the p| |00004ef0| 73 4e 61 6d 65 20 66 69 | 65 6c 64 20 69 6e 20 74 |sName fi|eld in t| |00004f00| 68 65 20 72 65 71 75 65 | 73 74 20 69 73 20 6e 6f |he reque|st is no| |00004f10| 74 20 7a 65 72 6f 20 74 | 68 65 6e 20 74 68 65 20 |t zero t|hen the | |00004f20| 72 65 71 75 65 73 74 20 | 69 73 20 66 6f 72 20 61 |request |is for a| |00004f30| 20 50 6f 73 74 53 63 72 | 69 70 74 20 66 6f 6e 74 | PostScr|ipt font| |00004f40| 20 61 6e 64 20 74 68 69 | 73 20 66 69 65 6c 64 20 | and thi|s field | |00004f50| 77 69 6c 6c 20 61 6c 77 | 61 79 73 20 62 65 20 73 |will alw|ays be s| |00004f60| 65 74 20 74 6f 20 66 61 | 6c 73 65 2e 0d 69 73 2e |et to fa|lse..is.| |00004f70| 66 6f 6e 74 49 6e 66 6f | 2e 6d 75 6c 74 69 70 6c |fontInfo|.multipl| |00004f80| 65 4d 61 73 74 65 72 20 | 0d 72 65 74 75 72 6e 65 |eMaster |.returne| |00004f90| 64 20 62 79 20 74 68 65 | 20 50 53 46 6f 6e 74 49 |d by the| PSFontI| |00004fa0| 6e 66 6f 20 63 61 6c 6c | 2c 20 74 68 65 20 76 61 |nfo call|, the va| |00004fb0| 6c 75 65 20 69 73 20 74 | 72 75 65 20 69 66 20 74 |lue is t|rue if t| |00004fc0| 68 65 20 66 6f 6e 74 20 | 69 73 20 61 20 6d 75 6c |he font |is a mul| |00004fd0| 74 69 70 6c 65 20 6d 61 | 73 74 65 72 20 66 6f 6e |tiple ma|ster fon| |00004fe0| 74 2e 20 54 68 69 73 20 | 76 61 6c 75 65 20 77 69 |t. This |value wi| |00004ff0| 6c 6c 20 62 65 20 73 65 | 74 20 66 6f 72 20 62 6f |ll be se|t for bo| |00005000| 74 68 20 74 68 65 20 69 | 64 20 61 6e 64 20 73 74 |th the i|d and st| |00005010| 79 6c 65 20 6d 65 74 68 | 6f 64 20 61 73 20 77 65 |yle meth|od as we| |00005020| 6c 6c 20 61 73 20 74 68 | 65 20 50 6f 73 74 53 63 |ll as th|e PostSc| |00005030| 72 69 70 74 20 6e 61 6d | 65 20 6d 65 74 68 6f 64 |ript nam|e method| |00005040| 20 6f 66 20 72 65 71 75 | 65 73 74 69 6e 67 20 69 | of requ|esting i| |00005050| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 0d 69 73 2e 66 |nformati|on..is.f| |00005060| 6f 6e 74 49 6e 66 6f 2e | 72 65 73 65 72 76 65 64 |ontInfo.|reserved| |00005070| 20 0d 72 65 73 65 72 76 | 65 64 20 62 69 74 73 20 | .reserv|ed bits | |00005080| 61 6e 64 20 73 68 6f 75 | 6c 64 20 62 65 20 73 65 |and shou|ld be se| |00005090| 74 20 74 6f 20 7a 65 72 | 6f 20 66 6f 72 20 74 68 |t to zer|o for th| |000050a0| 69 73 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 74 68 |is versi|on of th| |000050b0| 65 20 50 53 46 6f 6e 74 | 49 6e 66 6f 20 63 61 6c |e PSFont|Info cal| |000050c0| 6c 2e 0d 69 73 2e 66 6f | 6e 74 49 6e 66 6f 2e 66 |l..is.fo|ntInfo.f| |000050d0| 6f 6e 74 43 6c 61 73 73 | 0d 72 65 74 75 72 6e 65 |ontClass|.returne| |000050e0| 64 20 62 79 20 74 68 65 | 20 50 53 46 6f 6e 74 49 |d by the| PSFontI| |000050f0| 6e 66 6f 20 63 61 6c 6c | 2c 20 74 68 69 73 20 69 |nfo call|, this i| |00005100| 73 20 61 20 73 68 6f 72 | 74 20 63 6f 6e 74 61 69 |s a shor|t contai| |00005110| 6e 69 6e 67 20 74 68 65 | 20 66 6f 6e 74 43 6c 61 |ning the| fontCla| |00005120| 73 73 20 66 69 65 6c 64 | 20 66 72 6f 6d 20 74 68 |ss field| from th| |00005130| 65 20 46 4f 4e 44 20 72 | 65 73 6f 75 72 63 65 2e |e FOND r|esource.| |00005140| 20 54 68 69 73 20 64 61 | 74 61 20 63 6f 6e 74 61 | This da|ta conta| |00005150| 69 6e 73 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ins info|rmation | |00005160| 61 62 6f 75 74 20 74 68 | 65 20 74 79 70 65 20 6f |about th|e type o| |00005170| 66 20 66 6f 6e 74 20 65 | 6e 63 6f 64 69 6e 67 2c |f font e|ncoding,| |00005180| 20 61 6e 64 20 68 6f 77 | 20 74 6f 20 64 65 72 69 | and how| to deri| |00005190| 76 65 20 73 74 79 6c 65 | 73 20 66 6f 72 20 74 68 |ve style|s for th| |000051a0| 69 73 20 66 6f 6e 74 2e | 20 53 65 65 20 74 68 65 |is font.| See the| |000051b0| 20 4c 61 73 65 72 57 72 | 69 74 65 72 20 52 65 66 | LaserWr|iter Ref| |000051c0| 65 72 65 6e 63 65 20 4d | 61 6e 75 61 6c 20 66 6f |erence M|anual fo| |000051d0| 72 20 64 65 74 61 69 6c | 73 2e 0d 69 73 2e 66 6f |r detail|s..is.fo| |000051e0| 6e 74 49 6e 66 6f 2e 73 | 61 74 69 73 66 69 65 64 |ntInfo.s|atisfied| |000051f0| 0d 72 65 74 75 72 6e 65 | 64 20 62 79 20 74 68 65 |.returne|d by the| |00005200| 20 50 53 46 6f 6e 74 49 | 6e 66 6f 20 63 61 6c 6c | PSFontI|nfo call| |00005210| 20 6f 6e 6c 79 20 66 6f | 72 20 72 65 71 75 65 73 | only fo|r reques| |00005220| 74 73 20 77 68 65 72 65 | 20 74 68 65 20 51 75 69 |ts where| the Qui| |00005230| 63 6b 44 72 61 77 20 69 | 64 20 61 6e 64 20 73 74 |ckDraw i|d and st| |00005240| 79 6c 65 20 61 72 65 20 | 75 73 65 64 2e 20 54 68 |yle are |used. Th| |00005250| 69 73 20 66 69 65 6c 64 | 20 69 73 20 61 20 73 74 |is field| is a st| |00005260| 79 6c 65 20 62 79 74 65 | 20 63 6f 72 72 65 73 70 |yle byte| corresp| |00005270| 6f 6e 64 69 6e 67 20 74 | 6f 20 74 68 65 20 73 74 |onding t|o the st| |00005280| 79 6c 65 20 6f 66 20 74 | 68 65 20 50 6f 73 74 53 |yle of t|he PostS| |00005290| 63 72 69 70 74 20 66 6f | 6e 74 20 66 6f 75 6e 64 |cript fo|nt found| |000052a0| 2e 20 42 69 74 73 20 66 | 72 6f 6d 20 74 68 65 20 |. Bits f|rom the | |000052b0| 73 74 79 6c 65 20 66 69 | 65 6c 64 20 77 68 69 63 |style fi|eld whic| |000052c0| 68 20 61 72 65 20 6e 6f | 74 20 69 6e 20 74 68 65 |h are no|t in the| |000052d0| 20 73 61 74 69 73 66 69 | 65 64 20 62 79 74 65 20 | satisfi|ed byte | |000052e0| 6d 75 73 74 20 62 65 20 | 64 65 72 69 76 65 64 20 |must be |derived | |000052f0| 66 72 6f 6d 20 74 68 65 | 20 66 6f 6e 74 20 77 68 |from the| font wh| |00005300| 69 63 68 20 69 73 20 66 | 6f 75 6e 64 2e 20 54 68 |ich is f|ound. Th| |00005310| 61 74 20 69 73 2c 20 74 | 6f 44 65 72 69 76 65 20 |at is, t|oDerive | |00005320| 3d 20 73 74 79 6c 65 20 | 26 20 7e 73 61 74 69 73 |= style |& ~satis| |00005330| 66 69 65 64 2e 0d 69 73 | 2e 66 6f 6e 74 49 6e 66 |fied..is|.fontInf| |00005340| 6f 2e 6e 52 65 73 6f 75 | 72 63 65 73 0d 72 65 74 |o.nResou|rces.ret| |00005350| 75 72 6e 65 64 20 62 79 | 20 74 68 65 20 50 53 46 |urned by| the PSF| |00005360| 6f 6e 74 49 6e 66 6f 20 | 63 61 6c 6c 2e 20 54 68 |ontInfo |call. Th| |00005370| 69 73 20 76 61 6c 75 65 | 20 69 6e 64 69 63 61 74 |is value| indicat| |00005380| 65 73 20 74 68 65 20 6e | 75 6d 62 65 72 20 6f 66 |es the n|umber of| |00005390| 20 72 65 73 6f 75 72 63 | 65 73 20 72 65 71 75 69 | resourc|es requi| |000053a0| 72 65 64 20 66 6f 72 20 | 74 68 69 73 20 66 6f 6e |red for |this fon| |000053b0| 74 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |t. For e|xample, | |000053c0| 61 20 54 72 75 65 54 79 | 70 65 20 66 6f 6e 74 20 |a TrueTy|pe font | |000053d0| 6d 61 79 20 72 65 71 75 | 69 72 65 20 32 20 72 65 |may requ|ire 2 re| |000053e0| 73 6f 75 72 63 65 73 20 | 73 75 63 68 20 61 73 20 |sources |such as | |000053f0| 74 68 65 20 73 63 61 6c | 65 72 20 61 6e 64 20 74 |the scal|er and t| |00005400| 68 65 20 61 63 74 75 61 | 6c 20 54 72 75 65 54 79 |he actua|l TrueTy| |00005410| 70 65 20 66 6f 6e 74 2e | 20 49 6e 20 74 68 65 20 |pe font.| In the | |00005420| 73 61 6d 65 20 77 61 79 | 2c 20 61 20 6d 75 6c 74 |same way|, a mult| |00005430| 69 70 6c 65 20 6d 61 73 | 74 65 72 20 66 6f 6e 74 |iple mas|ter font| |00005440| 20 77 69 6c 6c 20 68 61 | 76 65 20 74 77 6f 3b 20 | will ha|ve two; | |00005450| 74 68 65 20 62 61 73 65 | 20 66 6f 6e 74 20 61 6e |the base| font an| |00005460| 64 20 74 68 65 20 63 61 | 6c 6c 20 74 6f 20 6d 61 |d the ca|ll to ma| |00005470| 6b 65 62 6c 65 6e 64 65 | 64 66 6f 6e 74 20 74 6f |keblende|dfont to| |00005480| 20 6d 61 6b 65 20 74 68 | 65 20 6e 65 63 65 73 73 | make th|e necess| |00005490| 61 72 79 20 62 6c 65 6e | 64 20 61 6e 64 20 64 65 |ary blen|d and de| |000054a0| 66 69 6e 65 20 74 68 65 | 20 6e 61 6d 65 20 69 6e |fine the| name in| |000054b0| 20 70 73 4e 61 6d 65 20 | 69 6e 74 6f 20 46 6f 6e | psName |into Fon| |000054c0| 74 44 69 72 65 63 74 6f | 72 79 2e 0d 69 73 2e 66 |tDirecto|ry..is.f| |000054d0| 6f 6e 74 49 6e 66 6f 2e | 72 65 73 6f 75 72 63 65 |ontInfo.|resource| |000054e0| 0d 72 65 74 75 72 6e 65 | 64 20 62 79 20 74 68 65 |.returne|d by the| |000054f0| 20 50 53 46 6f 6e 74 49 | 6e 66 6f 20 63 61 6c 6c | PSFontI|nfo call| |00005500| 2e 20 54 68 69 73 20 66 | 69 65 6c 64 20 69 73 20 |. This f|ield is | |00005510| 61 6e 20 61 72 72 61 79 | 20 6f 66 20 69 6e 64 65 |an array| of inde| |00005520| 78 65 73 20 69 6e 74 6f | 20 74 68 65 20 72 65 73 |xes into| the res| |00005530| 6f 75 72 63 65 73 20 63 | 6f 6c 6c 65 63 74 65 64 |ources c|ollected| |00005540| 20 69 6e 74 6f 20 74 68 | 65 20 64 61 74 61 20 66 | into th|e data f| |00005550| 69 65 6c 64 2e 20 54 68 | 69 73 20 66 69 65 6c 64 |ield. Th|is field| |00005560| 2c 20 74 6f 67 65 74 68 | 65 72 20 77 69 74 68 20 |, togeth|er with | |00005570| 6e 52 65 73 6f 75 72 63 | 65 73 2c 20 63 61 6e 20 |nResourc|es, can | |00005580| 62 65 20 75 73 65 64 20 | 62 79 20 61 70 70 6c 69 |be used |by appli| |00005590| 63 61 74 69 6f 6e 73 20 | 74 68 61 74 20 77 61 6e |cations |that wan| |000055a0| 74 20 74 6f 20 64 6f 77 | 6e 6c 6f 61 64 20 66 6f |t to dow|nload fo| |000055b0| 6e 74 73 20 73 65 6c 65 | 63 74 69 76 6c 79 2e 20 |nts sele|ctivly. | |000055c0| 54 68 69 73 20 69 73 20 | 74 68 65 20 63 61 73 65 |This is |the case| |000055d0| 2c 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 69 |, for ex|ample, i| |000055e0| 66 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |f the ap|plicatio| |000055f0| 6e 20 63 68 6f 6f 73 65 | 73 20 74 6f 20 64 6f 20 |n choose|s to do | |00005600| 63 61 72 65 66 75 6c 20 | 6d 65 6d 6f 72 79 20 6d |careful |memory m| |00005610| 61 6e 61 67 65 6d 65 6e | 74 2e 0d 69 73 2e 66 6f |anagemen|t..is.fo| |00005620| 6e 74 49 6e 66 6f 2e 64 | 61 74 61 0d 70 61 73 73 |ntInfo.d|ata.pass| |00005630| 65 64 20 69 6e 20 61 6e | 64 20 72 65 74 75 72 6e |ed in an|d return| |00005640| 65 64 20 62 79 20 74 68 | 65 20 50 53 46 6f 6e 74 |ed by th|e PSFont| |00005650| 49 6e 66 6f 20 63 61 6c | 6c 2e 20 46 6f 72 20 74 |Info cal|l. For t| |00005660| 68 65 20 66 69 72 73 74 | 20 63 61 6c 6c 2c 20 74 |he first| call, t| |00005670| 68 69 73 20 76 61 6c 75 | 65 20 73 68 6f 75 6c 64 |his valu|e should| |00005680| 20 62 65 20 73 65 74 20 | 74 6f 20 61 20 68 61 6e | be set |to a han| |00005690| 64 6c 65 20 77 68 6f 73 | 65 20 73 69 7a 65 20 69 |dle whos|e size i| |000056a0| 73 20 7a 65 72 6f 2e 20 | 54 68 65 20 72 65 74 75 |s zero. |The retu| |000056b0| 72 6e 65 64 20 76 61 6c | 75 65 20 69 73 20 61 20 |rned val|ue is a | |000056c0| 68 61 6e 64 6c 65 20 74 | 6f 20 61 6e 20 61 72 72 |handle t|o an arr| |000056d0| 61 79 20 6f 66 20 72 65 | 73 6f 75 72 63 65 73 20 |ay of re|sources | |000056e0| 6e 65 63 65 73 73 61 72 | 79 20 74 6f 20 72 65 71 |necessar|y to req| |000056f0| 75 65 73 74 20 6c 61 74 | 65 72 20 66 72 6f 6d 20 |uest lat|er from | |00005700| 50 72 47 65 6e 65 72 61 | 6c 2e 20 54 68 65 20 68 |PrGenera|l. The h| |00005710| 61 6e 64 6c 65 20 63 6f | 6e 74 61 69 6e 73 20 54 |andle co|ntains T| |00005720| 50 53 41 64 6f 62 65 20 | 73 74 72 75 63 74 73 2c |PSAdobe |structs,| |00005730| 20 66 75 6c 6c 79 20 69 | 6e 69 74 69 61 6c 69 7a | fully i|nitializ| |00005740| 65 64 20 73 6f 20 74 68 | 61 74 20 74 68 65 79 20 |ed so th|at they | |00005750| 6d 61 79 20 62 65 20 70 | 61 73 73 65 64 20 69 6e |may be p|assed in| |00005760| 74 6f 20 50 72 47 65 6e | 65 72 61 6c 2e 20 4e 6f |to PrGen|eral. No| |00005770| 74 69 63 65 20 74 68 61 | 74 20 74 68 65 20 73 74 |tice tha|t the st| |00005780| 72 75 63 74 75 72 65 20 | 70 61 73 73 65 64 20 69 |ructure |passed i| |00005790| 6e 20 74 6f 20 50 53 46 | 6f 6e 74 49 6e 66 6f 20 |n to PSF|ontInfo | |000057a0| 77 69 6c 6c 20 62 65 20 | 75 73 65 64 20 61 73 20 |will be |used as | |000057b0| 61 20 74 65 6d 70 6c 61 | 74 65 20 77 68 65 6e 20 |a templa|te when | |000057c0| 73 74 6f 72 69 6e 67 20 | 69 6e 74 6f 20 64 61 74 |storing |into dat| |000057d0| 61 2e 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |a. For e|xample, | |000057e0| 74 68 65 20 6f 70 20 66 | 69 65 6c 64 20 6d 75 73 |the op f|ield mus| |000057f0| 74 20 62 65 20 73 65 74 | 20 62 65 66 6f 72 65 20 |t be set| before | |00005800| 74 68 65 20 66 69 72 73 | 74 20 63 61 6c 6c 20 74 |the firs|t call t| |00005810| 6f 20 50 53 46 6f 6e 74 | 49 6e 66 6f 20 73 6f 20 |o PSFont|Info so | |00005820| 74 68 61 74 20 74 68 65 | 20 63 6f 72 72 65 73 70 |that the| corresp| |00005830| 6f 6e 64 69 6e 67 20 64 | 61 74 61 20 65 6e 74 72 |onding d|ata entr| |00005840| 79 20 77 69 6c 6c 20 68 | 61 76 65 20 74 68 69 73 |y will h|ave this| |00005850| 20 66 69 65 6c 64 20 73 | 65 74 2e 20 54 68 69 73 | field s|et. This| |00005860| 20 61 72 72 61 79 20 63 | 6f 6e 74 69 6e 75 65 73 | array c|ontinues| |00005870| 20 74 6f 20 65 78 70 61 | 6e 64 20 61 73 20 6e 65 | to expa|nd as ne| |00005880| 63 65 73 73 61 72 79 20 | 66 6f 72 20 65 61 63 68 |cessary |for each| |00005890| 20 73 75 62 73 65 71 75 | 65 6e 74 20 63 61 6c 6c | subsequ|ent call| |000058a0| 20 74 6f 20 50 72 47 65 | 6e 65 72 61 6c 20 63 61 | to PrGe|neral ca| |000058b0| 6c 6c 73 20 77 69 74 68 | 20 74 68 65 20 50 53 46 |lls with| the PSF| |000058c0| 6f 6e 74 49 6e 66 6f 20 | 73 65 6c 65 63 74 6f 72 |ontInfo |selector| |000058d0| 2e 20 20 46 6f 72 20 65 | 78 61 6d 70 6c 65 2c 20 |. For e|xample, | |000058e0| 69 66 20 74 77 6f 20 54 | 72 75 65 54 79 70 65 20 |if two T|rueType | |000058f0| 66 6f 6e 74 73 20 61 72 | 65 20 72 65 71 75 65 73 |fonts ar|e reques| |00005900| 74 65 64 2c 20 74 68 65 | 20 74 6f 74 61 6c 20 6e |ted, the| total n| |00005910| 75 6d 62 65 72 20 6f 66 | 20 72 65 73 6f 75 72 63 |umber of| resourc| |00005920| 65 73 20 72 65 74 75 72 | 6e 65 64 20 69 6e 20 64 |es retur|ned in d| |00005930| 61 74 61 20 77 69 6c 6c | 20 62 65 20 74 68 72 65 |ata will| be thre| |00005940| 65 3a 20 74 68 65 20 54 | 72 75 65 54 79 70 65 20 |e: the T|rueType | |00005950| 73 63 61 6c 65 72 20 61 | 6e 64 20 74 68 65 6e 20 |scaler a|nd then | |00005960| 74 77 6f 20 54 72 75 65 | 54 79 70 65 20 66 6f 6e |two True|Type fon| |00005970| 74 20 64 65 66 69 6e 74 | 69 6f 6e 73 2e 0d 4f 6e |t defint|ions..On| |00005980| 63 65 20 74 68 65 20 66 | 6f 6e 74 73 20 66 6f 72 |ce the f|onts for| |00005990| 20 77 68 69 63 68 20 64 | 61 74 61 20 69 73 20 72 | which d|ata is r| |000059a0| 65 71 75 69 72 65 64 20 | 61 72 65 20 70 61 73 73 |equired |are pass| |000059b0| 65 64 20 69 6e 74 6f 20 | 63 61 6c 6c 73 20 74 6f |ed into |calls to| |000059c0| 20 50 72 47 65 6e 65 72 | 61 6c 20 77 69 74 68 20 | PrGener|al with | |000059d0| 74 68 65 20 50 53 46 6f | 6e 74 49 6e 66 6f 20 73 |the PSFo|ntInfo s| |000059e0| 65 6c 65 63 74 6f 72 2c | 20 69 74 20 69 73 20 61 |elector,| it is a| |000059f0| 70 70 72 6f 70 72 69 61 | 74 65 20 74 6f 20 61 63 |ppropria|te to ac| |00005a00| 74 75 61 6c 6c 79 20 72 | 65 71 75 65 73 74 20 74 |tually r|equest t| |00005a10| 68 65 20 66 6f 6e 74 20 | 64 61 74 61 20 28 72 61 |he font |data (ra| |00005a20| 74 68 65 72 20 74 68 61 | 6e 20 74 68 65 20 69 6e |ther tha|n the in| |00005a30| 66 6f 29 20 66 72 6f 6d | 20 50 72 47 65 6e 65 72 |fo) from| PrGener| |00005a40| 61 6c 2e 20 54 68 65 20 | 64 61 74 61 20 73 74 6f |al. The |data sto| |00005a50| 72 65 64 20 69 6e 20 74 | 68 65 20 69 73 2e 66 6f |red in t|he is.fo| |00005a60| 6e 74 49 6e 66 6f 2e 64 | 61 74 61 20 66 69 65 6c |ntInfo.d|ata fiel| |00005a70| 64 20 69 73 20 74 68 65 | 20 64 61 74 61 20 61 70 |d is the| data ap| |00005a80| 70 72 6f 70 72 69 61 74 | 65 20 74 6f 20 70 61 73 |propriat|e to pas| |00005a90| 73 20 74 6f 20 50 72 47 | 65 6e 65 72 61 6c 2e 20 |s to PrG|eneral. | |00005aa0| 54 68 65 20 73 69 7a 65 | 20 6f 66 20 74 68 65 20 |The size| of the | |00005ab0| 61 72 72 61 79 20 69 6e | 20 74 68 65 20 68 61 6e |array in| the han| |00005ac0| 64 6c 65 20 69 6e 20 74 | 68 61 74 20 66 69 65 6c |dle in t|hat fiel| |00005ad0| 64 20 63 61 6e 20 62 65 | 20 63 6f 6d 70 75 74 65 |d can be| compute| |00005ae0| 64 20 62 79 0d 6e 20 3d | 20 47 65 74 48 61 6e 64 |d by.n =| GetHand| |00005af0| 6c 65 53 69 7a 65 28 28 | 48 61 6e 64 6c 65 29 61 |leSize((|Handle)a| |00005b00| 2e 69 73 2e 66 6f 6e 74 | 49 6e 66 6f 2e 64 61 74 |.is.font|Info.dat| |00005b10| 61 29 20 2f 20 09 09 09 | 73 69 7a 65 6f 66 28 2a |a) / ...|sizeof(*| |00005b20| 2a 61 2e 69 73 2e 66 6f | 6e 74 49 6e 66 6f 2e 64 |*a.is.fo|ntInfo.d| |00005b30| 61 74 61 29 3b 0d 2f 2a | 20 6e 20 69 73 20 6e 75 |ata);./*| n is nu| |00005b40| 6d 62 65 72 20 6f 66 20 | 72 65 6f 75 72 63 65 73 |mber of |reources| |00005b50| 20 69 6e 20 61 2e 69 73 | 2e 66 6f 6e 74 49 6e 66 | in a.is|.fontInf| |00005b60| 6f 2e 64 61 74 61 20 2a | 2f 0d 54 6f 20 61 63 74 |o.data *|/.To act| |00005b70| 75 61 6c 6c 79 20 67 61 | 74 68 65 72 20 74 68 65 |ually ga|ther the| |00005b80| 20 64 61 74 61 20 66 6f | 72 20 61 6c 6c 20 74 68 | data fo|r all th| |00005b90| 65 20 72 65 73 6f 75 72 | 63 65 73 20 77 68 69 63 |e resour|ces whic| |00005ba0| 68 20 61 72 65 20 6e 65 | 63 65 73 73 61 72 79 20 |h are ne|cessary | |00005bb0| 66 6f 72 20 61 6c 6c 20 | 74 68 65 20 66 6f 6e 74 |for all |the font| |00005bc0| 20 72 65 71 75 65 73 74 | 65 64 20 69 6e 20 74 68 | request|ed in th| |00005bd0| 65 20 63 61 6c 6c 73 20 | 74 6f 20 50 53 46 6f 6e |e calls |to PSFon| |00005be0| 74 49 6e 66 6f 20 65 61 | 63 68 20 72 65 73 6f 75 |tInfo ea|ch resou| |00005bf0| 72 63 65 20 63 61 6e 20 | 62 65 20 70 61 73 73 65 |rce can |be passe| |00005c00| 64 20 74 6f 20 50 72 47 | 65 6e 65 72 61 6c 20 64 |d to PrG|eneral d| |00005c10| 69 72 65 63 74 6c 79 2e | 20 55 70 6f 6e 20 74 68 |irectly.| Upon th| |00005c20| 65 73 65 20 63 61 6c 6c | 73 20 74 6f 20 50 72 47 |ese call|s to PrG| |00005c30| 65 6e 65 72 61 6c 2c 20 | 74 68 65 20 63 61 6c 6c |eneral, |the call| |00005c40| 62 61 63 6b 20 66 75 6e | 63 74 69 6f 6e 20 77 69 |back fun|ction wi| |00005c50| 6c 6c 20 62 65 20 63 61 | 6c 6c 65 64 20 61 6e 64 |ll be ca|lled and| |00005c60| 20 74 68 65 20 72 65 71 | 75 65 73 74 65 64 20 66 | the req|uested f| |00005c70| 6f 6e 74 20 64 61 74 61 | 20 77 69 6c 6c 20 62 65 |ont data| will be| |00005c80| 20 73 74 72 65 61 6d 65 | 64 20 74 6f 20 74 68 65 | streame|d to the| |00005c90| 20 61 70 70 6c 69 63 61 | 74 69 6f 6e 20 63 61 6c | applica|tion cal| |00005ca0| 6c 62 61 63 6b 73 3a 0d | 66 6f 72 20 28 69 20 3d |lbacks:.|for (i =| |00005cb0| 20 30 3b 20 69 20 3c 20 | 6e 3b 20 2b 2b 69 29 20 | 0; i < |n; ++i) | |00005cc0| 7b 0d 09 2f 2a 20 6e 6f | 77 20 66 6f 72 20 74 68 |{../* no|w for th| |00005cd0| 65 20 69 2d 74 68 20 72 | 65 73 6f 75 72 63 65 20 |e i-th r|esource | |00005ce0| 2a 2f 0d 09 50 72 47 65 | 6e 65 72 61 6c 28 28 50 |*/..PrGe|neral((P| |00005cf0| 74 72 29 26 28 2a 61 2e | 69 73 2e 66 6f 6e 74 49 |tr)&(*a.|is.fontI| |00005d00| 6e 66 6f 2e 64 61 74 61 | 29 5b 69 5d 29 3b 0d 09 |nfo.data|)[i]);..| |00005d10| 09 2f 2a 20 6e 6f 77 20 | 64 61 74 61 20 69 73 20 |./* now |data is | |00005d20| 73 65 6e 74 20 74 6f 20 | 63 61 6c 6c 62 61 63 6b |sent to |callback| |00005d30| 20 2a 2f 0d 7d 0d 41 73 | 20 77 69 74 68 20 74 68 | */.}.As| with th| |00005d40| 65 20 50 69 63 74 20 74 | 6f 20 45 50 53 20 66 75 |e Pict t|o EPS fu| |00005d50| 6e 63 74 69 6f 6e 2c 20 | 74 68 65 20 6f 70 20 66 |nction, |the op f| |00005d60| 69 65 6c 64 20 6f 66 20 | 74 68 65 20 69 6e 70 75 |ield of |the inpu| |00005d70| 74 20 64 61 74 61 20 74 | 6f 20 50 72 47 65 6e 65 |t data t|o PrGene| |00005d80| 72 61 6c 20 66 6f 72 20 | 74 68 69 73 20 63 61 6c |ral for |this cal| |00005d90| 6c 20 69 73 20 61 20 70 | 6f 69 6e 74 65 72 20 74 |l is a p|ointer t| |00005da0| 6f 20 74 68 65 20 61 70 | 70 6c 69 63 61 74 69 6f |o the ap|plicatio| |00005db0| 6e 20 70 72 6f 76 69 64 | 65 64 20 63 61 6c 6c 62 |n provid|ed callb| |00005dc0| 61 63 6b 20 66 75 6e 63 | 74 69 6f 6e 20 77 68 69 |ack func|tion whi| |00005dd0| 63 68 20 77 69 6c 6c 20 | 72 65 63 65 69 76 65 20 |ch will |receive | |00005de0| 74 68 65 20 50 6f 73 74 | 53 63 72 69 70 74 20 64 |the Post|Script d| |00005df0| 61 74 61 20 73 74 72 65 | 61 6d 20 66 72 6f 6d 20 |ata stre|am from | |00005e00| 50 53 57 72 69 74 65 72 | 20 64 75 72 69 6e 67 20 |PSWriter| during | |00005e10| 74 68 65 20 72 65 71 75 | 65 73 74 20 66 6f 72 20 |the requ|est for | |00005e20| 74 68 65 20 66 6f 6e 74 | 20 64 61 74 61 20 69 74 |the font| data it| |00005e30| 73 65 6c 66 2e 20 54 68 | 65 20 66 75 6e 63 74 69 |self. Th|e functi| |00005e40| 6f 6e 20 64 65 63 6c 61 | 72 61 74 69 6f 6e 20 66 |on decla|ration f| |00005e50| 6f 72 20 74 68 69 73 20 | 63 61 6c 6c 62 61 63 6b |or this |callback| |00005e60| 20 66 75 6e 63 74 69 6f | 6e 20 69 73 3a 0d 73 74 | functio|n is:.st| |00005e70| 61 74 69 63 20 4f 53 45 | 72 72 20 63 6f 6d 6d 4f |atic OSE|rr commO| |00005e80| 75 74 28 50 74 72 20 62 | 75 66 66 65 72 2c 20 6c |ut(Ptr b|uffer, l| |00005e90| 6f 6e 67 20 6e 42 79 74 | 65 73 29 3b 0d 50 53 57 |ong nByt|es);.PSW| |00005ea0| 72 69 74 65 72 20 70 72 | 6f 76 69 64 65 73 20 6e |riter pr|ovides n| |00005eb0| 6f 20 62 75 66 66 65 72 | 69 6e 67 20 69 6e 74 6f |o buffer|ing into| |00005ec0| 20 74 68 65 20 6f 75 74 | 70 75 74 20 70 72 6f 63 | the out|put proc| |00005ed0| 65 64 75 72 65 2e 20 53 | 69 6e 63 65 20 50 53 57 |edure. S|ince PSW| |00005ee0| 72 69 74 65 72 20 77 72 | 69 74 65 73 20 6f 75 74 |riter wr|ites out| |00005ef0| 20 69 74 73 20 64 61 74 | 61 20 74 6f 20 74 68 69 | its dat|a to thi| |00005f00| 73 20 70 72 6f 63 65 64 | 75 72 65 20 69 6e 20 6c |s proced|ure in l| |00005f10| 6f 74 73 20 6f 66 20 76 | 65 72 79 20 73 6d 61 6c |ots of v|ery smal| |00005f20| 6c 20 70 69 65 63 65 73 | 2c 20 69 74 20 69 73 20 |l pieces|, it is | |00005f30| 73 74 72 6f 6e 67 6c 79 | 20 72 65 6f 6d 6d 65 6e |strongly| reommen| |00005f40| 64 65 64 20 74 68 61 74 | 20 74 68 65 20 61 70 70 |ded that| the app| |00005f50| 6c 69 63 61 74 69 6f 6e | 20 70 72 6f 76 69 64 65 |lication| provide| |00005f60| 20 62 75 66 66 65 72 69 | 6e 67 20 66 6f 72 20 74 | bufferi|ng for t| |00005f70| 68 65 20 64 61 74 61 20 | 61 73 20 69 74 20 69 73 |he data |as it is| |00005f80| 20 63 61 6c 6c 65 64 20 | 62 79 20 74 68 65 20 64 | called |by the d| |00005f90| 72 69 76 65 72 2e 20 0d | 54 68 69 73 20 64 69 73 |river. .|This dis| |00005fa0| 63 75 73 73 69 6f 6e 20 | 69 73 20 6b 6e 6f 77 6e |cussion |is known| |00005fb0| 20 74 6f 20 62 65 20 69 | 6e 61 64 65 71 75 61 74 | to be i|nadequat| |00005fc0| 65 20 74 6f 20 66 75 6c | 6c 79 20 64 65 73 63 72 |e to ful|ly descr| |00005fd0| 69 62 65 20 74 68 69 73 | 20 70 6f 72 74 69 6f 6e |ibe this| portion| |00005fe0| 20 6f 66 20 74 68 65 20 | 50 72 47 65 6e 65 72 61 | of the |PrGenera| |00005ff0| 6c 20 63 61 6c 6c 2e 20 | 43 6f 6e 73 75 6c 61 74 |l call. |Consulat| |00006000| 69 6f 6e 20 6f 66 20 74 | 68 65 20 65 78 61 6d 70 |ion of t|he examp| |00006010| 6c 65 20 63 6f 64 65 20 | 70 72 6f 76 69 64 65 64 |le code |provided| |00006020| 20 61 6c 6f 6e 67 20 77 | 69 74 68 20 74 68 69 73 | along w|ith this| |00006030| 20 64 6f 63 75 6d 65 6e | 74 20 69 73 20 73 74 72 | documen|t is str| |00006040| 6f 6e 67 6c 79 20 72 65 | 63 6f 6d 6d 65 6e 64 65 |ongly re|commende| |00006050| 64 2e 0d 37 2e 35 09 70 | 6f 73 74 73 63 72 69 70 |d..7.5.p|ostscrip| |00006060| 74 66 69 6c 65 20 70 69 | 63 63 6f 6d 6d 65 6e 74 |tfile pi|ccomment| |00006070| 20 65 78 74 65 6e 73 69 | 6f 6e 0d 50 53 57 72 69 | extensi|on.PSWri| |00006080| 74 65 72 20 6e 6f 77 20 | 73 75 70 70 6f 72 74 73 |ter now |supports| |00006090| 20 74 68 65 20 50 6f 73 | 74 53 63 72 69 70 74 46 | the Pos|tScriptF| |000060a0| 69 6c 65 20 50 69 63 43 | 6f 6d 6d 65 6e 74 20 6e |ile PicC|omment n| |000060b0| 75 6d 62 65 72 20 31 39 | 33 2e 20 41 73 20 77 69 |umber 19|3. As wi| |000060c0| 74 68 20 61 6c 6c 20 50 | 69 63 43 6f 6d 6d 65 6e |th all P|icCommen| |000060d0| 74 73 20 74 68 65 20 73 | 65 63 6f 6e 64 20 61 72 |ts the s|econd ar| |000060e0| 67 75 6d 65 6e 74 20 69 | 73 20 74 68 65 20 73 69 |gument i|s the si| |000060f0| 7a 65 20 6f 66 20 74 68 | 65 20 64 61 74 61 20 73 |ze of th|e data s| |00006100| 70 65 63 69 66 69 65 64 | 20 69 6e 20 74 68 65 20 |pecified| in the | |00006110| 64 61 74 61 20 68 61 6e | 64 6c 65 20 70 61 73 73 |data han|dle pass| |00006120| 65 64 20 69 6e 74 6f 20 | 74 68 65 20 50 69 63 43 |ed into |the PicC| |00006130| 6f 6d 6d 65 6e 74 2e 20 | 46 6f 72 20 74 68 69 73 |omment. |For this| |00006140| 20 63 6f 6d 6d 65 6e 74 | 2c 20 74 68 65 20 68 61 | comment|, the ha| |00006150| 6e 64 6c 65 20 69 74 73 | 65 6c 66 20 63 6f 6e 74 |ndle its|elf cont| |00006160| 61 69 6e 73 20 61 20 50 | 61 73 63 61 6c 20 73 74 |ains a P|ascal st| |00006170| 72 69 6e 67 20 77 68 69 | 63 68 20 69 73 20 74 68 |ring whi|ch is th| |00006180| 65 20 6e 61 6d 65 20 6f | 66 20 74 68 65 20 66 69 |e name o|f the fi| |00006190| 6c 65 20 74 6f 20 62 65 | 20 69 6e 63 6c 75 64 65 |le to be| include| |000061a0| 64 2e 20 53 69 6e 63 65 | 20 74 68 65 20 66 69 6c |d. Since| the fil| |000061b0| 65 20 69 74 73 65 6c 66 | 20 77 69 6c 6c 20 6e 6f |e itself| will no| |000061c0| 74 20 62 65 20 66 6f 75 | 6e 64 20 69 6e 20 62 61 |t be fou|nd in ba| |000061d0| 63 6b 67 72 6f 75 6e 64 | 20 70 72 69 6e 74 69 6e |ckground| printin| |000061e0| 67 20 75 6e 74 69 6c 20 | 50 72 69 6e 74 20 4d 6f |g until |Print Mo| |000061f0| 6e 69 74 6f 72 20 72 75 | 6e 73 2c 20 74 68 65 20 |nitor ru|ns, the | |00006200| 66 69 6c 65 6e 61 6d 65 | 20 6d 75 73 74 20 62 65 |filename| must be| |00006210| 20 73 70 65 63 69 66 69 | 65 64 20 65 69 74 68 65 | specifi|ed eithe| |00006220| 72 20 62 79 20 61 20 66 | 75 6c 6c 20 70 61 74 68 |r by a f|ull path| |00006230| 20 6e 61 6d 65 2c 20 6f | 72 20 74 68 65 20 66 69 | name, o|r the fi| |00006240| 6c 65 20 6d 75 73 74 20 | 62 65 20 70 6c 61 63 65 |le must |be place| |00006250| 64 20 69 6e 20 61 20 6c | 6f 63 61 74 69 6f 6e 20 |d in a l|ocation | |00006260| 66 6f 75 6e 64 20 62 79 | 20 74 68 65 20 50 6f 6f |found by| the Poo| |00006270| 72 20 4d 61 6e d5 73 20 | 53 65 61 72 63 68 20 50 |r Man.s |Search P| |00006280| 61 74 68 2e 0d 50 53 57 | 72 69 74 65 72 20 65 78 |ath..PSW|riter ex| |00006290| 70 61 6e 64 73 20 74 68 | 65 20 6d 65 61 6e 69 6e |pands th|e meanin| |000062a0| 67 20 6f 66 20 74 68 65 | 20 50 6f 73 74 53 63 72 |g of the| PostScr| |000062b0| 69 70 74 46 69 6c 65 20 | 50 69 63 43 6f 6d 6d 65 |iptFile |PicComme| |000062c0| 6e 74 2e 20 41 66 74 65 | 72 20 69 6e 63 6c 75 64 |nt. Afte|r includ| |000062d0| 69 6e 67 20 74 68 65 20 | 64 61 74 61 20 69 6e 74 |ing the |data int| |000062e0| 6f 20 74 68 65 20 50 6f | 73 74 53 63 72 69 70 74 |o the Po|stScript| |000062f0| 20 6f 75 74 70 75 74 20 | 73 74 72 65 61 6d 2c 20 | output |stream, | |00006300| 50 53 57 72 69 74 65 72 | 20 75 73 65 73 20 74 68 |PSWriter| uses th| |00006310| 65 20 64 61 74 61 73 69 | 7a 65 20 61 72 67 75 6d |e datasi|ze argum| |00006320| 65 6e 74 20 66 6f 72 20 | 74 68 65 20 50 69 63 43 |ent for |the PicC| |00006330| 6f 6d 6d 65 6e 74 20 63 | 61 6c 6c 20 61 6e 64 20 |omment c|all and | |00006340| 63 6f 6d 70 61 72 65 73 | 20 69 74 20 74 6f 20 74 |compares| it to t| |00006350| 68 65 20 66 69 72 73 74 | 20 62 79 74 65 20 6f 66 |he first| byte of| |00006360| 20 74 68 65 20 64 61 74 | 61 20 69 6e 73 69 64 65 | the dat|a inside| |00006370| 20 74 68 65 20 68 61 6e | 64 6c 65 20 28 77 68 69 | the han|dle (whi| |00006380| 63 68 20 69 73 20 74 68 | 65 20 6c 65 6e 67 74 68 |ch is th|e length| |00006390| 20 62 79 74 65 20 66 6f | 72 20 74 68 65 20 50 61 | byte fo|r the Pa| |000063a0| 73 63 61 6c 20 73 74 72 | 69 6e 67 20 63 6f 72 72 |scal str|ing corr| |000063b0| 65 73 70 6f 6e 64 69 6e | 67 20 74 6f 20 74 68 65 |espondin|g to the| |000063c0| 20 66 69 6c 65 20 6e 61 | 6d 65 29 2e 20 49 66 20 | file na|me). If | |000063d0| 74 68 65 20 64 61 74 61 | 20 73 69 7a 65 20 69 73 |the data| size is| |000063e0| 20 67 72 65 61 74 65 72 | 20 74 68 61 6e 20 74 68 | greater| than th| |000063f0| 65 20 6c 65 6e 67 74 68 | 20 6f 66 20 74 68 65 20 |e length| of the | +--------+-------------------------+-------------------------+--------+--------+ Only 25.0 KB of data is shown above.