dustheart (@Xingan_Wang) 在 开始我只有个想法,PDF怎么阅读最好 中发帖
引子
最近准备学习巨厚的书:Pharmacokinetic and pharmacodynamic data analysis,总共有1000页以上,文件大小150 MB左右,含有大量公式和图,还没有书签。
建立pdf书签(成功)
经过与ai的反复讨论形成最终代码,2个文件代码见下(pdf有目录文件,同时我公司电脑没法设置系统全局环境变量)
a.py
import re
import csv
import os
import sys
import traceback
# ==================== 工具函数 ====================
def get_pdf_list():
current_dir = os.path.dirname(os.path.abspath(__file__))
# 排除生成的中间文件
files = ...