Quantity and Component Price shifts locations on different PDFs #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The vertical placement of the printing quantity and component cost shifts depending on how much information is in the Job description and, and component information fields.
My initial plan to resolve this is to search for the "Quantity" and "Component Totals" blocks. I can use those blocks to set the vertical postions of the selection boxes and use the existing working y values.
From: https://github.com/pymupdf/PyMuPDF/wiki/How-to-extract-text-from-a-rectangle
So, for example
Something like this, should find "quantity" on the page. Then we add all the newly found x values into the qtyrect list along with the y values that we know are currently working.