Feb-02-2018, 05:37 AM
I've never used this module stand alone, but do use the wxpython implementation
of wx.lib.pdfviewer, which wil use either PyPDF2 or PyMuPDF (whichever it finds installed)
They have a base application that might be helpful, documented here:
https://wxpython.org/Phoenix/docs/html/w....pdfviewer
including a complete example.
Other examples, of using PyPDF2(without GUI) can be found here: http://nullege.com/codes/search?cq=PyPDF2
and specifically using GetOutlines here: http://nullege.com/codes/search/pdf.PdfF...etOutlines
If you want to try the GUI example, you need to install wxpython which is simple:
of wx.lib.pdfviewer, which wil use either PyPDF2 or PyMuPDF (whichever it finds installed)
They have a base application that might be helpful, documented here:
https://wxpython.org/Phoenix/docs/html/w....pdfviewer
including a complete example.
Other examples, of using PyPDF2(without GUI) can be found here: http://nullege.com/codes/search?cq=PyPDF2
and specifically using GetOutlines here: http://nullege.com/codes/search/pdf.PdfF...etOutlines
If you want to try the GUI example, you need to install wxpython which is simple:
pip install wxpython