allow logo in PDF export to be configured in .env file

Refs: #5869
This commit is contained in:
Fabrice Gangler 2021-01-30 17:47:52 +01:00 committed by Pierre de La Morinerie
parent 82743d7da3
commit d039798ac8
4 changed files with 9 additions and 2 deletions

View file

@ -181,7 +181,7 @@ prawn_document(page_size: "A4") do |pdf|
italic: Rails.root.join('lib/prawn/fonts/marianne/marianne-thin.ttf' ),
})
pdf.font 'marianne'
pdf.svg IO.read("app/assets/images/header/logo-ds-wide.svg"), width: 300, position: :center
pdf.svg IO.read(DOSSIER_PDF_EXPORT_LOGO_SRC), width: 300, position: :center
pdf.move_down(40)
render_in_2_columns(pdf, 'Démarche', @dossier.procedure.libelle)

View file

@ -170,7 +170,7 @@ prawn_document(page_size: "A4") do |pdf|
})
pdf.font 'marianne'
pdf.svg IO.read("app/assets/images/header/logo-ds-wide.svg"), width: 300, position: :center
pdf.svg IO.read(DOSSIER_PDF_EXPORT_LOGO_SRC), width: 300, position: :center
pdf.move_down(40)
format_in_2_columns(pdf, 'Dossier Nº', @dossier.id.to_s)