Sha256: f63ccb41fe1d5df5c32db4366295d1d446df4c4c2740f4068f098534f01275f5
Contents?: true
Size: 578 Bytes
Versions: 3
Compression:
Stored size: 578 Bytes
Contents
module OpenXml module Docx module Properties class PageSize < ComplexProperty tag :pgSz attribute :code, expects: :integer attribute :height, expects: :positive_integer, displays_as: :h attribute :orientation, expects: :valid_orientation, displays_as: :orient attribute :width, expects: :positive_integer, displays_as: :w VALID_PAGE_ORIENTATIONS = %i(portrait landscape) private def valid_orientation(value) valid_in? value, VALID_PAGE_ORIENTATIONS end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
openxml-docx-0.9.0 | lib/openxml/docx/properties/page_size.rb |
openxml-docx-0.8.0 | lib/openxml/docx/properties/page_size.rb |
openxml-docx-0.8.0.beta1 | lib/openxml/docx/properties/page_size.rb |