From ddd881a52f0310b64ee8ab62a9e63b19f46ef7f0 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Wed, 10 Jul 2024 21:58:25 +0300 Subject: [PATCH] fix pdf form fields --- lib/templates/find_acro_fields.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/templates/find_acro_fields.rb b/lib/templates/find_acro_fields.rb index a0f12164..d27c4903 100644 --- a/lib/templates/find_acro_fields.rb +++ b/lib/templates/find_acro_fields.rb @@ -42,10 +42,10 @@ module Templates attrs = { page: page.index, - x: x / page_width, - y: transformed_y / page_height, - w: w / page_width, - h: h / page_height, + x: x / page_width.to_f, + y: transformed_y / page_height.to_f, + w: w / page_width.to_f, + h: h / page_height.to_f, attachment_uuid: attachment.uuid }