This commit is contained in:
Adrian Hinz 2018-04-17 18:34:02 +02:00
parent 7756a98fbc
commit b0cbd7c38c
1 changed files with 2 additions and 8 deletions

View File

@ -15,14 +15,8 @@ class InvoicesController < ApplicationController
layout: 'pdf',
encoding: 'UTF-8',
page_size: 'A4',
print_media_type: true,
render pdf: "Faktura_VAT_#{@invoice.id}", # Excluding ".pdf" extension.
disposition: 'attachment',
layout: 'pdf',
encoding: 'UTF-8',
page_size: 'A4',
margin: { top: 8, bottom: 8, left: 8, right: 8 },
viewport_size: '1336x1024'
margin: { top: 8, bottom: 8, left: 8, right: 8 },
viewport_size: '1336x1024'
end
end
end