/
usr
/
share
/
ghostscript
/
8.70
/
lib
/
/usr/share/ghostscript/8.70/lib
mkdir
upload
Name
Size
Mode
Actions
acctest.ps
4324
0644
edit
dl
rm
addxchar.ps
9848
0644
edit
dl
rm
align.ps
2313
0644
edit
dl
rm
bdftops.ps
23403
0644
edit
dl
rm
bj8.rpd
639
0644
edit
dl
rm
bj8gc12f.upp
1528
0644
edit
dl
rm
bj8hg12f.upp
1527
0644
edit
dl
rm
bj8oh06n.upp
1513
0644
edit
dl
rm
bj8pa06n.upp
1521
0644
edit
dl
rm
bj8pp12f.upp
1538
0644
edit
dl
rm
bj8ts06n.upp
1526
0644
edit
dl
rm
bjc610a0.upp
1523
0644
edit
dl
rm
bjc610a1.upp
1512
0644
edit
dl
rm
bjc610a2.upp
1513
0644
edit
dl
rm
bjc610a3.upp
1518
0644
edit
dl
rm
bjc610a4.upp
1526
0644
edit
dl
rm
bjc610a5.upp
1513
0644
edit
dl
rm
bjc610a6.upp
1513
0644
edit
dl
rm
bjc610a7.upp
1516
0644
edit
dl
rm
bjc610a8.upp
1522
0644
edit
dl
rm
bjc610b1.upp
1512
0644
edit
dl
rm
bjc610b2.upp
1513
0644
edit
dl
rm
bjc610b3.upp
1518
0644
edit
dl
rm
bjc610b4.upp
1526
0644
edit
dl
rm
bjc610b6.upp
1513
0644
edit
dl
rm
bjc610b7.upp
1517
0644
edit
dl
rm
bjc610b8.upp
1522
0644
edit
dl
rm
bjc6000a1.upp
1660
0644
edit
dl
rm
bjc6000b1.upp
1660
0644
edit
dl
rm
caption.ps
1721
0644
edit
dl
rm
cbjc600.ppd
11040
0644
edit
dl
rm
cbjc800.ppd
11383
0644
edit
dl
rm
cdj550.upp
1686
0644
edit
dl
rm
cdj690.upp
1995
0644
edit
dl
rm
cdj690ec.upp
2056
0644
edit
dl
rm
cid2code.ps
4475
0644
edit
dl
rm
decrypt.ps
350
0644
edit
dl
rm
dmp_init.ps
7246
0644
edit
dl
rm
dmp_site.ps
459
0644
edit
dl
rm
dnj750c.upp
2804
0644
edit
dl
rm
dnj750m.upp
1971
0644
edit
dl
rm
docie.ps
7373
0644
edit
dl
rm
dumphint.ps
20044
0644
edit
dl
rm
escp_24.src
350
0644
edit
dl
rm
font2c.ps
19591
0644
edit
dl
rm
font2pcl.ps
17568
0644
edit
dl
rm
ghostpdf.ppd
25643
0644
edit
dl
rm
gslp.ps
19643
0644
edit
dl
rm
gsnup.ps
2725
0644
edit
dl
rm
gs_ce_e.ps
2364
0644
edit
dl
rm
gs_cmdl.ps
4844
0644
edit
dl
rm
gs_fform.ps
3162
0644
edit
dl
rm
gs_il2_e.ps
2777
0644
edit
dl
rm
gs_kanji.ps
3942
0644
edit
dl
rm
gs_ksb_e.ps
3291
0644
edit
dl
rm
gs_l.xbm
1945
0644
edit
dl
rm
gs_l.xpm
2751
0644
edit
dl
rm
gs_lgo_e.ps
2886
0644
edit
dl
rm
gs_lgx_e.ps
1912
0644
edit
dl
rm
gs_l_m.xbm
1955
0644
edit
dl
rm
gs_m.xbm
945
0644
edit
dl
rm
gs_m.xpm
1437
0644
edit
dl
rm
gs_m_m.xbm
955
0644
edit
dl
rm
gs_pfile.ps
4349
0644
edit
dl
rm
gs_rdlin.ps
862
0644
edit
dl
rm
gs_s.xbm
594
0644
edit
dl
rm
gs_s.xpm
957
0644
edit
dl
rm
gs_s_m.xbm
604
0644
edit
dl
rm
gs_t.xbm
345
0644
edit
dl
rm
gs_t.xpm
605
0644
edit
dl
rm
gs_t_m.xbm
355
0644
edit
dl
rm
gs_wl1_e.ps
2530
0644
edit
dl
rm
gs_wl2_e.ps
2528
0644
edit
dl
rm
gs_wl5_e.ps
2546
0644
edit
dl
rm
ht_ccsto.ps
228194
0644
edit
dl
rm
image-qa.ps
73323
0644
edit
dl
rm
impath.ps
5538
0644
edit
dl
rm
jispaper.ps
930
0644
edit
dl
rm
landscap.ps
1525
0644
edit
dl
rm
level1.ps
110
0644
edit
dl
rm
lines.ps
3868
0644
edit
dl
rm
markhint.ps
3473
0644
edit
dl
rm
markpath.ps
1890
0644
edit
dl
rm
mkcidfm.ps
7305
0644
edit
dl
rm
necp2x.upp
1041
0644
edit
dl
rm
necp2x6.upp
1065
0644
edit
dl
rm
packfile.ps
10358
0644
edit
dl
rm
pcharstr.ps
3584
0644
edit
dl
rm
pdf2dsc.ps
8377
0644
edit
dl
rm
PDFA_def.ps
1170
0644
edit
dl
rm
pdfopt.ps
36516
0644
edit
dl
rm
pdfwrite.ps
11676
0644
edit
dl
rm
PDFX_def.ps
1868
0644
edit
dl
rm
pf2afm.ps
15351
0644
edit
dl
rm
pfbtopfa.ps
1141
0644
edit
dl
rm
PM760p.upp
1160
0644
edit
dl
rm
PM760pl.upp
1124
0644
edit
dl
rm
PM820p.upp
1142
0644
edit
dl
rm
PM820pl.upp
1117
0644
edit
dl
rm
ppath.ps
1974
0644
edit
dl
rm
pphs
391
0644
edit
dl
rm
pphs.ps
6922
0644
edit
dl
rm
prfont.ps
6487
0644
edit
dl
rm
printafm.ps
3775
0644
edit
dl
rm
ps2ai.ps
22485
0644
edit
dl
rm
ps2ascii.ps
44618
0644
edit
dl
rm
ps2epsi.ps
8187
0644
edit
dl
rm
quit.ps
5
0644
edit
dl
rm
ras1.upp
211
0644
edit
dl
rm
ras3.upp
210
0644
edit
dl
rm
ras4.upp
216
0644
edit
dl
rm
ras8m.upp
205
0644
edit
dl
rm
ras24.upp
215
0644
edit
dl
rm
ras32.upp
192
0644
edit
dl
rm
rollconv.ps
11765
0644
edit
dl
rm
s400a1.upp
1454
0644
edit
dl
rm
s400b1.upp
1603
0644
edit
dl
rm
sharp.upp
1936
0644
edit
dl
rm
showchar.ps
2932
0644
edit
dl
rm
showpage.ps
9
0644
edit
dl
rm
sipixa6.upp
529
0644
edit
dl
rm
st640ih.upp
2277
0644
edit
dl
rm
st640ihg.upp
1504
0644
edit
dl
rm
st640p.upp
1910
0644
edit
dl
rm
st640pg.upp
1137
0644
edit
dl
rm
st640pl.upp
1874
0644
edit
dl
rm
st640plg.upp
1101
0644
edit
dl
rm
stc.upp
1919
0644
edit
dl
rm
stc2.upp
1900
0644
edit
dl
rm
stc2s_h.upp
2268
0644
edit
dl
rm
stc2_h.upp
1875
0644
edit
dl
rm
stc200_h.upp
1844
0644
edit
dl
rm
stc300.upp
2132
0644
edit
dl
rm
stc300bl.upp
1337
0644
edit
dl
rm
stc300bm.upp
1426
0644
edit
dl
rm
stc500p.upp
1899
0644
edit
dl
rm
stc500ph.upp
1899
0644
edit
dl
rm
stc600ih.upp
2277
0644
edit
dl
rm
stc600p.upp
1147
0644
edit
dl
rm
stc600pl.upp
1111
0644
edit
dl
rm
stc640p.upp
1091
0644
edit
dl
rm
Stc670p.upp
1159
0644
edit
dl
rm
Stc670pl.upp
1124
0644
edit
dl
rm
Stc680p.upp
1140
0644
edit
dl
rm
Stc680pl.upp
1115
0644
edit
dl
rm
stc740ih.upp
2123
0644
edit
dl
rm
Stc740p.upp
1039
0644
edit
dl
rm
Stc740pl.upp
1115
0644
edit
dl
rm
Stc760p.upp
1141
0644
edit
dl
rm
Stc760pl.upp
1115
0644
edit
dl
rm
Stc777p.upp
1140
0644
edit
dl
rm
Stc777pl.upp
1115
0644
edit
dl
rm
stc800ih.upp
2154
0644
edit
dl
rm
stc800p.upp
1111
0644
edit
dl
rm
stc800pl.upp
1093
0644
edit
dl
rm
stc1520h.upp
2150
0644
edit
dl
rm
stcany.upp
669
0644
edit
dl
rm
stcany_h.upp
677
0644
edit
dl
rm
stcinfo.ps
25733
0644
edit
dl
rm
stcolor.ps
5221
0644
edit
dl
rm
stc_h.upp
1909
0644
edit
dl
rm
stc_l.upp
730
0644
edit
dl
rm
stocht.ps
2646
0644
edit
dl
rm
Stp720p.upp
1158
0644
edit
dl
rm
Stp720pl.upp
1115
0644
edit
dl
rm
Stp870p.upp
1140
0644
edit
dl
rm
Stp870pl.upp
1115
0644
edit
dl
rm
traceimg.ps
1528
0644
edit
dl
rm
traceop.ps
2734
0644
edit
dl
rm
type1enc.ps
2536
0644
edit
dl
rm
type1ops.ps
7576
0644
edit
dl
rm
uninfo.ps
6136
0644
edit
dl
rm
unprot.ps
1904
0644
edit
dl
rm
viewcmyk.ps
2113
0644
edit
dl
rm
viewgif.ps
4573
0644
edit
dl
rm
viewjpeg.ps
4949
0644
edit
dl
rm
viewmiff.ps
3778
0644
edit
dl
rm
viewpbm.ps
5307
0644
edit
dl
rm
viewpcx.ps
4345
0644
edit
dl
rm
viewps2a.ps
1282
0644
edit
dl
rm
wftopfa.ps
8923
0644
edit
dl
rm
winmaps.ps
3743
0644
edit
dl
rm
wrfont.ps
18168
0644
edit
dl
rm
zeroline.ps
2463
0644
edit
dl
rm
Edit:
/usr/share/ghostscript/8.70/lib/type1ops.ps
(7576B)
% Copyright (C) 1992, 1997, 1998, 1999 Aladdin Enterprises. All rights reserved. % % This software is provided AS-IS with no warranty, either express or % implied. % % This software is distributed under license and may not be copied, % modified or distributed except as expressly authorized under the terms % of the license contained in the file LICENSE in this distribution. % % For more information about licensing, please refer to % http://www.ghostscript.com/licensing/. For information on % commercial licensing, go to http://www.artifex.com/licensing/ or % contact Artifex Software, Inc., 101 Lucas Valley Road #110, % San Rafael, CA 94903, U.S.A., +1(415)492-9861. % $Id: type1ops.ps 6300 2005-12-28 19:56:24Z giles $ % type1ops.ps % Define the Type 1 and Type 2 font opcodes for use by Ghostscript utilities. % Define the default value of lenIV. % Note that this expects the current font to be on the dictionary stack. /lenIV { FontType 2 eq { -1 } { 4 } ifelse } def % ---------------- Encoding ---------------- % /Type1encode 70 dict % Data types dup /nulltype { pop () } put dup /nametype { Type1encode exch get } put dup /stringtype { } put dup /integertype { dup dup -107 ge exch 107 le and { 139 add (x) dup 0 4 -1 roll put } { dup dup -1131 ge exch 1131 le and { dup 0 ge { 16#f694 } { neg 16#fa94 } ifelse add (xx) dup dup 0 4 index -8 bitshift put 1 4 -1 roll 255 and put } { (\377xxxx) 1 1 4 { dup 8 mul 32 sub 3 index exch bitshift 255 and 2 index 3 1 roll put } for exch pop } ifelse } ifelse } put % Operators % Identical or similar in Type 1 and Type 2. /c_hstem 1 def dup /hstem <01> put /c_vstem 3 def dup /vstem <03> put /c_vmoveto 4 def dup /vmoveto <04> put /c_rlineto 5 def dup /rlineto <05> put /c_hlineto 6 def dup /hlineto <06> put /c_vlineto 7 def dup /vlineto <07> put /c_rrcurveto 8 def dup /rrcurveto <08> put /c_callsubr 10 def /s_callsubr <0a> def dup /callsubr s_callsubr put /c_return 11 def dup /return <0b> put /c_escape 12 def /ce_div 12 def /s_div <0c0c> def dup /div s_div put /c_endchar 14 def /s_endchar <0e> def dup /endchar s_endchar put /c_rmoveto 21 def dup /rmoveto <15> put /c_hmoveto 22 def dup /hmoveto <16> put /c_vhcurveto 30 def dup /vhcurveto <1e> put /c_hvcurveto 31 def dup /hvcurveto <1f> put % Only in Type 1. /c_closepath 9 def dup /closepath <09> put /c_hsbw 13 def /s_hsbw <0d> def dup /hsbw s_hsbw put /ce_dotsection 0 def /s_dotsection <0c06> def dup /dotsection s_dotsection put /ce_vstem3 1 def /s_vstem3 <0c01> def dup /vstem3 s_vstem3 put /ce_hstem3 2 def /s_hstem3 <0c02> def dup /hstem3 s_hstem3 put /ce_seac 6 def /s_seac <0c06> def dup /seac s_seac put /ce_sbw 7 def /s_sbw <0c07> def dup /sbw s_sbw put /ce_callothersubr 16 def /s_callothersubr <0c10> def dup /callothersubr s_callothersubr put /ce_pop 17 def /s_pop <0c11> def dup /pop s_pop put /ce_setcurrentpoint 33 def /s_setcurrentpoint <0c21> def dup /setcurrentpoint s_setcurrentpoint put /s_setcurrentpoint_hmoveto s_setcurrentpoint <8b16> concatstrings def % Only in Type 2. dup /blend <10> put dup /hstemhm <12> put dup /hintmask <13> put dup /cntrmask <14> put dup /vstemhm <17> put dup /rcurveline <18> put dup /rlinecurve <19> put dup /vvcurveto <1a> put dup /hhcurveto <1b> put dup /callgsubr <1d> put dup /and <0c03> put dup /or <0c04> put dup /not <0c05> put dup /store <0c08> put dup /abs <0c09> put dup /add <0c0a> put dup /sub <0c0b> put dup /load <0c0d> put dup /neg <0c0c> put dup /eq <0c0f> put dup /drop <0c12> put dup /put <0c14> put dup /get <0c15> put dup /ifelse <0c16> put dup /random <0c17> put dup /mul <0c18> put dup /sqrt <0c1a> put dup /dup <0c1b> put dup /exch <0c1c> put dup /index <0c1d> put dup /roll <0c1e> put dup /hflex <0c22> put dup /flex <0c23> put dup /hflex1 <0c24> put dup /flex1 <0c25> put readonly def % ---------------- Decoding ---------------- % /Type1decode 512 array Type1encode { dup type /stringtype eq { dup length 1 eq { 0 get } { 1 get 256 add } ifelse % stack: array key code exch 2 index 3 1 roll put } { pop pop } ifelse } forall dup 12 { dup read pop dup Type1decode exch 256 add get dup null ne { exch pop } { pop 2 string dup 0 12 put dup 1 4 -1 roll put } ifelse } put dup 28 { % Type 2 only dup read pop 128 xor 128 sub 8 bitshift 1 index read pop add } put 32 1 246 { 2 copy dup 139 sub put pop } for dup 247 { dup read pop 108 add } put dup 248 { dup read pop 364 add } put dup 249 { dup read pop 620 add } put dup 250 { dup read pop 876 add } put dup 251 { dup read pop 108 add neg } put dup 252 { dup read pop 364 add neg } put dup 253 { dup read pop 620 add neg } put dup 254 { dup read pop 876 add neg } put dup 255 { % Different for Type 1 and Type 2 dup read pop 128 xor 128 sub 3 { 8 bitshift 1 index read pop add } repeat FontType 2 eq { 65536.0 div } if } put readonly def % ---------------- Procedures ---------------- % % For these utilities, a CharString is represented by a sequence of % integers, reals, strings, and names, either in an array or on the stack. % Integers and reals represent themselves; strings are other data that % appears in the CharString; names are CharString operator names. % A CharString in an array is called a "charproc"; a CharString on % the stack is called a "charstack", and is delimited by a mark. % Individual elements are called "chartokens". % ------ Encoding ------ % % Get the string for a chartoken. % Note that this string may be overwritten by the next call. /chartoken_string { % <chartoken> chartoken_string <string> dup type Type1encode exch get exec } bind def % Compute the length of a CharString. /chartoken_length { % <chartoken> chartoken_length <length> chartoken_string length } bind def /charproc_length { % <charproc> charproc_length <length> 0 exch { chartoken_length add } forall } bind def /charstack_length { % <charstack> charstack_length <charstack> <length> counttomark 0 exch -1 1 { index chartoken_length add } for } bind def % Write a CharString to a file. Normally this will be a NullEncode filter % writing on a string of the correct length. /chartoken_write { % <file> <chartoken> chartoken_write - chartoken_string writestring } bind def /charproc_write { % <file> <charproc> charproc_write - { 1 index exch chartoken_write } forall pop } bind def % Note that the arguments of charstack_write are backwards. /charstack_write { % <charstack> <file> charstack_write - counttomark 1 sub -1 1 { index 1 index exch chartoken_write } for cleartomark } bind def % Convert a charproc or charstack to an *un*encrypted CharString. /charproc_string { % <charproc> charproc_string <string> mark exch aload pop charstack_string } bind def /charstack_string { % <charstack> charstack_string <string> charstack_length lenIV 0 gt { lenIV add string dup dup length lenIV sub lenIV exch getinterval % skip lenIV } { string } ifelse /NullEncode filter exch 1 index counttomark 1 add 2 roll charstack_write closefile % lenIV 0 ge { 4330 exch dup .type1encrypt exch pop readonly } if } bind def % ------ Decoding ------ % % Decode a CharString (unencrypted). /charstack_read { % <file> charstack_read <no-mark-charstack> { dup read not { pop exit } if Type1decode 1 index get dup null eq { pop 1 string dup 0 4 -1 roll put } { exch pop exec } ifelse exch } loop } bind def
Save
cmd:
run