pdf-reader 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +12 -2
- data/{README → README.rdoc} +27 -47
- data/Rakefile +5 -4
- data/TODO +3 -1
- data/bin/pdf_list_callbacks +1 -5
- data/bin/pdf_object +43 -0
- data/bin/pdf_text +1 -0
- data/lib/pdf/reader.rb +25 -7
- data/lib/pdf/reader/buffer.rb +3 -1
- data/lib/pdf/reader/content.rb +56 -48
- data/lib/pdf/reader/encoding.rb +82 -1088
- data/lib/pdf/reader/encodings/mac_expert.txt +159 -0
- data/lib/pdf/reader/encodings/mac_roman.txt +128 -0
- data/lib/pdf/reader/encodings/pdf_doc.txt +40 -0
- data/lib/pdf/reader/encodings/standard.txt +47 -0
- data/lib/pdf/reader/encodings/symbol.txt +154 -0
- data/lib/pdf/reader/encodings/win_ansi.txt +29 -0
- data/lib/pdf/reader/encodings/zapf_dingbats.txt +201 -0
- data/lib/pdf/reader/error.rb +1 -0
- data/lib/pdf/reader/font.rb +4 -3
- data/lib/pdf/reader/parser.rb +1 -0
- data/lib/pdf/reader/print_receiver.rb +19 -0
- data/lib/pdf/reader/xref.rb +12 -0
- metadata +26 -17
- data/lib/pdf/reader/parser.rb.rej +0 -29
@@ -0,0 +1,159 @@
|
|
1
|
+
21;F721
|
2
|
+
22;F6F8 # Hungarumlautsmall
|
3
|
+
23;F7A2
|
4
|
+
24;F724
|
5
|
+
25;F6E4
|
6
|
+
26;F726
|
7
|
+
27;F7B4
|
8
|
+
28;207D
|
9
|
+
29;F07E
|
10
|
+
2A;2025
|
11
|
+
2B;2024
|
12
|
+
2F;2044
|
13
|
+
30;F730
|
14
|
+
31;F731
|
15
|
+
32;F732
|
16
|
+
33;F733
|
17
|
+
34;F734
|
18
|
+
35;F735
|
19
|
+
36;F736
|
20
|
+
37;F737
|
21
|
+
38;F738
|
22
|
+
39;F739
|
23
|
+
3D;F6DE
|
24
|
+
3F;F73F
|
25
|
+
44;F7F0
|
26
|
+
47;00BC
|
27
|
+
48;00BD
|
28
|
+
49;00BE
|
29
|
+
4A;215B
|
30
|
+
4B;215C
|
31
|
+
4C;215D
|
32
|
+
4D;215E
|
33
|
+
4E;2153
|
34
|
+
4F;2154
|
35
|
+
56;FB00
|
36
|
+
57;FB01
|
37
|
+
58;FB02
|
38
|
+
59;FB03
|
39
|
+
5A;FB04
|
40
|
+
5B;208D
|
41
|
+
5D;208E
|
42
|
+
5E;F6F6
|
43
|
+
5F;F6E5
|
44
|
+
60;F760
|
45
|
+
61;F761
|
46
|
+
62;F762
|
47
|
+
63;F763
|
48
|
+
64;F764
|
49
|
+
65;F765
|
50
|
+
66;F766
|
51
|
+
67;F767
|
52
|
+
68;F768
|
53
|
+
69;F769
|
54
|
+
6A;F76A
|
55
|
+
6B;F76B
|
56
|
+
6C;F76C
|
57
|
+
6D;F76D
|
58
|
+
6E;F76E
|
59
|
+
6F;F76F
|
60
|
+
70;F770
|
61
|
+
71;F771
|
62
|
+
72;F772
|
63
|
+
73;F773
|
64
|
+
74;F774
|
65
|
+
75;F775
|
66
|
+
76;F776
|
67
|
+
77;F777
|
68
|
+
78;F778
|
69
|
+
79;F779
|
70
|
+
7A;F77A
|
71
|
+
7B;20A1
|
72
|
+
7C;F6DC
|
73
|
+
7D;F6DD
|
74
|
+
7E;F6FE
|
75
|
+
81;F6E9
|
76
|
+
82;F6E0
|
77
|
+
87;F7E1 # Acircumflexsmall
|
78
|
+
88;F7E0
|
79
|
+
89;F7E2 # Acutesmall
|
80
|
+
8A;F7E4
|
81
|
+
8B;F7E3
|
82
|
+
8C;F7E5
|
83
|
+
8D;F7E7
|
84
|
+
8E;F7E9
|
85
|
+
8F;F7E8
|
86
|
+
90;F7E4
|
87
|
+
91;F7EB
|
88
|
+
92;F7ED
|
89
|
+
93;F7EC
|
90
|
+
94;F7EE
|
91
|
+
95;F7EF
|
92
|
+
96;F7F1
|
93
|
+
97;F7F3
|
94
|
+
98;F7F2
|
95
|
+
99;F7F4
|
96
|
+
9A;F7F6
|
97
|
+
9B;F7F5
|
98
|
+
9C;F7FA
|
99
|
+
9D;F7F9
|
100
|
+
9E;F7FB
|
101
|
+
9F;F7FC
|
102
|
+
A1;2078
|
103
|
+
A2;2084
|
104
|
+
A3;2083
|
105
|
+
A4;2086
|
106
|
+
A5;2088
|
107
|
+
A6;2087
|
108
|
+
A7;F6FD
|
109
|
+
A9;F6DF
|
110
|
+
AA;2082
|
111
|
+
AC;F7A8
|
112
|
+
AE;F6F5
|
113
|
+
AF;F6F0
|
114
|
+
B0;2085
|
115
|
+
B2;F6E1
|
116
|
+
B3;F6E7
|
117
|
+
B4;F7FD
|
118
|
+
B6;F6E3
|
119
|
+
B9;F7FE
|
120
|
+
BB;2089
|
121
|
+
BC;2080
|
122
|
+
BD;F6FF
|
123
|
+
BE;F7E6 # AEsmall
|
124
|
+
BF;F7F8
|
125
|
+
C0;F7BF
|
126
|
+
C1;2081
|
127
|
+
C2;F6F9
|
128
|
+
C9;F7B8
|
129
|
+
CF;F6FA
|
130
|
+
D0;2012
|
131
|
+
D1;F6E6
|
132
|
+
D6;F7A1
|
133
|
+
D8;F7FF
|
134
|
+
DA;00B9
|
135
|
+
DB;00B2
|
136
|
+
DC;00B3
|
137
|
+
DD;2074
|
138
|
+
DE;2075
|
139
|
+
DF;2076
|
140
|
+
E0;2077
|
141
|
+
E1;2079
|
142
|
+
E2;2070
|
143
|
+
E4;F6EC
|
144
|
+
E5;F6F1
|
145
|
+
E6;F6F3
|
146
|
+
E9;F6ED
|
147
|
+
EA;F6F2
|
148
|
+
EB;F6EB
|
149
|
+
F1;F6EE
|
150
|
+
F2;F6FB
|
151
|
+
F3;F6F4
|
152
|
+
F4;F7AF
|
153
|
+
F5;F6EF
|
154
|
+
F6;207F
|
155
|
+
F7;F6EF
|
156
|
+
F8;F6E2
|
157
|
+
F9;F6E8
|
158
|
+
FA;F6F7
|
159
|
+
FB;F6FC
|
@@ -0,0 +1,128 @@
|
|
1
|
+
80;00C4
|
2
|
+
81;00C5
|
3
|
+
82;00C7
|
4
|
+
83;00C9
|
5
|
+
84;00D1
|
6
|
+
85;00D6
|
7
|
+
86;00DC
|
8
|
+
87;00E1
|
9
|
+
88;00E0
|
10
|
+
89;00E2
|
11
|
+
8A;00E4
|
12
|
+
8B;00E3
|
13
|
+
8C;00E5
|
14
|
+
8D;00E7
|
15
|
+
8E;00E9
|
16
|
+
8F;00E8
|
17
|
+
90;00EA
|
18
|
+
91;00EB
|
19
|
+
92;00ED
|
20
|
+
93;00EC
|
21
|
+
94;00EE
|
22
|
+
95;00EF
|
23
|
+
96;00F1
|
24
|
+
97;00F3
|
25
|
+
98;00F2
|
26
|
+
99;00F4
|
27
|
+
9A;00F6
|
28
|
+
9B;00F5
|
29
|
+
9C;00FA
|
30
|
+
9D;00F9
|
31
|
+
9E;00FB
|
32
|
+
9F;00FC
|
33
|
+
A0;2020
|
34
|
+
A1;00B0
|
35
|
+
A2;00A2
|
36
|
+
A3;00A3
|
37
|
+
A4;00A7
|
38
|
+
A5;2022
|
39
|
+
A6;00B6
|
40
|
+
A7;00DF
|
41
|
+
A8;00AE
|
42
|
+
A9;00A9
|
43
|
+
AA;2122
|
44
|
+
AB;00B4
|
45
|
+
AC;00A8
|
46
|
+
AD;2260
|
47
|
+
AE;00C6
|
48
|
+
AF;00D8
|
49
|
+
B0;221E
|
50
|
+
B1;00B1
|
51
|
+
B2;2264
|
52
|
+
B3;2265
|
53
|
+
B4;00A5
|
54
|
+
B5;00B5
|
55
|
+
B6;2202
|
56
|
+
B7;2211
|
57
|
+
B8;220F
|
58
|
+
B9;03C0
|
59
|
+
BA;222B
|
60
|
+
BB;00AA
|
61
|
+
BC;00BA
|
62
|
+
BD;03A9
|
63
|
+
BE;00E6
|
64
|
+
BF;00F8
|
65
|
+
C0;00BF
|
66
|
+
C1;00A1
|
67
|
+
C2;00AC
|
68
|
+
C3;221A
|
69
|
+
C4;0192
|
70
|
+
C5;2248
|
71
|
+
C6;2206
|
72
|
+
C7;00AB
|
73
|
+
C8;00BB
|
74
|
+
C9;2026
|
75
|
+
CA;00A0
|
76
|
+
CB;00C0
|
77
|
+
CC;00C3
|
78
|
+
CD;00D5
|
79
|
+
CE;0152
|
80
|
+
CF;0153
|
81
|
+
D0;2013
|
82
|
+
D1;2014
|
83
|
+
D2;201C
|
84
|
+
D3;201D
|
85
|
+
D4;2018
|
86
|
+
D5;2019
|
87
|
+
D6;00F7
|
88
|
+
D7;25CA
|
89
|
+
D8;00FF
|
90
|
+
D9;0178
|
91
|
+
DA;2044
|
92
|
+
DB;20AC
|
93
|
+
DC;2039
|
94
|
+
DD;203A
|
95
|
+
DE;FB01
|
96
|
+
DF;FB02
|
97
|
+
E0;2021
|
98
|
+
E1;00B7
|
99
|
+
E2;201A
|
100
|
+
E3;201E
|
101
|
+
E4;2030
|
102
|
+
E5;00C2
|
103
|
+
E6;00CA
|
104
|
+
E7;00C1
|
105
|
+
E8;00CB
|
106
|
+
E9;00C8
|
107
|
+
EA;00CD
|
108
|
+
EB;00CE
|
109
|
+
EC;00CF
|
110
|
+
ED;00CC
|
111
|
+
EE;00D3
|
112
|
+
EF;00D4
|
113
|
+
F0;F8FF
|
114
|
+
F1;00D2
|
115
|
+
F2;00DA
|
116
|
+
F3;00D8
|
117
|
+
F4;00D9
|
118
|
+
F5;0131
|
119
|
+
F6;02C6
|
120
|
+
F7;02DC
|
121
|
+
F8;00AF
|
122
|
+
F9;02D8
|
123
|
+
FA;02D9
|
124
|
+
FB;02DA
|
125
|
+
FC;00B8
|
126
|
+
FD;02DD
|
127
|
+
FE;02DB
|
128
|
+
FF;02C7
|
@@ -0,0 +1,40 @@
|
|
1
|
+
18;02D8
|
2
|
+
19;02C7
|
3
|
+
1A;02C6
|
4
|
+
1B;02D9
|
5
|
+
1C;02DD
|
6
|
+
1D;02DB
|
7
|
+
1E;02DA
|
8
|
+
1F;02DC
|
9
|
+
80;2022
|
10
|
+
81;2020
|
11
|
+
82;2021
|
12
|
+
83;2026
|
13
|
+
84;2014
|
14
|
+
85;2013
|
15
|
+
86;0192
|
16
|
+
87;2044
|
17
|
+
88;2039
|
18
|
+
89;203A
|
19
|
+
8A;2212
|
20
|
+
8B;2030
|
21
|
+
8C;201E
|
22
|
+
8D;201C
|
23
|
+
8E;201D
|
24
|
+
8F;2018
|
25
|
+
90;2019
|
26
|
+
91;201A
|
27
|
+
92;2122
|
28
|
+
93;FB01
|
29
|
+
94;FB02
|
30
|
+
95;0141
|
31
|
+
96;0152
|
32
|
+
97;0160
|
33
|
+
98;0178
|
34
|
+
99;017D
|
35
|
+
9A;0131
|
36
|
+
9B;0142
|
37
|
+
9C;0153
|
38
|
+
9D;0161
|
39
|
+
9E;017E
|
40
|
+
A0;20AC
|
@@ -0,0 +1,47 @@
|
|
1
|
+
27;2019
|
2
|
+
60;2018
|
3
|
+
A4;2044
|
4
|
+
A6;0192
|
5
|
+
A8;00A4
|
6
|
+
A9;0027
|
7
|
+
AA;201C
|
8
|
+
AC;2039
|
9
|
+
AD;203A
|
10
|
+
AE;FB01
|
11
|
+
AF;FB02
|
12
|
+
B1;2013
|
13
|
+
B2;2020
|
14
|
+
B3;2021
|
15
|
+
B4;00B7
|
16
|
+
B7;2022
|
17
|
+
B8;201A
|
18
|
+
B9;201E
|
19
|
+
BA;201D
|
20
|
+
BC;2026
|
21
|
+
BD;2030
|
22
|
+
C1;0060
|
23
|
+
C2;00B4
|
24
|
+
C3;02C6
|
25
|
+
C4;02DC
|
26
|
+
C5;00AF
|
27
|
+
C6;02D8
|
28
|
+
C7;02D9
|
29
|
+
C8;00A8
|
30
|
+
CA;02DA
|
31
|
+
CB;00B8
|
32
|
+
CD;02DD
|
33
|
+
CE;02DB
|
34
|
+
CF;02C7
|
35
|
+
D0;2014
|
36
|
+
E1;00C6
|
37
|
+
E3;00AA
|
38
|
+
E8;0141
|
39
|
+
E9;00D8
|
40
|
+
EA;0152
|
41
|
+
EB;00BA
|
42
|
+
F1;00E6
|
43
|
+
F5;0131
|
44
|
+
F8;0142
|
45
|
+
F9;00F8
|
46
|
+
FA;0153
|
47
|
+
FB;00DF
|
@@ -0,0 +1,154 @@
|
|
1
|
+
22;2200
|
2
|
+
24;2203
|
3
|
+
27;220B
|
4
|
+
2A;2217
|
5
|
+
2D;2212
|
6
|
+
40;2245
|
7
|
+
41;0391
|
8
|
+
42;0392
|
9
|
+
43;03A7
|
10
|
+
44;0394
|
11
|
+
45;0395
|
12
|
+
46;03A6
|
13
|
+
47;0393
|
14
|
+
48;0397
|
15
|
+
49;0399
|
16
|
+
4A;03D1
|
17
|
+
4B;039A
|
18
|
+
4C;039B
|
19
|
+
4D;039C
|
20
|
+
4E;039D
|
21
|
+
4F;039F
|
22
|
+
50;03A0
|
23
|
+
51;0398
|
24
|
+
52;03A1
|
25
|
+
53;03A3
|
26
|
+
54;03A4
|
27
|
+
55;03A5
|
28
|
+
56;03C2
|
29
|
+
57;03A9
|
30
|
+
58;039E
|
31
|
+
59;03A8
|
32
|
+
5A;0396
|
33
|
+
5C;2234
|
34
|
+
5E;22A5
|
35
|
+
60;F8E5
|
36
|
+
61;03B1
|
37
|
+
62;03B2
|
38
|
+
63;03C7
|
39
|
+
64;03B4
|
40
|
+
65;03B5
|
41
|
+
66;03C6
|
42
|
+
67;03B3
|
43
|
+
68;03B7
|
44
|
+
69;03B9
|
45
|
+
6A;03D5
|
46
|
+
6B;03BA
|
47
|
+
6C;03BB
|
48
|
+
6D;03BC
|
49
|
+
6E;03BD
|
50
|
+
6F;03BF
|
51
|
+
70;03C0
|
52
|
+
71;03B8
|
53
|
+
72;03C1
|
54
|
+
73;03C3
|
55
|
+
74;03C4
|
56
|
+
75;03C5
|
57
|
+
76;03D6
|
58
|
+
77;03C9
|
59
|
+
78;03BE
|
60
|
+
79;03C8
|
61
|
+
7A;03B6
|
62
|
+
7E;223C
|
63
|
+
A0;20AC
|
64
|
+
A1;03D2
|
65
|
+
A2;2032
|
66
|
+
A3;2264
|
67
|
+
A4;2215
|
68
|
+
A5;221E
|
69
|
+
A6;0192
|
70
|
+
A7;2663
|
71
|
+
A8;2666
|
72
|
+
A9;2665
|
73
|
+
AA;2660
|
74
|
+
AB;2194
|
75
|
+
AC;2190
|
76
|
+
AD;2191
|
77
|
+
AE;2192
|
78
|
+
AF;2193
|
79
|
+
B2;2033
|
80
|
+
B3;2265
|
81
|
+
B4;00D7
|
82
|
+
B5;221D
|
83
|
+
B6;2202
|
84
|
+
B7;2022
|
85
|
+
B8;00F7
|
86
|
+
B9;2260
|
87
|
+
BA;2261
|
88
|
+
BB;2248
|
89
|
+
BC;2026
|
90
|
+
BD;F8E6
|
91
|
+
BE;F8E7
|
92
|
+
BF;21B5
|
93
|
+
C0;2135
|
94
|
+
C1;2111
|
95
|
+
C2;211C
|
96
|
+
C3;2118
|
97
|
+
C4;2297
|
98
|
+
C5;2295
|
99
|
+
C6;2205
|
100
|
+
C7;2229
|
101
|
+
C8;222A
|
102
|
+
C9;2283
|
103
|
+
CA;2287
|
104
|
+
CB;2284
|
105
|
+
CC;2282
|
106
|
+
CD;2286
|
107
|
+
CE;2208
|
108
|
+
CF;2209
|
109
|
+
D0;2220
|
110
|
+
D1;2207
|
111
|
+
D2;F6DA
|
112
|
+
D3;F6D9
|
113
|
+
D4;F6DB
|
114
|
+
D5;220F
|
115
|
+
D6;221A
|
116
|
+
D7;22C5
|
117
|
+
D8;00AC
|
118
|
+
D9;2227
|
119
|
+
DA;2228
|
120
|
+
DB;21D4
|
121
|
+
DC;21D0
|
122
|
+
DD;21D1
|
123
|
+
DE;21D2
|
124
|
+
DF;21D3
|
125
|
+
E0;25CA
|
126
|
+
E1;2329
|
127
|
+
E2;F8E8
|
128
|
+
E3;F8E9
|
129
|
+
E4;F8EA
|
130
|
+
E5;2211
|
131
|
+
E6;F8EB
|
132
|
+
E7;F8EC
|
133
|
+
E8;F8ED
|
134
|
+
E9;F8EE
|
135
|
+
EA;F8EF
|
136
|
+
EB;F8F0
|
137
|
+
EC;F8F1
|
138
|
+
ED;F8F2
|
139
|
+
EE;F8F3
|
140
|
+
EF;F8F4
|
141
|
+
F1;232A
|
142
|
+
F2;222B
|
143
|
+
F3;2320
|
144
|
+
F4;F8F5
|
145
|
+
F5;2321
|
146
|
+
F6;F8F6
|
147
|
+
F7;F8F7
|
148
|
+
F8;F8F8
|
149
|
+
F9;F8F9
|
150
|
+
FA;F8FA
|
151
|
+
FB;F8FB
|
152
|
+
FC;F8FC
|
153
|
+
FD;F8FD
|
154
|
+
FE;F8FE
|