Sha256: 578e5436b5ee296affc5bec90d7ac0ed8d704b12924701163b7844d0c7982f21

Contents?: true

Size: 420 Bytes

Versions: 5

Compression:

Stored size: 420 Bytes

Contents

require_relative 'fillable-pdf-th/itext'

class Field
  class << self
    def pdf_name
      @pdf_nanme ||= Rjb.import('com.itextpdf.kernel.pdf.PdfName')
    end

    def button
      @button = pdf_name.Btn.toString
    end

    def choice
      @choice = pdf_name.Ch.toString
    end

    def signature
      @signature = pdf_name.Sig.toString
    end

    def text
      @text = pdf_name.Tx.toString
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fillable-pdf-th-1.0.5.1 lib/field.rb
fillable-pdf-th-1.0.4 lib/field.rb
fillable-pdf-th-1.0.3 lib/field.rb
fillable-pdf-th-1.0.2 lib/field.rb
fillable-pdf-th-1.0.1 lib/field.rb