minecart icon indicating copy to clipboard operation
minecart copied to clipboard

How to find only rectangular objects on PDF

Open PujaAdak opened this issue 3 years ago • 0 comments

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 ?

PujaAdak avatar Apr 07 '21 03:04 PujaAdak