def vectorize(e, tolerance=<NUM_LIT:0.1>):
tolerance = max(tolerance, e.linewidth)<EOL>is_high = e.height > tolerance<EOL>is_wide = e.width > tolerance<EOL>if is_wide and not is_high:<EOL><INDENT>return (e.width, <NUM_LIT:0.0>)<EOL><DEDENT>if is_high and not is_wide:<EOL><INDENT>return (<NUM_LIT:0.0>, e.height)<EOL><DEDENT>
vectorizes the pdf object's bounding box
min_width is the width under which we consider it a line
instead of a big rectangle