Verified Commit 626ab1f8 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

change dpi option in pdf to 400 so that an a4 page is a4 again

parent 2457e5e7
......@@ -12,7 +12,9 @@ class CertificatesController < ApplicationController
format.html
format.pdf do
render pdf: pdf_file_name(@certificate),
layout: 'certificate.pdf', print_media_type: true, no_background: true,
show_as_html: params.key?('debug'),
layout: 'certificate.pdf',
dpi: '400',
margin: { top: 0, bottom: 0, left: 0, right: 0 }
end
end
......
......@@ -32,7 +32,7 @@
.text-body= markdown(@certificate.text_body)
.signature.row
.signature
.col-xs-8
.name= @certificate.creator_name
.position= @certificate.creator_function
......
......@@ -10,5 +10,8 @@
WickedPdf.config = {
layout: 'pdf.html',
encoding: 'UTF-8'
encoding: 'UTF-8',
page_size: 'A4',
print_media_type: true,
no_background: true
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment