Module: Acrofill
- Defined in:
- lib/acrofill/metrics.rb,
lib/acrofill.rb,
lib/acrofill/form.rb,
lib/acrofill/filler.rb,
lib/acrofill/writer.rb,
lib/acrofill/version.rb,
lib/acrofill/document.rb,
lib/acrofill/template.rb,
lib/acrofill/appearance.rb,
lib/acrofill/serializer.rb
Overview
Glyph widths (1/1000 em) for standard-14 fonts, ASCII 32..126, extracted from Adobe AFM metrics. Index = char code - 32.
Defined Under Namespace
Modules: Metrics Classes: Appearance, Document, Error, Filler, Form, Serializer, StreamObject, Template, Writer
Constant Summary collapse
- VERSION =
'0.1.2'
Class Method Summary collapse
- .field_names(template) ⇒ Object
- .fields(template) ⇒ Object
- .fill_form(template, destination, data = {}, options = {}) ⇒ Object
-
.new ⇒ Object
Mirrors the PdfForms.new(pdftk_path) constructor shape.
Class Method Details
.field_names(template) ⇒ Object
29 30 31 |
# File 'lib/acrofill.rb', line 29 def self.field_names(template) Filler.new.field_names(template) end |
.fields(template) ⇒ Object
25 26 27 |
# File 'lib/acrofill.rb', line 25 def self.fields(template) Filler.new.fields(template) end |
.fill_form(template, destination, data = {}, options = {}) ⇒ Object
21 22 23 |
# File 'lib/acrofill.rb', line 21 def self.fill_form(template, destination, data = {}, = {}) Filler.new.fill_form(template, destination, data, ) end |
.new ⇒ Object
Mirrors the PdfForms.new(pdftk_path) constructor shape.
17 18 19 |
# File 'lib/acrofill.rb', line 17 def self.new(*) Filler.new(*) end |