This commit is contained in:
parent
7756a98fbc
commit
b0cbd7c38c
|
|
@ -15,14 +15,8 @@ class InvoicesController < ApplicationController
|
||||||
layout: 'pdf',
|
layout: 'pdf',
|
||||||
encoding: 'UTF-8',
|
encoding: 'UTF-8',
|
||||||
page_size: 'A4',
|
page_size: 'A4',
|
||||||
print_media_type: true,
|
margin: { top: 8, bottom: 8, left: 8, right: 8 },
|
||||||
render pdf: "Faktura_VAT_#{@invoice.id}", # Excluding ".pdf" extension.
|
viewport_size: '1336x1024'
|
||||||
disposition: 'attachment',
|
|
||||||
layout: 'pdf',
|
|
||||||
encoding: 'UTF-8',
|
|
||||||
page_size: 'A4',
|
|
||||||
margin: { top: 8, bottom: 8, left: 8, right: 8 },
|
|
||||||
viewport_size: '1336x1024'
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue