Sha256: 7cf653513636c4f8f941bd0703ea0321489af25edf5cc2059849f359a758d105

Contents?: true

Size: 417 Bytes

Versions: 1

Compression:

Stored size: 417 Bytes

Contents

require_relative 'fillable-pdf/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

1 entries across 1 versions & 1 rubygems

Version Path
fillable-pdf-th-1.0.0 lib/field.rb