tableofcontents

PyPDF2 : extract table of contents/outlines and their page number

PyPDF2 : extract table of contents/outlines and their page number Question: I am trying to extract the TOC/outlines from PDFs and their page number using Python (PyPDF2), I am aware of the reader.outlines but it does not return the correct page number. Pdf example: https://www.annualreports.com/HostedData/AnnualReportArchive/l/NASDAQ_LOGM_2018.pdf and the output of reader.outlines is : [{‘/Title’: ‘2018 Highlights’, …

Total answers: 3

Creating Table of Contents in VS code Jupyter Notebook

Creating Table of Contents in VS code Jupyter Notebook Question: I am using the Jupyter extension in Visual Studio Code to maintain a notebook on python programming and I want to add a table of contents inside it. I want to add the TOC as the notebook is becoming very big and is becoming difficult …

Total answers: 2

Properly add page numbers and total number of pages to PDF using ReportLab

Properly add page numbers and total number of pages to PDF using ReportLab Question: I am trying to create a document that has page numbering of the format “Page x of y”. I have tried the NumberedCanvas approach (http://code.activestate.com/recipes/576832/ and also from the forums https://groups.google.com/forum/#!topic/reportlab-users/9RJWbrgrklI) but that conflicts with my clickable Table of Contents (https://www.reportlab.com/snippets/13/). …

Total answers: 3

How to include a local table of contents into Sphinx doc?

How to include a local table of contents into Sphinx doc? Question: How to include a local table of contents into Sphinx doc? I tried .. toc:: But that doesn’t seem to have any effect: nothing is inserted in the document. Basically I need links to the sections in the current page to be placed …

Total answers: 2