minecart
minecart copied to clipboard
How to find only rectangular objects on PDF
for page in doc.iter_pages(): im = page.shapes for shape in page.shapes: print(shape.path)
This returns the below output what is "m" , 'l' ?
[('m', 2023.52, 875.9599999999999), ('l', 2023.52, 848.24), ('l', 2030.6, 848.24), ('l', 2030.6, 854.0), ('l', 2047.52, 854.0), ('l', 2047.52, 875.9599999999999), ('l', 2023.52, 875.9599999999999)]
Could you please let me know how can I find a particular object or find all rectangular object in pdf file ?