From 73fc2d92f73ea667a09fbe11dd54d2bfb3a5a168 Mon Sep 17 00:00:00 2001 From: Pete Matsyburka Date: Fri, 19 Jan 2024 01:15:13 +0200 Subject: [PATCH] fix annotations --- lib/templates/build_annotations.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/templates/build_annotations.rb b/lib/templates/build_annotations.rb index 54f584b4..5417e51a 100644 --- a/lib/templates/build_annotations.rb +++ b/lib/templates/build_annotations.rb @@ -29,10 +29,10 @@ module Templates { 'type' => 'external_link', 'value' => annot[:A][:URI], - 'x' => left / page.width, - 'y' => (page.height - top) / page.height, - 'w' => (right - left) / page.width, - 'h' => (top - bottom) / page.height + 'x' => left / page.width.to_f, + 'y' => (page.height - top) / page.height.to_f, + 'w' => (right - left) / page.width.to_f, + 'h' => (top - bottom) / page.height.to_f } end end