Sha256: f604fa6fb7e39d66886ed336eaad208f43a3ffa76657e67f31d86b5cc6359ce7
Contents?: true
Size: 560 Bytes
Versions: 3
Compression:
Stored size: 560 Bytes
Contents
require 'java' require File.dirname(__FILE__) + '/../../../vendor/iText-4.2.0' module PDFRavager module FieldTypes module AcroForm module SOM def self.short_name(str) com.lowagie.text.pdf.XfaForm::Xml2Som.getShortName(self.escape(str)) end def self.escape(str) com.lowagie.text.pdf.XfaForm::Xml2Som.escapeSom(str) # just does: str.gsub(/\./) { '\\.' } end end def acro_form_name @name end def acro_form_value @value.to_s end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pdf_ravager-0.2.2 | lib/pdf_ravager/field_types/acro_form.rb |
pdf_ravager-0.2.1 | lib/pdf_ravager/field_types/acro_form.rb |
pdf_ravager-0.2.0 | lib/pdf_ravager/field_types/acro_form.rb |