Hi and thanks for hexapdf!
I tried to fill out the following PDF template which results in undefined method*' for nil:NilClass. Thecap_heightisnil`.
Other PDF templates work fine so far but this one failed.
All templates are created with Adobe.
require 'hexapdf'
values = {
'Tagesdatum' => Date.today.strftime('%d.%m.%Y')
}.freeze
doc = HexaPDF::Document.open('vorlage-test.pdf')
doc.acro_form.each_field do |field|
value = values.fetch(field.field_name)
field.field_value = value.to_s
field.flag(:read_only)
end
Hi and thanks for hexapdf! I tried to fill out the following PDF template which results in
undefined method
*' for nil:NilClass. The
cap_heightis
nil`. Other PDF templates work fine so far but this one failed. All templates are created with Adobe.vorlage-test.pdf