You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When extracting text from a page which was cropped multiple times with relative parameter, the return string is always empty. In the following code snippet, when I try to extract the Column 2, text1 returns the right result, but text2 with relative cropping returns empty.
When using relative=True for a re-crop, pdfplumber was passing the wrong
bounding box to the cropping function. This commit fixes that bug and
also refactors CroppedPage.__init__(...) for clarity and consistency's
sake.
Describe the bug
When extracting text from a page which was cropped multiple times with relative parameter, the return string is always empty. In the following code snippet, when I try to extract the Column 2,
text1
returns the right result, buttext2
with relative cropping returns empty.Code to reproduce the problem
PDF file
Lorem.pdf

Expected behavior
text2
should also give the correctly extracted Column 2 value liketext1
.Actual behavior
text2
is empty string.Environment
Additional context
crop1
andcrop2
have the exact same bounding box.Thanks for continuously maintaining this wonderful package.
The text was updated successfully, but these errors were encountered: