Closed NextGuido closed 1 year ago
## Describe the bug
page.rects get wrong results!
page.rects
import pdfplumber pdf = pdfplumber.open('EVENT-5918-8ac0a93d87736d370187753417bf0df2.pdf') page = pdf.pages[0] page.to_image().draw_rects(page.rects).save('rects.png')
Please attach any PDFs necessary to reproduce the problem. EVENT-5918-8ac0a93d87736d370187753417bf0df2.pdf
If you need to redact text in a sensitive PDF, you can run it through JoshData/pdf-redactor.
What did you expect the result should have been? just like this! Not the same file to the demo!
What actually happened, instead?
If applicable, add screenshots to help explain your problem.
Add any other context/notes about the problem [here.](url)
## Describe the bug
page.rects
get wrong results!Code to reproduce the problem
PDF file
Please attach any PDFs necessary to reproduce the problem. EVENT-5918-8ac0a93d87736d370187753417bf0df2.pdf
If you need to redact text in a sensitive PDF, you can run it through JoshData/pdf-redactor.
Expected behavior
What did you expect the result should have been? just like this! Not the same file to the demo!![rects](https://user-images.githubusercontent.com/37173179/231671605-a19013d0-424e-4419-9eb6-935df4c347fb.jpg)
Actual behavior
What actually happened, instead?![rects](https://user-images.githubusercontent.com/37173179/231670951-5623234d-4316-4fbe-9f0a-69549fb083cf.png)
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
Additional context
Add any other context/notes about the problem [here.](url)