Skip to content

Commit

Permalink
Add display_url to generated PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
luciajanikova committed Oct 23, 2024
1 parent 0747cc4 commit 6840c4f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ UPVS_SSO_SUBJECT=
UPVS_SSO_SP_CERTIFICATE=
UPVS_SSO_SP_PRIVATE_KEY=
UPVS_ENV=
PDF_DISPLAY_URL=
1 change: 1 addition & 0 deletions .env.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ ZwIDAQAB
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=1
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=2
ACTIVE_RECORD_ENCRYPTION_KEY_DERIVATION_SALT=3
PDF_DISPLAY_URL=
3 changes: 2 additions & 1 deletion app/models/concerns/pdf_visualization_operations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def prepare_pdf_visualization_from_html
bottom: '15px',
left: '15px',
right: '15px'
}
},
display_url: ENV['PDF_DISPLAY_URL']
).to_pdf
end

Expand Down

0 comments on commit 6840c4f

Please sign in to comment.