class Docxi::Document

Attributes

content_types[RW]
document[RW]
options[RW]
properties[RW]
relationships[RW]

Public Class Methods

new(options = {top: 720,right: 1440,left: 1440,bottom: 720,footer: 200, header: 190}) click to toggle source
# File lib/docxi/document.rb, line 6
def initialize(options = {top: 720,right: 1440,left: 1440,bottom: 720,footer: 200, header: 190})
  @options = options
end

Public Instance Methods

render() click to toggle source
# File lib/docxi/document.rb, line 26
def render
  Zip::ZipOutputStream.write_buffer do |zip|
    document.render(zip)
    properties.render(zip)
    relationships.render(zip)
    content_types.render(zip)
  end
end