pdf cabane d'obs
This commit is contained in:
parent
9995fc623b
commit
bce10d5302
@ -37,14 +37,14 @@ class Public::OrdersController < ApplicationController
|
||||
@final_file = "#{Rails.root}/pdf/#{@order.token}.pdf"
|
||||
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,
|
||||
: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 => {
|
||||
:top => 0,
|
||||
:bottom => 30,
|
||||
:bottom => 0,
|
||||
:left =>20,
|
||||
:right => 13
|
||||
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user