{"repo":"Krasjet/pdf.tocgen","free":true,"listed":false,"github":"https://github.com/Krasjet/pdf.tocgen","clone":"git clone https://github.com/Krasjet/pdf.tocgen.git","description":"A CLI toolset to generate table of contents for PDF files automatically.","language":"Python","stars":845,"topics":["pdf","cli","toc-generator","scraping","table-of-contents","pdf-document","pdf-files","pymupdf"],"license":"GPL-3.0","category":"media-processing","readme_excerpt":"[pdf.tocgen][tocgen] ========== [pdf.tocgen][tocgen] is a set of command-line tools for automatically extracting and generating the table of contents (ToC) of a PDF file. It uses the embedded font attributes and position of headings to deduce the basic outline of a PDF file. It works best for PDF files produces from a TeX document using pdftex (and its friends pdflatex , pdfxetex , etc.), but it's designed to work with any software-generated PDF files (i.e. you shouldn't expect it to work with scanned PDFs). Some examples include troff / groff , Adobe InDesign, Microsoft Word, and probably more. Please see the [ homepage ][tocgen] for a detailed introduction. Installation ------------ pdf.tocgen is written in Python 3. It is known to work with Python 3.7 to 3.11 on Linux, Windows, and macOS (On BSDs, you probably need to build PyMuPDF yourself). Use to install the latest version systemwide. Alternatively, use [pipx][pipx] or to install it for the current user. I would recommend the latter approach to avoid messing up the package manager on your system. If you are using an Arch-based Linux distro, the package is also available on [AUR][aur]. It can be installed using any AUR helper, for example [ yay ][yay]: [pipx]: https://pipxproject.github.io/pipx/ [aur]: https://aur.archlinux.org/packages/pdf.tocgen/ [yay]: https://github.com/Jguer/yay Workflow -------- The design of pdf.tocgen is influenced by the [Unix philosophy][unix]. I intentionally separated pdf.tocgen to 3 separate","default_branch":null,"files":null,"tree":[],"storefront":"/r/Krasjet","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Krasjet/pdf.tocgen/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}