def transform_from_image_coords(bbox, image_width, image_height, pdf_width, pdf_height): ...
These scripts are modified from my PDF Suite of python scripts for MacOS that use PyObjC: in order to work on iOS in the pythonista environment, using objc_utils. You'll see that most of the code is ...