Sha256: 95d441ab284881b2ad2b17f317d5edf3350c04e2bc6039ac55a320c45eff0b7f
Contents?: true
Size: 666 Bytes
Versions: 4
Compression:
Stored size: 666 Bytes
Contents
module OoxmlParser # Class for parsing `wp14:pctWidth`, `wp14:pctHeight` object class PictureDimension < OOXMLDocumentObject # @return [Float] value of picture width or height attr_accessor :value # Parse PictureWidth # @param [Nokogiri::XML:Node] node with PictureWidth # @return [PictureWidth] result of parsing def parse(node) # value should be in percent as said in # https://msdn.microsoft.com/en-us/library/documentformat.openxml.office2010.word.drawing.relativewidth%28v=office.14%29.aspx?f=255&MSPPError=-2147217396 @value = OoxmlSize.new(node.child.text.to_f, :one_1000th_percent) self end end end
Version data entries
4 entries across 4 versions & 1 rubygems