expected_x = (krds_x / 100.0) * 72.0 expected_y = (krds_y / 100.0) * 72.0 self.assertAlmostEqual(pdf_x, expected_x, places=2) self.assertAlmostEqual(pdf_y, expected_y ...
# Fills a PDF by adding text annotations defined in `fields.json`. See FORMS.md. def transform_coordinates(bbox, image_width, image_height, pdf_width, pdf_height): """Transform bounding box from image ...