Skip to content

Commit

Permalink
fix pdf form fields
Browse files Browse the repository at this point in the history
  • Loading branch information
omohokcoj committed Jul 10, 2024
1 parent 12c6957 commit ddd881a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/templates/find_acro_fields.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def call(pdf, attachment)

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
}

Expand Down

0 comments on commit ddd881a

Please sign in to comment.