pdfrb 0.7.36 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3740e5c530080b0edb5bae1c91fa903c7e1f3bfefd0d98a293b33bd809bb2ca1
4
- data.tar.gz: 992edd43f900f4503e43862a3e63e30785794bd00a2f64c10870d362d5527b41
3
+ metadata.gz: 2b8edd29ba8efc3776369bf3e70dcf7a381f7580af5755e4010ac6d924c81b4a
4
+ data.tar.gz: 70bc3513132cd1ab092fab120552ea34783ff95b2327ed64ec7300aac3f8384e
5
5
  SHA512:
6
- metadata.gz: 821f34c0ab86bd434058838c3776f5509ef8779b8ad728932e7a1163019d46e7ccde664eabb5457944a15138edb33aeeb229b299ef7ce0e5228207017c5d40e4
7
- data.tar.gz: 2e579118cdf84ef58c268c3e10a245b6b880a631eac1770932db8ebed1bffea0cdc3a238da32124322187555a00a467deae01eaf07b0d2563fc48eaac4d52e2a
6
+ metadata.gz: ea06d395806464f6b8de0e3d5c2ecc33d5c1ff79d060940ca46517a8167eecb9cc616710f1390678c73c85c265f1e233ea7284097376521480fdb114d5ece9a0
7
+ data.tar.gz: c6ab02a1e8dfc94df2954640ac25b4010a290e2675a450535e950750e0091c05e16b31d9d8c232585b23db2573d1c303d1ed164ad27b857ea80bff83726f1973
@@ -64,6 +64,7 @@ module Pdfrb
64
64
 
65
65
  # Signature Build Data Dict (s12.8.4). PPKLite build data.
66
66
  class SignatureBuildPropDict < Pdfrb::Model::Cos::Dictionary
67
+ arlington_object "SignatureBuildPropDict"
67
68
  def app_build; self[:App]; end
68
69
 
69
70
  def has_app_build?
@@ -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
@@ -525,6 +525,25 @@ 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
+
528
547
  # Geospatial support (s11.5) + number formats (s11.4).
529
548
  autoload :GeographicCoordinateSystem, "pdfrb/model/type/geospatial"
530
549
  autoload :ProjectedCoordinateSystem, "pdfrb/model/type/geospatial"
data/lib/pdfrb/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Pdfrb
4
- VERSION = "0.7.36"
4
+ VERSION = "0.7.37"
5
5
  end
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.36
4
+ version: 0.7.37
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
@@ -1144,6 +1144,7 @@ files:
1144
1144
  - lib/pdfrb/model/type/sig_field_seed_value.rb
1145
1145
  - lib/pdfrb/model/type/signature.rb
1146
1146
  - lib/pdfrb/model/type/signature_build.rb
1147
+ - lib/pdfrb/model/type/signature_extras.rb
1147
1148
  - lib/pdfrb/model/type/signature_field.rb
1148
1149
  - lib/pdfrb/model/type/soft_mask.rb
1149
1150
  - lib/pdfrb/model/type/software_identifier.rb