fix font size

This commit is contained in:
Pete Matsyburka
2026-02-12 14:27:15 +02:00
parent 9b7745c565
commit 8f6f418f54
@@ -162,7 +162,7 @@ module Submissions
pdf.trailer.info[:DocumentID] = document_id pdf.trailer.info[:DocumentID] = document_id
pdf.pages.each do |page| pdf.pages.each do |page|
font_size = (([page.box.width, page.box.height].min / A4_SIZE[0].to_f) * 9).to_i font_size = [(([page.box.width, page.box.height].min / A4_SIZE[0].to_f) * 9).to_i, 4].max
cnv = page.canvas(type: :overlay) cnv = page.canvas(type: :overlay)
text = text =