The first page of my PDF is a full width/height image, so I've set margin: 0 while generating my Document
Prawn::Document.generate(FILENAME, margin: 0) do |pdf|
...
end
Though I'd like the rest of my PDF to have some margins. I've tried to:
- set up
pdf.margins([1, 1, 1, 1]), butmarginsis anattr_reader(doc) - overwrite the value of
last_page_marginsby passing options toDocument#start_new_page
I'm out of ideas and can't find anything related to my problem from the docs (except maybe finding a way to trigger merge_template_options.
Any recommendation to achieve this goal ?