mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 14:42:33 -05:00
fix font size
This commit is contained in:
1 parent
9b7745c565
commit
8f6f418f54
1 file changed
+1
-1
@@ -162,7 +162,7 @@ module Submissions
|
||||
|
||||
pdf.trailer.info[:DocumentID] = document_id
|
||||
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)
|
||||
|
||||
text =
|
||||
|
||||
Reference in new issue
Block a user