编程语言
首页 > 编程语言> > [File has not been decrypted] PdfFileWriter python 解决

[File has not been decrypted] PdfFileWriter python 解决

作者:互联网

runfile('C:/Users/oqur2c/.spyder-py3/temp.py', wdir='D:/Personal/Python_Project')
Traceback (most recent call last):

  File "<ipython-input-1-f09f3fbc9d5f>", line 1, in <module>
    runfile('C:/Users/oqur2c/.spyder-py3/temp.py', wdir='D:/Personal/Python_Project')

  File "D:\ProgramData\Anaconda\lib\site-packages\spyder\utils\site\sitecustomize.py", line 880, in runfile
    execfile(filename, namespace)

  File "D:\ProgramData\Anaconda\lib\site-packages\spyder\utils\site\sitecustomize.py", line 102, in execfile
    exec(compile(f.read(), filename, 'exec'), namespace)

  File "C:/Users/oqur2c/.spyder-py3/temp.py", line 73, in <module>
    split_pdf_1(filename, file[0], file[1], file[2])

  File "C:/Users/oqur2c/.spyder-py3/temp.py", line 22, in split_pdf_1
    page_count = pdf_input.getNumPages()

  File "D:\ProgramData\Anaconda\lib\site-packages\PyPDF2\pdf.py", line 1150, in getNumPages
    raise utils.PdfReadError("File has not been decrypted")

PdfReadError: File has not been decrypted

  错误的解决方法?[File has not been decrypted] PdfFileWriter python 解决

已经完美解决此问题。

v:dz7dz7

搜索

复制

标签:decrypted,oqur2c,python,py,site,been,File,line,spyder
来源: https://www.cnblogs.com/bdua/p/16341199.html