# pdf_creat_toc **Repository Path**: bule-lin/pdf_creat_toc ## Basic Information - **Project Name**: pdf_creat_toc - **Description**: No description available - **Primary Language**: Python - **License**: MIT - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-04-22 - **Last Updated**: 2025-04-25 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # pdf_creat_toc 基于[pdf.tocgen](https://github.com/Krasjet/pdf.tocgen)实现的PDF自动添加目录程序,不支持扫描版pdf 下载依赖 ``` pip install pdf.tocgen ``` 目前可以完成一层目录自动添加,但二层目录时会报错,仍然可以正常完成 ### 使用说明 ![image-20250422191836019](README.assets/image-20250422191836019.png) 选择好对应的文件后,可以添加条目 ![image-20250422191919436](README.assets/image-20250422191919436.png) 级别是1,页面是你决定要选择这本书中取哪一类字符作为目录 例如: ![image-20250422192051954](README.assets/image-20250422192051954.png) 本页选取红框内为标题示例,则填写如下。 ![image-20250422192241503](README.assets/image-20250422192241503.png) 点击生成目录即可。 ![image-20250422192520560](README.assets/image-20250422192520560.png) 效果如下 ![image-20250422192555602](README.assets/image-20250422192555602.png)