Module: PDFRavager::FieldTypes::AcroForm::SOM

Defined in:
lib/pdf_ravager/field_types/acro_form.rb

Class Method Summary collapse

Class Method Details

.escape(str) ⇒ Object



13
14
15
# File 'lib/pdf_ravager/field_types/acro_form.rb', line 13

def self.escape(str)
  com.lowagie.text.pdf.XfaForm::Xml2Som.escapeSom(str) # just does: str.gsub(/\./) { '\\.' }
end

.short_name(str) ⇒ Object



9
10
11
# File 'lib/pdf_ravager/field_types/acro_form.rb', line 9

def self.short_name(str)
  com.lowagie.text.pdf.XfaForm::Xml2Som.getShortName(self.escape(str))
end