Method: ChemScanner::Cdxml#read_global
- Defined in:
- lib/chem_scanner/cdxml.rb
#read_global ⇒ Object
47 48 49 50 51 52 53 54 55 |
# File 'lib/chem_scanner/cdxml.rb', line 47 def read_global @version = @cdxml.xpath("//CDXML/@CreationProgram").text.split(" ").last ct = @cdxml.xpath("//CDXML/colortable").first @color_table = read_colortable(ct, "cdxml") ft = @cdxml.xpath("//CDXML/fonttable").first @font_table = read_fonttable(ft, "cdxml") end |