fix annotations

pull/217/head
Pete Matsyburka 2 years ago
parent f69aa33f3d
commit 73fc2d92f7

@ -29,10 +29,10 @@ module Templates
{ {
'type' => 'external_link', 'type' => 'external_link',
'value' => annot[:A][:URI], 'value' => annot[:A][:URI],
'x' => left / page.width, 'x' => left / page.width.to_f,
'y' => (page.height - top) / page.height, 'y' => (page.height - top) / page.height.to_f,
'w' => (right - left) / page.width, 'w' => (right - left) / page.width.to_f,
'h' => (top - bottom) / page.height 'h' => (top - bottom) / page.height.to_f
} }
end end
end end

Loading…
Cancel
Save