Merge remote-tracking branch 'origin/release/5.0' into dev

pull/6827/head
Oliver Günther 9 years ago
commit fa1e980aae
  1. 6
      lib/open_project/pdf_export/export_card/document_generator.rb
  2. 4
      openproject-pdf_export.gemspec

@ -46,9 +46,6 @@ module OpenProject::PdfExport::ExportCard
page_layout = :landscape if config.landscape? else :portrait
page_size = config.page_size or defaults[:page_size]
geom = Prawn::Document::PageGeometry::SIZES[page_size]
@paper_width = geom[0]
@paper_height = geom[1]
@pdf = Prawn::Document.new(
:page_layout => page_layout,
@ -57,6 +54,9 @@ module OpenProject::PdfExport::ExportCard
:top_margin => 0,
:bottom_margin => 0,
:page_size => page_size)
@paper_width = @pdf.bounds.width
@paper_height = @pdf.bounds.height
end
def render

@ -16,8 +16,8 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib,doc}/**/*", "README.md"]
s.add_dependency 'rails', '~> 4.2.4'
s.add_dependency "prawn", "~> 0.14.0"
s.add_dependency "prawn", "~> 2.1.0"
s.add_development_dependency "pdf-inspector", "~>1.0.0"
end

Loading…
Cancel
Save