pdfcropper.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:krop 作者: gocarlos 项目源码 文件源码
def writeToStream(self, stream):
        # For certain large pdf files, PdfFileWriter.write() causes the error:
        #  maximum recursion depth exceeded while calling a Python object
        # This issue is present in pyPdf as well as PyPDF2 1.23
        # We therefore temporarily increase the recursion limit.
        old_reclimit = sys.getrecursionlimit()
        sys.setrecursionlimit(10000)
        self.output.write(stream)
        sys.setrecursionlimit(old_reclimit)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号