no pages in doc after clean up #4695
Replies: 1 comment
-
You actually executed some type of test in that you saved the PDF (to memory). I am slightly confused by the way you do that save to memory - I would have simply done You might as well loop through the single pages after original open to confirm that there is a page tree problem: for page in doc:
print(f"Successfully accessed {page.number=}") |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
A pdf has 60+ pages, but after clean up with the code below, page_count is 0
def _clean_up(file_path):
doc = fitz.open(file_path)
I guess there is something wrong with the pdf, how can I identify?
Beta Was this translation helpful? Give feedback.
All reactions