Module: Acrofill

Defined in:
lib/acrofill.rb,
lib/acrofill/form.rb,
lib/acrofill/fonts.rb,
lib/acrofill/filler.rb,
lib/acrofill/writer.rb,
lib/acrofill/metrics.rb,
lib/acrofill/version.rb,
lib/acrofill/document.rb,
lib/acrofill/template.rb,
lib/acrofill/flattener.rb,
lib/acrofill/appearance.rb,
lib/acrofill/serializer.rb

Defined Under Namespace

Modules: Metrics Classes: Appearance, Document, Error, Filler, Flattener, Fonts, Form, Serializer, StreamObject, Template, Writer

Constant Summary collapse

VERSION =
'0.4.1'

Class Method Summary collapse

Class Method Details

.field_names(template) ⇒ Object



31
32
33
# File 'lib/acrofill.rb', line 31

def self.field_names(template)
  Filler.new.field_names(template)
end

.fields(template) ⇒ Object



27
28
29
# File 'lib/acrofill.rb', line 27

def self.fields(template)
  Filler.new.fields(template)
end

.fill_form(template, destination, data = {}, options = {}) ⇒ Object



23
24
25
# File 'lib/acrofill.rb', line 23

def self.fill_form(template, destination, data = {}, options = {})
  Filler.new.fill_form(template, destination, data, options)
end

.newObject

Mirrors the PdfForms.new(pdftk_path, options) constructor shape.



19
20
21
# File 'lib/acrofill.rb', line 19

def self.new(*, **)
  Filler.new(*, **)
end