pdfrb 0.7.26 → 0.7.27

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: bf26e5763a734543b8fd399e6cb67b62b4de9383a94bda13fb3a4bdef0367bc4
4
- data.tar.gz: 3279da4538b50d9b606b1f275fcdd1e0d2b50e314f0d4d6b65e964db7f30a7c3
3
+ metadata.gz: ce9a47537d34e93b14dfb8045494c1c3c0791b2d7e55f788fff4d11cbf30e193
4
+ data.tar.gz: 90e8479cfc14d1bcfbc0d4f57ea4d3dfd224dda886fa6a3234a136b895620616
5
5
  SHA512:
6
- metadata.gz: c216efe24c2fced4764b840296a8292bc6e2b61caf94ac70af32fa7123191b525ad32b2a4110456bfc16a283374102519ce47a69705f629ec20fe099d84a4c25
7
- data.tar.gz: cf2cb80d6482f117254ee0413c3ea67f215ec0285e759340324d95f27806af5033f547d1165d545e0b05f8ea522f3c51c5e6e5009029ca04a51b9c429a3f5db6
6
+ metadata.gz: eedc71874d169182804bebbf46322ddbcec5fb94866d4d0ac134e1ab04479803a6310e42682138db211743d4ffd22eb47393aae109fb921bc4d031f676ee47d8
7
+ data.tar.gz: 60693b88b2d817632f779cd8ad5200d37ef2ae2a62d0e10b0407b795b4534705fc1fb66cda174f516f04735f2fecde418d59fcbb34912a862c7a5fb579007dae
@@ -7,6 +7,7 @@ module Pdfrb
7
7
  # Maps +t+ ∈ [0,1] to C0 + (C1 - C0) * t^N.
8
8
  # Commonly used for 2-color linear gradients.
9
9
  class FunctionExponential < Function
10
+ arlington_object "FunctionType2"
10
11
  def c0; self[:C0]; end
11
12
  def c1; self[:C1]; end
12
13
  def exponent; self[:N] || 1; end
@@ -7,6 +7,7 @@ module Pdfrb
7
7
  # PostScript program in the stream payload that computes the
8
8
  # output values from input values.
9
9
  class FunctionPostScript < Pdfrb::Model::Cos::Stream
10
+ arlington_object "FunctionType4"
10
11
  def function_type; self[:FunctionType] || 4; end
11
12
 
12
13
  def domain; self[:Domain]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Type 0 Sampled function (s8.9.3). N-dimensional lookup table
7
7
  # with interpolation. Carries sample data in the stream payload.
8
8
  class FunctionSampled < Pdfrb::Model::Cos::Stream
9
+ arlington_object "FunctionType0"
9
10
  def function_type; self[:FunctionType] || 0; end
10
11
 
11
12
  def domain; self[:Domain]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Type 3 Stitching function (s8.9.5). Concatenates multiple
7
7
  # sub-functions over a stitched input domain.
8
8
  class FunctionStitching < Function
9
+ arlington_object "FunctionType3"
9
10
  def sub_functions; self[:Functions]; end
10
11
  def bounds; self[:Bounds]; end
11
12
  def encode; self[:Encode]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Type 1 halftone: a 1-bit tile sampled from a halftone screen
7
7
  # cell defined by frequency, angle, and spot function.
8
8
  class HalftoneType1 < Halftone
9
+ arlington_object "HalftoneType1"
9
10
  def frequency; self[:Frequency]; end
10
11
  def angle; self[:Angle]; end
