我试图使用这个工具https://github.com/RussellLuo/pdfbookmarker,但我经常收到错误消息
我安装了portable WinPython,通过pip安装了PyPDF2,下载了add_bookmarks.py脚本并将其粘贴到WinPython目录中,更改了其执行权限,只是无法正常运行,为什么
Python 3.5.4 (v3.5.4:3f56838, Aug 8 2017, 02:17:05) [MSC v.1900 64 bit (AMD64)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> add_bookmarks.py <test.pdf> [sample_bookmarks.txt] [FILE-new.pdf]
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
add_bookmarks.py <test.pdf> [sample_bookmarks.txt] [FILE-new.pdf]
NameError: name 'add_bookmarks' is not defined
>>>
最后我使用了另一个:https://github.com/lstolcman/pdf_bookmarks,它成功了
相关问题 更多 >
编程相关推荐