pdfrb 0.7.35 → 0.7.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/pdfrb/model/type/appearance_trap_net.rb +1 -0
- data/lib/pdfrb/model/type/geospatial.rb +75 -0
- data/lib/pdfrb/model/type/opi.rb +51 -0
- data/lib/pdfrb/model/type/rich_media_presentation.rb +42 -0
- data/lib/pdfrb/model/type/signature_extras.rb +202 -0
- data/lib/pdfrb/model/type/structure_attributes.rb +57 -0
- data/lib/pdfrb/model/type.rb +43 -0
- data/lib/pdfrb/version.rb +1 -1
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2b8edd29ba8efc3776369bf3e70dcf7a381f7580af5755e4010ac6d924c81b4a
|
|
4
|
+
data.tar.gz: 70bc3513132cd1ab092fab120552ea34783ff95b2327ed64ec7300aac3f8384e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ea06d395806464f6b8de0e3d5c2ecc33d5c1ff79d060940ca46517a8167eecb9cc616710f1390678c73c85c265f1e233ea7284097376521480fdb114d5ece9a0
|
|
7
|
+
data.tar.gz: c6ab02a1e8dfc94df2954640ac25b4010a290e2675a450535e950750e0091c05e16b31d9d8c232585b23db2573d1c303d1ed164ad27b857ea80bff83726f1973
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pdfrb
|
|
4
|
+
module Model
|
|
5
|
+
module Type
|
|
6
|
+
# Geographic coordinate system dictionary (s11.5, /GCS):
|
|
7
|
+
# identifies a datum via EPSG code or WKT.
|
|
8
|
+
class GeographicCoordinateSystem < Pdfrb::Model::Cos::Dictionary
|
|
9
|
+
arlington_object "GeographicCoordinateSystem"
|
|
10
|
+
|
|
11
|
+
def type; self[:Type]; end
|
|
12
|
+
def epsg; self[:EPSG]; end
|
|
13
|
+
def wkt; self[:WKT]; end
|
|
14
|
+
|
|
15
|
+
def epsg_defined?
|
|
16
|
+
!epsg.nil?
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
# Projected coordinate system dictionary (s11.5, /DCS):
|
|
21
|
+
# projection plus its underlying geographic system.
|
|
22
|
+
class ProjectedCoordinateSystem < Pdfrb::Model::Cos::Dictionary
|
|
23
|
+
arlington_object "ProjectedCoordinateSystem"
|
|
24
|
+
|
|
25
|
+
def type; self[:Type]; end
|
|
26
|
+
def epsg; self[:EPSG]; end
|
|
27
|
+
def wkt; self[:WKT]; end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# Point-data dictionary (s11.5, /PtData): named point arrays
|
|
31
|
+
# mapping geographic to page coordinates.
|
|
32
|
+
class PointData < Pdfrb::Model::Cos::Dictionary
|
|
33
|
+
arlington_object "PointData"
|
|
34
|
+
|
|
35
|
+
def type; self[:Type]; end
|
|
36
|
+
def subtype; self[:Subtype]; end
|
|
37
|
+
def names; self[:Names]; end
|
|
38
|
+
def xpts; self[:XPTS]; end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Projection dictionary (s11.5, 3D annotation /Projection):
|
|
42
|
+
# how 3D content is projected to the page.
|
|
43
|
+
class Projection < Pdfrb::Model::Cos::Dictionary
|
|
44
|
+
arlington_object "Projection"
|
|
45
|
+
|
|
46
|
+
def subtype; self[:Subtype]; end
|
|
47
|
+
def color_space; self[:CS]; end
|
|
48
|
+
def focal_length; self[:F]; end
|
|
49
|
+
def near; self[:N]; end
|
|
50
|
+
def field_of_view; self[:FOV]; end
|
|
51
|
+
def projection_scale; self[:PS]; end
|
|
52
|
+
def orthographic_scale; self[:OS]; end
|
|
53
|
+
def clipping_bbox; self[:OB]; end
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Number format dictionary (s11.4.2): unit, precision, and
|
|
57
|
+
# denominators for measurement display.
|
|
58
|
+
class NumberFormat < Pdfrb::Model::Cos::Dictionary
|
|
59
|
+
arlington_object "NumberFormat"
|
|
60
|
+
|
|
61
|
+
def type; self[:Type]; end
|
|
62
|
+
def unit; self[:U]; end
|
|
63
|
+
def conversion_factor; self[:C]; end
|
|
64
|
+
def fractional_digits; self[:F]; end
|
|
65
|
+
def denominator; self[:D]; end
|
|
66
|
+
def fd; self[:FD]; end
|
|
67
|
+
def fraction_display_type; self[:RT]; end
|
|
68
|
+
def rounding_type; self[:RD]; end
|
|
69
|
+
def thousands_separator; self[:PS]; end
|
|
70
|
+
def negative_style; self[:SS]; end
|
|
71
|
+
def pre_text; self[:O]; end
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
end
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pdfrb
|
|
4
|
+
module Model
|
|
5
|
+
module Type
|
|
6
|
+
# OPI version 1.3 dictionary (s14.11.6, deprecated 2.0):
|
|
7
|
+
# low-resolution proxy information for OPI workflows.
|
|
8
|
+
class OPIVersion13Dict < Pdfrb::Model::Cos::Dictionary
|
|
9
|
+
arlington_object "OPIVersion13Dict"
|
|
10
|
+
|
|
11
|
+
def version; self[:Version]; end
|
|
12
|
+
def file_spec; self[:F]; end
|
|
13
|
+
def id; self[:ID]; end
|
|
14
|
+
def comments; self[:Comments]; end
|
|
15
|
+
def size; self[:Size]; end
|
|
16
|
+
def crop_rect; self[:CropRect]; end
|
|
17
|
+
def crop_fixed; self[:CropFixed]; end
|
|
18
|
+
def position; self[:Position]; end
|
|
19
|
+
def resolution; self[:Resolution]; end
|
|
20
|
+
def color_type; self[:ColorType]; end
|
|
21
|
+
def color; self[:Color]; end
|
|
22
|
+
def tint; self[:Tint]; end
|
|
23
|
+
def overprint; self[:Overprint]; end
|
|
24
|
+
def image_type; self[:ImageType]; end
|
|
25
|
+
def gray_map; self[:GrayMap]; end
|
|
26
|
+
def transparency; self[:Transparency]; end
|
|
27
|
+
def tags; self[:Tags]; end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
# OPI version 2.0 dictionary (s14.11.6, deprecated 2.0).
|
|
31
|
+
class OPIVersion20Dict < Pdfrb::Model::Cos::Dictionary
|
|
32
|
+
arlington_object "OPIVersion20Dict"
|
|
33
|
+
|
|
34
|
+
def version; self[:Version]; end
|
|
35
|
+
def file_spec; self[:F]; end
|
|
36
|
+
def id; self[:ID]; end
|
|
37
|
+
def comments; self[:Comments]; end
|
|
38
|
+
def size; self[:Size]; end
|
|
39
|
+
def crop_rect; self[:CropRect]; end
|
|
40
|
+
def position; self[:Position]; end
|
|
41
|
+
def resolution; self[:Resolution]; end
|
|
42
|
+
def color_type; self[:ColorType]; end
|
|
43
|
+
def tint; self[:Tint]; end
|
|
44
|
+
def overprint; self[:Overprint]; end
|
|
45
|
+
def image_type; self[:ImageType]; end
|
|
46
|
+
def transparency; self[:Transparency]; end
|
|
47
|
+
def tags; self[:Tags]; end
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
51
|
+
end
|
|
@@ -25,6 +25,48 @@ module Pdfrb
|
|
|
25
25
|
document.object(ref)
|
|
26
26
|
end
|
|
27
27
|
end
|
|
28
|
+
|
|
29
|
+
# RichMedia instance /Params (s13.6.2.9): FlashVars, bindings,
|
|
30
|
+
# and cue points.
|
|
31
|
+
class RichMediaParams < Pdfrb::Model::Cos::Dictionary
|
|
32
|
+
arlington_object "RichMediaParams"
|
|
33
|
+
|
|
34
|
+
def flash_vars; self[:FlashVars]; end
|
|
35
|
+
def binding; self[:Binding]; end
|
|
36
|
+
def binding_material; self[:BindingMaterial]; end
|
|
37
|
+
def cue_points; self[:CuePoints]; end
|
|
38
|
+
def settings; self[:Settings]; end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# RichMedia height constraints (s13.6.9.5): /Default /Max /Min
|
|
42
|
+
# in percentages of window height.
|
|
43
|
+
class RichMediaHeight < Pdfrb::Model::Cos::Dictionary
|
|
44
|
+
arlington_object "RichMediaHeight"
|
|
45
|
+
|
|
46
|
+
def default; self[:Default]; end
|
|
47
|
+
def max; self[:Max]; end
|
|
48
|
+
def min; self[:Min]; end
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# RichMedia width constraints (s13.6.9.5).
|
|
52
|
+
class RichMediaWidth < Pdfrb::Model::Cos::Dictionary
|
|
53
|
+
arlington_object "RichMediaWidth"
|
|
54
|
+
|
|
55
|
+
def default; self[:Default]; end
|
|
56
|
+
def max; self[:Max]; end
|
|
57
|
+
def min; self[:Min]; end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# RichMedia window/content positioning (s13.6.9.5): alignment
|
|
61
|
+
# and offsets.
|
|
62
|
+
class RichMediaPosition < Pdfrb::Model::Cos::Dictionary
|
|
63
|
+
arlington_object "RichMediaPosition"
|
|
64
|
+
|
|
65
|
+
def h_align; self[:HAlign]; end
|
|
66
|
+
def v_align; self[:VAlign]; end
|
|
67
|
+
def h_offset; self[:HOffset]; end
|
|
68
|
+
def v_offset; self[:VOffset]; end
|
|
69
|
+
end
|
|
28
70
|
end
|
|
29
71
|
end
|
|
30
72
|
end
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module Pdfrb
|
|
4
|
+
module Model
|
|
5
|
+
module Type
|
|
6
|
+
# Certificate seed-value dictionary (s12.7.4.5.2, /SV /Cert):
|
|
7
|
+
# constrains the signing certificate (subject, policies, usage).
|
|
8
|
+
class CertSeedValue < Pdfrb::Model::Cos::Dictionary
|
|
9
|
+
arlington_object "CertSeedValue"
|
|
10
|
+
|
|
11
|
+
def flags; self[:Ff]; end
|
|
12
|
+
def subject; self[:Subject]; end
|
|
13
|
+
def subject_dn; self[:SubjectDN]; end
|
|
14
|
+
def key_usage; self[:KeyUsage]; end
|
|
15
|
+
def issuer; self[:Issuer]; end
|
|
16
|
+
def oid; self[:OID]; end
|
|
17
|
+
def url; self[:URL]; end
|
|
18
|
+
def url_type; self[:URLType]; end
|
|
19
|
+
def signature_policy_oid; self[:SignaturePolicyOID]; end
|
|
20
|
+
def signature_policy_hash; self[:SignaturePolicyHashValue]; end
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
# Subject distinguished-name sub-dictionary (s12.7.4.5.2):
|
|
24
|
+
# keyed by DN component (CN, O, C, ...).
|
|
25
|
+
class SubjectDN < Pdfrb::Model::Cos::Dictionary
|
|
26
|
+
arlington_object "SubjectDN"
|
|
27
|
+
|
|
28
|
+
def [](component)
|
|
29
|
+
value[component.to_sym] || value[component.to_s]
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def components
|
|
33
|
+
value.keys
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Document timestamp signature (s12.8.1, /DocTimeStamp): an
|
|
38
|
+
# RFC 3161 timestamp applied as a signature.
|
|
39
|
+
class DocTimeStamp < Pdfrb::Model::Cos::Dictionary
|
|
40
|
+
arlington_object "DocTimeStamp"
|
|
41
|
+
|
|
42
|
+
def type; self[:Type]; end
|
|
43
|
+
def filter; self[:Filter]; end
|
|
44
|
+
def subfilter; self[:SubFilter]; end
|
|
45
|
+
def contents; self[:Contents]; end
|
|
46
|
+
def byte_range; self[:ByteRange]; end
|
|
47
|
+
def reference; self[:Reference]; end
|
|
48
|
+
def changes; self[:Changes]; end
|
|
49
|
+
def reason; self[:Reason]; end
|
|
50
|
+
def contact_info; self[:ContactInfo]; end
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Time-stamp dictionary (s12.8.3.5): URL for RFC 3161 servers.
|
|
54
|
+
class TimeStampDict < Pdfrb::Model::Cos::Dictionary
|
|
55
|
+
arlington_object "TimeStampDict"
|
|
56
|
+
|
|
57
|
+
def url; self[:URL]; end
|
|
58
|
+
def flags; self[:Ff]; end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Author-specified adobe-style authorization code data for
|
|
62
|
+
# cryptographic signatures.
|
|
63
|
+
class AuthCode < Pdfrb::Model::Cos::Dictionary
|
|
64
|
+
arlington_object "AuthCode"
|
|
65
|
+
|
|
66
|
+
def mac_location; self[:MACLocation]; end
|
|
67
|
+
def byte_range; self[:ByteRange]; end
|
|
68
|
+
def mac; self[:MAC]; end
|
|
69
|
+
def signature_object_ref; self[:SigObjRef]; end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Legal attestation dictionary (s7.12.4, Catalog /Legal
|
|
73
|
+
# /Attestation): per-feature compliance flags for PDF/A-style
|
|
74
|
+
# legal attestation.
|
|
75
|
+
class LegalAttestation < Pdfrb::Model::Cos::Dictionary
|
|
76
|
+
arlington_object "LegalAttestation"
|
|
77
|
+
|
|
78
|
+
def javascript_actions; self[:JavaScriptActions]; end
|
|
79
|
+
def launch_actions; self[:LaunchActions]; end
|
|
80
|
+
def uri_actions; self[:URIActions]; end
|
|
81
|
+
def non_embedded_fonts; self[:NonEmbeddedFonts]; end
|
|
82
|
+
def annotations; self[:Annotations]; end
|
|
83
|
+
def optional_content; self[:OptionalContent]; end
|
|
84
|
+
def attestation; self[:Attestation]; end
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# VRI map (ETSI EN 319 142-1, DSS /VRI): hash-of-signature ->
|
|
88
|
+
# validation data for one signature.
|
|
89
|
+
class VRIMap < Pdfrb::Model::Cos::Dictionary
|
|
90
|
+
arlington_object "VRIMap"
|
|
91
|
+
|
|
92
|
+
def [](signature_hash)
|
|
93
|
+
value[signature_hash.to_sym] || value[signature_hash.to_s]
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
def signature_hashes
|
|
97
|
+
value.keys
|
|
98
|
+
end
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
# Associated-file embedded-file parameters (PDF 2.0 App Note
|
|
102
|
+
# 002, /AFParameter): Size, dates, /Mac sub-dict, CheckSum.
|
|
103
|
+
class AFEmbeddedFileParameter < Pdfrb::Model::Cos::Dictionary
|
|
104
|
+
arlington_object "AFEmbeddedFileParameter"
|
|
105
|
+
|
|
106
|
+
def size; self[:Size]; end
|
|
107
|
+
def creation_date; self[:CreationDate]; end
|
|
108
|
+
def mod_date; self[:ModDate]; end
|
|
109
|
+
def mac; self[:Mac]; end
|
|
110
|
+
def checksum; self[:CheckSum]; end
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Associated-file EF map (App Note 002, /AF): F/UF name and
|
|
114
|
+
# unicode file-spec entries.
|
|
115
|
+
class AFFileSpecEF < Pdfrb::Model::Cos::Dictionary
|
|
116
|
+
arlington_object "AFFileSpecEF"
|
|
117
|
+
|
|
118
|
+
def f; self[:F]; end
|
|
119
|
+
def uf; self[:UF]; end
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# GoToE target dictionary (s12.3.2.5, /T): locates the file and
|
|
123
|
+
# position for an embedded navigation target.
|
|
124
|
+
class Target < Pdfrb::Model::Cos::Dictionary
|
|
125
|
+
arlington_object "Target"
|
|
126
|
+
|
|
127
|
+
def relation; self[:R]; end
|
|
128
|
+
def file_name; self[:N]; end
|
|
129
|
+
def page; self[:P]; end
|
|
130
|
+
def attached_file; self[:A]; end
|
|
131
|
+
def nested_target; self[:T]; end
|
|
132
|
+
|
|
133
|
+
def parent_relation?; relation == :P; end
|
|
134
|
+
def child_relation?; relation == :C; end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Embedded target (s12.3.2.5): the embedded variant of Target.
|
|
138
|
+
class TargetEmbedded < Target
|
|
139
|
+
arlington_object "TargetEmbedded"
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Developer extensions dictionary (s7.2, Catalog /Extensions):
|
|
143
|
+
# developer-identified extensions to the base spec.
|
|
144
|
+
class DevExtensions < Pdfrb::Model::Cos::Dictionary
|
|
145
|
+
arlington_object "DevExtensions"
|
|
146
|
+
|
|
147
|
+
def type; self[:Type]; end
|
|
148
|
+
def base_version; self[:BaseVersion]; end
|
|
149
|
+
def extension_level; self[:ExtensionLevel]; end
|
|
150
|
+
def url; self[:URL]; end
|
|
151
|
+
def extension_revision; self[:ExtensionRevision]; end
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
# GTSm (Global Graphics) developer extension entry.
|
|
155
|
+
class GTSmDevExtensions < DevExtensions
|
|
156
|
+
arlington_object "GTSm_DevExtensions"
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# ISO developer extension entry.
|
|
160
|
+
class ISODevExtensions < DevExtensions
|
|
161
|
+
arlington_object "ISO_DevExtensions"
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
# Extension level container (s7.2, /Extensions value): maps
|
|
165
|
+
# developer names to their DevExtensions entries.
|
|
166
|
+
class Extensions < Pdfrb::Model::Cos::Dictionary
|
|
167
|
+
arlington_object "Extensions"
|
|
168
|
+
|
|
169
|
+
def [](developer)
|
|
170
|
+
value[developer.to_sym] || value[developer.to_s]
|
|
171
|
+
end
|
|
172
|
+
|
|
173
|
+
def developers
|
|
174
|
+
value.keys
|
|
175
|
+
end
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# GTS Procedural Steps group (prepress): identifies a
|
|
179
|
+
# processing step region on a page.
|
|
180
|
+
class GTSProcStepsGroup < Pdfrb::Model::Cos::Dictionary
|
|
181
|
+
arlington_object "GTS_ProcStepsGroup"
|
|
182
|
+
|
|
183
|
+
def group; self[:GTS_ProcStepsGroup]; end
|
|
184
|
+
def step_type; self[:GTS_ProcStepsType]; end
|
|
185
|
+
def colorants; self[:GTS_ProcStepsColorants]; end
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Apple supplemental-text entry (AAPL_ST): supplemental text
|
|
189
|
+
# positioning data used by macOS previews.
|
|
190
|
+
class AppleSupplementalText < Pdfrb::Model::Cos::Dictionary
|
|
191
|
+
arlington_object "AAPL_ST"
|
|
192
|
+
|
|
193
|
+
def type; self[:Type]; end
|
|
194
|
+
def subtype; self[:Subtype]; end
|
|
195
|
+
def offset; self[:Offset]; end
|
|
196
|
+
def radius; self[:Radius]; end
|
|
197
|
+
def color_space; self[:ColorSpace]; end
|
|
198
|
+
def color; self[:Color]; end
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
end
|
|
202
|
+
end
|
|
@@ -7,6 +7,7 @@ module Pdfrb
|
|
|
7
7
|
# attributes — owner + per-owner attribute fields (Layout, Table,
|
|
8
8
|
# List, PrintField, etc.).
|
|
9
9
|
class StructureAttributes < Pdfrb::Model::Cos::Dictionary
|
|
10
|
+
arlington_object "StructureAttributesDict"
|
|
10
11
|
def owner; self[:O]; end
|
|
11
12
|
def namespace; self[:NS]; end
|
|
12
13
|
def placement; self[:Placement]&.to_sym; end
|
|
@@ -39,6 +40,62 @@ module Pdfrb
|
|
|
39
40
|
!!namespace
|
|
40
41
|
end
|
|
41
42
|
end
|
|
43
|
+
|
|
44
|
+
# Role map (s14.7.3, StructTreeRoot /RoleMap): custom element
|
|
45
|
+
# names mapped to standard structure types.
|
|
46
|
+
class RoleMap < Pdfrb::Model::Cos::Dictionary
|
|
47
|
+
arlington_object "RoleMap"
|
|
48
|
+
|
|
49
|
+
def [](custom_name)
|
|
50
|
+
value[custom_name.to_sym] || value[custom_name.to_s]
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def custom_names
|
|
54
|
+
value.keys
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Namespaced role map (s14.7.3, /RoleMapNS): per-namespace role
|
|
59
|
+
# maps keyed by namespace URI.
|
|
60
|
+
class RoleMapNS < Pdfrb::Model::Cos::Dictionary
|
|
61
|
+
arlington_object "RoleMapNS"
|
|
62
|
+
|
|
63
|
+
def [](namespace)
|
|
64
|
+
value[namespace.to_sym] || value[namespace.to_s]
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# Style dictionary (s14.9.2, /Styles entries): number-of-style
|
|
69
|
+
# to style-attributes mapping with an optional /Panose.
|
|
70
|
+
class StyleDict < Pdfrb::Model::Cos::Dictionary
|
|
71
|
+
arlington_object "StyleDict"
|
|
72
|
+
|
|
73
|
+
def panose; self[:Panose]; end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Class map (s14.7.4, StructTreeRoot /ClassMap): reusable
|
|
77
|
+
# attribute-owner dictionaries shared by structure elements.
|
|
78
|
+
class ClassMap < Pdfrb::Model::Cos::Dictionary
|
|
79
|
+
arlington_object "ClassMap"
|
|
80
|
+
|
|
81
|
+
def [](class_name)
|
|
82
|
+
value[class_name.to_sym] || value[class_name.to_s]
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
def class_names
|
|
86
|
+
value.keys
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Reference structure element kid (s14.8.2.4, /Reference):
|
|
91
|
+
# points at content elsewhere via /F file, /Page, /ID.
|
|
92
|
+
class StructureReference < Pdfrb::Model::Cos::Dictionary
|
|
93
|
+
arlington_object "Reference"
|
|
94
|
+
|
|
95
|
+
def file; self[:F]; end
|
|
96
|
+
def page; self[:Page]; end
|
|
97
|
+
def ids; self[:ID]; end
|
|
98
|
+
end
|
|
42
99
|
end
|
|
43
100
|
end
|
|
44
101
|
end
|
data/lib/pdfrb/model/type.rb
CHANGED
|
@@ -525,6 +525,49 @@ module Pdfrb
|
|
|
525
525
|
autoload :AddActionScreenAnnotation, "pdfrb/model/type/add_action_screen_annotation"
|
|
526
526
|
autoload :AddActionWidgetAnnotation, "pdfrb/model/type/add_action_widget_annotation"
|
|
527
527
|
|
|
528
|
+
# Signature/certification extras + targets + extensions.
|
|
529
|
+
autoload :CertSeedValue, "pdfrb/model/type/signature_extras"
|
|
530
|
+
autoload :SubjectDN, "pdfrb/model/type/signature_extras"
|
|
531
|
+
autoload :DocTimeStamp, "pdfrb/model/type/signature_extras"
|
|
532
|
+
autoload :TimeStampDict, "pdfrb/model/type/signature_extras"
|
|
533
|
+
autoload :AuthCode, "pdfrb/model/type/signature_extras"
|
|
534
|
+
autoload :LegalAttestation, "pdfrb/model/type/signature_extras"
|
|
535
|
+
autoload :VRIMap, "pdfrb/model/type/signature_extras"
|
|
536
|
+
autoload :AFEmbeddedFileParameter, "pdfrb/model/type/signature_extras"
|
|
537
|
+
autoload :AFFileSpecEF, "pdfrb/model/type/signature_extras"
|
|
538
|
+
autoload :Target, "pdfrb/model/type/signature_extras"
|
|
539
|
+
autoload :TargetEmbedded, "pdfrb/model/type/signature_extras"
|
|
540
|
+
autoload :DevExtensions, "pdfrb/model/type/signature_extras"
|
|
541
|
+
autoload :GTSmDevExtensions, "pdfrb/model/type/signature_extras"
|
|
542
|
+
autoload :ISODevExtensions, "pdfrb/model/type/signature_extras"
|
|
543
|
+
autoload :Extensions, "pdfrb/model/type/signature_extras"
|
|
544
|
+
autoload :GTSProcStepsGroup, "pdfrb/model/type/signature_extras"
|
|
545
|
+
autoload :AppleSupplementalText, "pdfrb/model/type/signature_extras"
|
|
546
|
+
|
|
547
|
+
# Geospatial support (s11.5) + number formats (s11.4).
|
|
548
|
+
autoload :GeographicCoordinateSystem, "pdfrb/model/type/geospatial"
|
|
549
|
+
autoload :ProjectedCoordinateSystem, "pdfrb/model/type/geospatial"
|
|
550
|
+
autoload :PointData, "pdfrb/model/type/geospatial"
|
|
551
|
+
autoload :Projection, "pdfrb/model/type/geospatial"
|
|
552
|
+
autoload :NumberFormat, "pdfrb/model/type/geospatial"
|
|
553
|
+
|
|
554
|
+
# OPI proxy dictionaries (s14.11.6, deprecated 2.0).
|
|
555
|
+
autoload :OPIVersion13Dict, "pdfrb/model/type/opi"
|
|
556
|
+
autoload :OPIVersion20Dict, "pdfrb/model/type/opi"
|
|
557
|
+
|
|
558
|
+
# RichMedia sizing/positioning (s13.6.9.5).
|
|
559
|
+
autoload :RichMediaParams, "pdfrb/model/type/rich_media_presentation"
|
|
560
|
+
autoload :RichMediaHeight, "pdfrb/model/type/rich_media_presentation"
|
|
561
|
+
autoload :RichMediaWidth, "pdfrb/model/type/rich_media_presentation"
|
|
562
|
+
autoload :RichMediaPosition, "pdfrb/model/type/rich_media_presentation"
|
|
563
|
+
|
|
564
|
+
# Structure tree maps + references (s14.7, s14.8).
|
|
565
|
+
autoload :RoleMap, "pdfrb/model/type/structure_attributes"
|
|
566
|
+
autoload :RoleMapNS, "pdfrb/model/type/structure_attributes"
|
|
567
|
+
autoload :StyleDict, "pdfrb/model/type/structure_attributes"
|
|
568
|
+
autoload :ClassMap, "pdfrb/model/type/structure_attributes"
|
|
569
|
+
autoload :StructureReference, "pdfrb/model/type/structure_attributes"
|
|
570
|
+
|
|
528
571
|
# Requirements handlers (s7.9.2, Catalog /Requirements).
|
|
529
572
|
autoload :Requirements3DMarkup, "pdfrb/model/type/requirements"
|
|
530
573
|
autoload :RequirementsAcroFormInteract, "pdfrb/model/type/requirements"
|
data/lib/pdfrb/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pdfrb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ribose Inc.
|
|
@@ -1060,6 +1060,7 @@ files:
|
|
|
1060
1060
|
- lib/pdfrb/model/type/function_sampled.rb
|
|
1061
1061
|
- lib/pdfrb/model/type/function_stitching.rb
|
|
1062
1062
|
- lib/pdfrb/model/type/generic_appearance.rb
|
|
1063
|
+
- lib/pdfrb/model/type/geospatial.rb
|
|
1063
1064
|
- lib/pdfrb/model/type/graphics_state_parameter.rb
|
|
1064
1065
|
- lib/pdfrb/model/type/halftone.rb
|
|
1065
1066
|
- lib/pdfrb/model/type/halftone_type1.rb
|
|
@@ -1096,6 +1097,7 @@ files:
|
|
|
1096
1097
|
- lib/pdfrb/model/type/namespace.rb
|
|
1097
1098
|
- lib/pdfrb/model/type/object_reference.rb
|
|
1098
1099
|
- lib/pdfrb/model/type/object_stream.rb
|
|
1100
|
+
- lib/pdfrb/model/type/opi.rb
|
|
1099
1101
|
- lib/pdfrb/model/type/opt_content_ext.rb
|
|
1100
1102
|
- lib/pdfrb/model/type/opt_content_page_element.rb
|
|
1101
1103
|
- lib/pdfrb/model/type/optional_content_config.rb
|
|
@@ -1142,6 +1144,7 @@ files:
|
|
|
1142
1144
|
- lib/pdfrb/model/type/sig_field_seed_value.rb
|
|
1143
1145
|
- lib/pdfrb/model/type/signature.rb
|
|
1144
1146
|
- lib/pdfrb/model/type/signature_build.rb
|
|
1147
|
+
- lib/pdfrb/model/type/signature_extras.rb
|
|
1145
1148
|
- lib/pdfrb/model/type/signature_field.rb
|
|
1146
1149
|
- lib/pdfrb/model/type/soft_mask.rb
|
|
1147
1150
|
- lib/pdfrb/model/type/software_identifier.rb
|