11
12
  def spot_function; self[:SpotFunction]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Type 10 halftone: mesh-based continuous-tone (PDF 1.4+, mostly
7
7
  # used for non-square pixel grids).
8
8
  class HalftoneType10 < HalftoneType6
9
+ arlington_object "HalftoneType10"
9
10
  def xsquarestep; self[:Xsquarestep]; end
10
11
  def ysquarestep; self[:Ysquarestep]; end
11
12
  def center_x; self[:CenterX]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Type 16 halftone: more flexible mesh variant (PDF 1.4+).
7
7
  class HalftoneType16 < HalftoneType10
8
+ arlington_object "HalftoneType16"
8
9
  end
9
10
  end
10
11
  end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Type 5 halftone: a dictionary mapping colorant name → HalftoneType1.
7
7
  class HalftoneType5 < Halftone
8
+ arlington_object "HalftoneType5"
8
9
  def halftones; self[:Halftones]; end
9
10
  def default; self[:Default]; end
10
11
 
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Type 6 halftone: continuous-tone cell (PDF 1.4+).
7
7
  class HalftoneType6 < Halftone
8
+ arlington_object "HalftoneType6"
8
9
  def width; self[:Width]; end
9
10
  def height; self[:Height]; end
10
11
  def width2; self[:Width2]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Media Offset Time (s13.3.6.5). Time-based media offset.
7
7
  class MediaOffsetTime < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "MediaOffsetTime"
8
9
  def subtype; self[:S]&.to_sym; end
9
10
  def timespan; self[:T]; end
10
11
 
@@ -17,6 +18,7 @@ module Pdfrb
17
18
 
18
19
  # Media Offset Frame (s13.3.6.5). Frame-based media offset.
19
20
  class MediaOffsetFrame < Pdfrb::Model::Cos::Dictionary
21
+ arlington_object "MediaOffsetFrame"
20
22
  def subtype; self[:S]&.to_sym; end
21
23
  def frame_number; self[:F]; end
22
24
  def time; self[:T]; end
@@ -28,6 +30,7 @@ module Pdfrb
28
30
 
29
31
  # Media Offset Marker (s13.3.6.5). Marker-based media offset.
30
32
  class MediaOffsetMarker < Pdfrb::Model::Cos::Dictionary
33
+ arlington_object "MediaOffsetMarker"
31
34
  def subtype; self[:S]&.to_sym; end
32
35
  def marker_name; self[:M]; end
33
36
  end
@@ -35,6 +38,7 @@ module Pdfrb
35
38
  # Media Player Info (s13.3.5.5). Identifies which players can
36
39
  # render the rendition.
37
40
  class MediaPlayerInfo < Pdfrb::Model::Cos::Dictionary
41
+ arlington_object "MediaPlayerInfo"
38
42
  def player_identifier; self[:PID]; end
39
43
  def must_honor; self[:MH]; end
40
44
  def best_effort; self[:BE]; end
@@ -53,6 +57,7 @@ module Pdfrb
53
57
 
54
58
  # Media Players (s13.3.5.5). Player info lists.
55
59
  class MediaPlayers < Pdfrb::Model::Cos::Dictionary
60
+ arlington_object "MediaPlayers"
56
61
  def must_use; self[:MU]; end
57
62
  def alternate; self[:A]; end
58
63
  def never_use; self[:NU]; end
@@ -75,6 +80,7 @@ module Pdfrb
75
80
  # Media Screen Parameters (s13.3.5.4). Controls how media is
76
81
  # displayed on the screen annotation.
77
82
  class MediaScreenParameters < Pdfrb::Model::Cos::Dictionary
83
+ arlington_object "MediaScreenParameters"
78
84
  def must_honor; self[:MH]; end
79
85
  def best_effort; self[:BE]; end
80
86
  def fit; self[:FIT]; end
@@ -88,6 +94,7 @@ module Pdfrb
88
94
 
89
95
  # Media Criteria (s13.3.5.5). Constraints when selecting players.
90
96
  class MediaCriteria < Pdfrb::Model::Cos::Dictionary
97
+ arlington_object "MediaCriteria"
91
98
  def must_honor; self[:MH]; end
92
99
  def best_effort; self[:BE]; end
93
100
  def bit_rate; self[:Rate]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Rich Media Activation (s13.6.1). Activation behaviour settings.
7
7
  class RichMediaActivation < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "RichMediaActivation"
8
9
  def type; self[:Type]; end
9
10
  def condition; self[:Condition]&.to_sym; end
10
11
  def configuration; self[:Configuration]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Rich Media Animation (s13.6.2). Playback control for
7
7
  # rich media instances.
8
8
  class RichMediaAnimation < Pdfrb::Model::Cos::Dictionary
9
+ arlington_object "RichMediaAnimation"
9
10
  def type; self[:Type]; end
10
11
  def subtype; self[:Subtype]&.to_sym; end
11
12
  def play_count; self[:PlayCount] || -1; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Rich Media Command (s13.6.4). A command sent to a rich media
7
7
  # instance.
8
8
  class RichMediaCommand < Pdfrb::Model::Cos::Dictionary
9
+ arlington_object "RichMediaCommand"
9
10
  def type; self[:Type]; end
10
11
  def command_name; self[:Cmd]; end
11
12
  def arguments; self[:Args]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Rich Media Configuration (s13.6.2). A media instance list.
7
7
  class RichMediaConfiguration < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "RichMediaConfiguration"
8
9
  def type; self[:Type]; end
9
10
  def instances; self[:Instances]; end
10
11
  def name; self[:Name]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Rich Media Content (s13.6.5). Top-level rich media assets bundle.
7
7
  class RichMediaContent < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "RichMediaContent"
8
9
  def type; self[:Type]; end
9
10
  def configurations; self[:Configurations]; end
10
11
  def assets; self[:Assets]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Rich Media Cue Point (s13.6.6). Time marker in a media playback.
7
7
  class RichMediaCuePoint < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "RichMediaCuePoint"
8
9
  def type; self[:Type]; end
9
10
  def time; self[:Time]; end
10
11
  def name; self[:Name]; end
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Rich Media Deactivation (s13.6.1). Deactivation behaviour.
7
7
  class RichMediaDeactivation < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "RichMediaDeactivation"
8
9
  def type; self[:Type]; end
9
10
  def condition; self[:Condition]&.to_sym; end
10
11
 
@@ -5,6 +5,7 @@ module Pdfrb
5
5
  module Type
6
6
  # Rich Media Instance (s13.6.3). A single playable instance.
7
7
  class RichMediaInstance < Pdfrb::Model::Cos::Dictionary
8
+ arlington_object "RichMediaInstance"
8
9
  def type; self[:Type]; end
9
10
  def subtype; self[:Subtype]&.to_sym; end
10
11
  def media_clip; self[:Asset]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Rich Media Presentation (s13.6.1). Visual presentation settings
7
7
  # for a RichMedia annotation (style, window, transparency, etc.).
8
8
  class RichMediaPresentation < Pdfrb::Model::Cos::Dictionary
9
+ arlington_object "RichMediaPresentation"
9
10
  def type; self[:Type]; end
10
11
  def style; self[:Style]&.to_sym; end
11
12
  def window; self[:Window]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Rich Media Settings (s13.6.2). Top-level activation/deactivation
7
7
  # configuration for a RichMedia annotation.
8
8
  class RichMediaSettings < Pdfrb::Model::Cos::Dictionary
9
+ arlington_object "RichMediaSettings"
9
10
  def type; self[:Type]; end
10
11
  def activation; self[:Activation]; end
11
12
  def deactivation; self[:Deactivation]; end
@@ -6,6 +6,7 @@ module Pdfrb
6
6
  # Rich Media Window (s13.6.1). Window dimensions and position
7
7
  # for windowed rich media.
8
8
  class RichMediaWindow < Pdfrb::Model::Cos::Dictionary
9
+ arlington_object "RichMediaWindow"
9
10
  def type; self[:Type]; end
10
11
  def width; self[:Width]; end
11
12
  def height; self[:Height]; end
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.26"
4
+ VERSION = "0.7.27"
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.26
4
+ version: 0.7.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.