This code shows how to use py2PDF. Quite simple as all I wanted was to generate a txt with a single page PDF. The code goes as follows:
- libraries installation, imports, etc.
- Definition of local variables
- Text definition
- Download the code
- Make sure that you installed:
- py2PDF (https://www.askpython.com/python/examples/convert-pdf-to-txt) Note: take into account that several features were deprecated in the link's example so I had to update several of them.
Please let us know by writing it down and your thoughts about what caused that bug. Try to explain as much as you can. It will be very appreciate it