brst-binding-ruby 0.1.0
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 +7 -0
- data/CHANGELOG.md +23 -0
- data/CMakeLists.txt +95 -0
- data/LICENSE +31 -0
- data/README.md +173 -0
- data/lib/brst/binding/ruby/asian.rb +46 -0
- data/lib/brst/binding/ruby/base.rb +50 -0
- data/lib/brst/binding/ruby/date.rb +42 -0
- data/lib/brst/binding/ruby/destination.rb +46 -0
- data/lib/brst/binding/ruby/doc_compression.rb +39 -0
- data/lib/brst/binding/ruby/doc_embedded_file.rb +39 -0
- data/lib/brst/binding/ruby/doc_encoder.rb +41 -0
- data/lib/brst/binding/ruby/doc_encoding_utf.rb +39 -0
- data/lib/brst/binding/ruby/doc_ext_gstate.rb +39 -0
- data/lib/brst/binding/ruby/doc_font.rb +43 -0
- data/lib/brst/binding/ruby/doc_image_jpeg.rb +40 -0
- data/lib/brst/binding/ruby/doc_image_png.rb +41 -0
- data/lib/brst/binding/ruby/doc_image_tiff.rb +41 -0
- data/lib/brst/binding/ruby/doc_info.rb +40 -0
- data/lib/brst/binding/ruby/doc_matrix.rb +46 -0
- data/lib/brst/binding/ruby/doc_output_intent.rb +40 -0
- data/lib/brst/binding/ruby/doc_page.rb +48 -0
- data/lib/brst/binding/ruby/doc_page_pattern.rb +46 -0
- data/lib/brst/binding/ruby/doc_pattern.rb +40 -0
- data/lib/brst/binding/ruby/doc_pdfa.rb +41 -0
- data/lib/brst/binding/ruby/doc_save.rb +40 -0
- data/lib/brst/binding/ruby/doc_security.rb +41 -0
- data/lib/brst/binding/ruby/doc_viewer.rb +41 -0
- data/lib/brst/binding/ruby/doc_xobject.rb +39 -0
- data/lib/brst/binding/ruby/error.rb +43 -0
- data/lib/brst/binding/ruby/ext_gstate.rb +41 -0
- data/lib/brst/binding/ruby/font.rb +40 -0
- data/lib/brst/binding/ruby/geometry.rb +93 -0
- data/lib/brst/binding/ruby/image.rb +45 -0
- data/lib/brst/binding/ruby/library.rb +46 -0
- data/lib/brst/binding/ruby/page_routines.rb +56 -0
- data/lib/brst/binding/ruby/page_sizes.rb +38 -0
- data/lib/brst/binding/ruby/page_xobject.rb +40 -0
- data/lib/brst/binding/ruby/stream_geometry.rb +81 -0
- data/lib/brst/binding/ruby/stream_text.rb +48 -0
- data/lib/brst/binding/ruby/text.rb +67 -0
- data/lib/brst/binding/ruby/types.rb +622 -0
- data/lib/brst/binding/ruby/unicode_glyph.rb +40 -0
- data/lib/brst/binding/ruby/version.rb +7 -0
- data/lib/brst/binding/ruby/xobject.rb +39 -0
- data/lib/brst/binding/ruby.rb +30 -0
- data/lib/brst-binding-ruby.rb +5 -0
- metadata +139 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocExtGstate
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_ExtGState_New, [:Doc], :ExtGState
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocFont
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Font, [:Doc, :string, :string], :Font
|
|
36
|
+
safe_attach :BRST_Doc_TTFont_LoadFromFile, [:Doc, :string, :int32], :string
|
|
37
|
+
safe_attach :BRST_Doc_Type1Font_LoadFromFile, [:Doc, :string, :string], :string
|
|
38
|
+
safe_attach :BRST_Doc_TTFont_LoadFromFile2, [:Doc, :string, :uint32, :int32], :string
|
|
39
|
+
safe_attach :BRST_Doc_TTFont_LoadFromMemory, [:Doc, :pointer, :uint32, :int32], :string
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocImageJpeg
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Image_Jpeg_LoadFromFile, [:Doc, :string], :Image
|
|
36
|
+
safe_attach :BRST_Doc_Image_Jpeg_LoadFromMemory, [:Doc, :pointer, :uint32], :Image
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocImagePng
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Image_Png_LoadFromMemory, [:Doc, :pointer, :uint32], :Image
|
|
36
|
+
safe_attach :BRST_Doc_Image_Png_LoadFromFile, [:Doc, :string], :Image
|
|
37
|
+
safe_attach :BRST_Doc_Image_Png_LoadFromFile2, [:Doc, :string], :Image
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocImageTiff
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Image_Raw1Bit_LoadFromMemory, [:Doc, :pointer, :uint32, :uint32, :uint32, :int32, :int32], :Image
|
|
36
|
+
safe_attach :BRST_Doc_Image_Raw_LoadFromFile, [:Doc, :string, :uint32, :uint32, :ColorSpace], :Image
|
|
37
|
+
safe_attach :BRST_Doc_Image_Raw_LoadFromMemory, [:Doc, :pointer, :uint32, :uint32, :ColorSpace, :uint32], :Image
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocInfo
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_SetInfoAttr, [:Doc, :InfoType, :string], :uint32
|
|
36
|
+
safe_attach :BRST_Doc_SetInfoDateAttr, [:Doc, :InfoType, :Date], :uint32
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocMatrix
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Matrix_Identity, [:Doc], :Matrix
|
|
36
|
+
safe_attach :BRST_Doc_Matrix_Free, [:Matrix], :void
|
|
37
|
+
safe_attach :BRST_Doc_Matrix_Multiply, [:Doc, :Matrix, :Matrix], :Matrix
|
|
38
|
+
safe_attach :BRST_Doc_Matrix_Translate, [:Doc, :Matrix, :float, :float], :Matrix
|
|
39
|
+
safe_attach :BRST_Doc_Matrix_Scale, [:Doc, :Matrix, :float, :float], :Matrix
|
|
40
|
+
safe_attach :BRST_Doc_Matrix_Rotate, [:Doc, :Matrix, :float], :Matrix
|
|
41
|
+
safe_attach :BRST_Doc_Matrix_RotateDeg, [:Doc, :Matrix, :float], :Matrix
|
|
42
|
+
safe_attach :BRST_Doc_Matrix_Skew, [:Doc, :Matrix, :float, :float], :Matrix
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocOutputIntent
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_OutputIntent_New, [:Doc, :string, :string, :string, :string, :Array], :OutputIntent
|
|
36
|
+
safe_attach :BRST_Doc_OutputIntent_Add, [:Doc, :OutputIntent], :uint32
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocPage
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Pages_SetConfiguration, [:Doc, :uint32], :uint32
|
|
36
|
+
safe_attach :BRST_Doc_Page_ByIndex, [:Doc, :uint32], :Page
|
|
37
|
+
safe_attach :BRST_Doc_Page_Layout, [:Doc], :PageLayout
|
|
38
|
+
safe_attach :BRST_Doc_Page_SetLayout, [:Doc, :PageLayout], :uint32
|
|
39
|
+
safe_attach :BRST_Doc_Page_Mode, [:Doc], :PageMode
|
|
40
|
+
safe_attach :BRST_Doc_Page_SetMode, [:Doc, :PageMode], :uint32
|
|
41
|
+
safe_attach :BRST_Doc_Page_Current, [:Doc], :Page
|
|
42
|
+
safe_attach :BRST_Doc_Page_Add, [:Doc], :Page
|
|
43
|
+
safe_attach :BRST_Doc_Page_Insert, [:Doc, :Page], :Page
|
|
44
|
+
safe_attach :BRST_Doc_Page_AddLabel, [:Doc, :uint32, :PageNum, :uint32, :string], :uint32
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
end
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocPagePattern
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Pattern_Tiling_New, [:Doc, :float, :float, :float, :float, :float, :float, :Matrix], :Pattern
|
|
36
|
+
safe_attach :BRST_Doc_Pattern_Stream, [:Pattern], :Stream
|
|
37
|
+
safe_attach :BRST_Doc_Dict_RGBPatternFill_Select, [:Doc, :Dict, :float, :float, :float, :Pattern], :uint32
|
|
38
|
+
safe_attach :BRST_Doc_Dict_RGBPatternFillUint_Select, [:Doc, :Dict, :uint8, :uint8, :uint8, :Pattern], :uint32
|
|
39
|
+
safe_attach :BRST_Doc_Dict_RGBPatternFillHex_Select, [:Doc, :Dict, :uint8, :Pattern], :uint32
|
|
40
|
+
safe_attach :BRST_Doc_Page_RGBPatternFill_Select, [:Doc, :Page, :float, :float, :float, :Pattern], :uint32
|
|
41
|
+
safe_attach :BRST_Doc_Page_RGBPatternFillUint_Select, [:Doc, :Page, :uint8, :uint8, :uint8, :Pattern], :uint32
|
|
42
|
+
safe_attach :BRST_Doc_Page_RGBPatternFillHex_Select, [:Doc, :Page, :uint8, :Pattern], :uint32
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocPattern
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_Pattern_Tiling_New, [:Doc, :float, :float, :float, :float, :float, :float, :Matrix], :Pattern
|
|
36
|
+
safe_attach :BRST_Doc_Pattern_Stream, [:Pattern], :Stream
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocPdfa
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_PDFA_SetConformance, [:Doc, :PDFAType], :uint32
|
|
36
|
+
safe_attach :BRST_Doc_PDFA_AddXmpExtension, [:Doc, :string], :uint32
|
|
37
|
+
safe_attach :BRST_Doc_PDFA_AppendOutputIntents, [:Doc, :string, :Dict], :uint32
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocSave
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_SaveToStream, [:Doc], :uint32
|
|
36
|
+
safe_attach :BRST_Doc_SaveToFile, [:Doc, :string], :uint32
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocSecurity
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_SetPassword, [:Doc, :string, :string], :uint32
|
|
36
|
+
safe_attach :BRST_Doc_SetPermission, [:Doc, :uint32], :uint32
|
|
37
|
+
safe_attach :BRST_Doc_SetEncryptionMode, [:Doc, :EncryptMode, :uint32], :uint32
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocViewer
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_SetOpenAction, [:Doc, :Destination], :uint32
|
|
36
|
+
safe_attach :BRST_Doc_ViewerPreference, [:Doc], :uint32
|
|
37
|
+
safe_attach :BRST_Doc_SetViewerPreference, [:Doc, :uint32], :uint32
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
#
|
|
3
|
+
# AUTO-GENERATED by brst-binding-ruby's generator (generator/bin/brst-binding-ruby-gen).
|
|
4
|
+
# Source of truth: libBeresta gen/data/*.lsp (S-expression definitions).
|
|
5
|
+
# DO NOT EDIT BY HAND. Re-generate with `rake generate`.
|
|
6
|
+
|
|
7
|
+
require "ffi"
|
|
8
|
+
require_relative "library"
|
|
9
|
+
require_relative "types"
|
|
10
|
+
|
|
11
|
+
module Brst
|
|
12
|
+
module Binding
|
|
13
|
+
module Ruby
|
|
14
|
+
module DocXobject
|
|
15
|
+
extend FFI::Library
|
|
16
|
+
ffi_lib Brst::Binding::Ruby::Library.lib_path
|
|
17
|
+
|
|
18
|
+
Brst::Binding::Ruby::Types.apply(self)
|
|
19
|
+
|
|
20
|
+
MISSING_SYMBOLS = []
|
|
21
|
+
|
|
22
|
+
# Wraps `attach_function` so that captions whose actual C symbol
|
|
23
|
+
# is missing from the loaded libBeresta build (e.g. caption /
|
|
24
|
+
# symbol drift in upstream .lsp data, or features compiled
|
|
25
|
+
# out) — or whose declared parameter types reference a struct
|
|
26
|
+
# / enum the .lsp data never declared — don't break the entire
|
|
27
|
+
# gem load. Each miss is recorded in MISSING_SYMBOLS for
|
|
28
|
+
# diagnostic surfaces.
|
|
29
|
+
def self.safe_attach(name, args, ret)
|
|
30
|
+
attach_function(name, args, ret)
|
|
31
|
+
rescue FFI::NotFoundError, TypeError => e
|
|
32
|
+
MISSING_SYMBOLS << [name, e.message]
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
safe_attach :BRST_Doc_XObject_New, [:Doc, :float, :float, :float, :float], :XObject
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
39
|
+
end
|