嗨,我试图水印一个pdf文件使用pypdf2,虽然我得到这个错误,我不知道哪里出了问题。test.py", line 13, in <module>
page.mergePage(watermark.getPage(0)) File "C:\Python27\site-packages\PyPDF2_mergePage(page2) File "C:\Python27\site-packages\PyPDF2\pdf.py", line 1651, in _mergePag
我已经安装了PyPDF2 (假设成功),但我似乎不能使用这些工具: Available versions for pythonRequirement already satisfied (use --upgrade to upgrade): PyPDF2 in /opt/local/Library/Frameworksimport PyPDF2
我已经让pypdf在单个pdf文件上工作得很好,但我似乎无法让它在一个文件列表中工作,或者在一个for循环中为多个pdf工作,而不失败,因为字符串是不可调用的。有什么想法可以作为变通办法吗?def getPDFContent(path): # Load PDF into pyPDF
pdf = pyPdf.PdfFileReader(fileFile "C:\Documents and Settings\dknight\Desktop\readpdf.py&qu