pdf cabane d'obs

This commit is contained in:
Nicolas Bally 2015-01-30 15:10:37 +01:00
parent 9995fc623b
commit bce10d5302
2 changed files with 3 additions and 3 deletions

View File

@ -37,14 +37,14 @@ class Public::OrdersController < ApplicationController
@final_file = "#{Rails.root}/pdf/#{@order.token}.pdf" @final_file = "#{Rails.root}/pdf/#{@order.token}.pdf"
spacing = 5 spacing = 5
pdf = WickedPdf.new.pdf_from_string("<br />", pdf = WickedPdf.new.pdf_from_string("<html><body style='background:transparent;'><p style='text-align:right;font-family:arial;font-size:10px; color:#E2E4E6;position:absolute;bottom:18;right:0;'> Exemplaire personnel de #{@order.firstname} #{@order.name}</p></body></html>",
:no_background => true, :no_background => true,
:page_size => "A4", :page_size => "A4",
:footer => {:spacing => 19, :content => "<html><body style='background:transparent;'><p style='text-align:right;font-family:arial;font-size:10px; color:#E2E4E6;'> Exemplaire personnel de #{@order.firstname} #{@order.name}</p></body></html>" },
:margin => { :margin => {
:top => 0, :top => 0,
:bottom => 30, :bottom => 0,
:left =>20, :left =>20,
:right => 13 :right => 13

Binary file not shown.