fix pdf form fields
This commit is contained in:
@@ -42,10 +42,10 @@ module Templates
|
|||||||
|
|
||||||
attrs = {
|
attrs = {
|
||||||
page: page.index,
|
page: page.index,
|
||||||
x: x / page_width,
|
x: x / page_width.to_f,
|
||||||
y: transformed_y / page_height,
|
y: transformed_y / page_height.to_f,
|
||||||
w: w / page_width,
|
w: w / page_width.to_f,
|
||||||
h: h / page_height,
|
h: h / page_height.to_f,
|
||||||
attachment_uuid: attachment.uuid
|
attachment_uuid: attachment.uuid
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user