Closed haike-1213 closed 3 months ago
Machine-generated translations (Chinese -> English):
Title:
当,pdf某一页异常的时候,renderer 到那一页后就会一直卡顿 When a page in the PDF is abnormal, the renderer will be stuck after reaching that page
Comment in install info:
将迭代器转换为列表,这样可以立即获取所有渲染结果 Convert the iterator to a list so that all rendering results can be obtained immediately
In general, if you want support, you should provide valid install info (at least the pypdfium2 version used), as well as a PDF that triggers the issue.
Note that the document-level renderer is deprecated, see https://pypdfium2.readthedocs.io/en/stable/changelog.html#rationale-for-pdfdocument-render-deprecation If you are using a version prior to 4.25, it getting stuck is - unfortunately - quite imaginable.
Also note that you should design your code iteratively. Keeping all renderings in memory is problematic, esp. for long pdfs / high scales.
Checklist
pypdfium2
fromPyPI
orGitHub/pypdfium2-team
.Description
Install Info