如何在Python中运行PDFbookmarker

2024-04-25 09:31:38 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图使用这个工具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
>>> 

Tags: 工具samplepyhttpstestgithubtxtcom

热门问题