Skip to content

Builds a complete PyCharm help file in PDF format including a complete multi-level table of contents

License

Notifications You must be signed in to change notification settings

StephenGenusa/pycharmpdfhelp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyCharm Web Help to PDF

This program determines the latest release version of PyCharm help and builds a complete help file in PDF format including a full multi-level table of contents that mirrors the original web content.

PyCharm PDF Documentation with ToC

Project Notes

At one time JetBrains was supplying a PDF, but they moved to a plugin that downloads the web content which then gets served up by the internal web server running out of PyCharm.

PDF documentation is my preference:

  • One file portability
  • Naturally easy to take offline
  • Universal reader access availability
  • Easily indexed and searched, and
  • Easy to put on an e-Reader or mobile device.

I think there are only two Windows path dependencies need to be changed to use on a non-Windows O/S:

  • Download path [see __init__()]
  • Chrome driver path [see setup_selenium_chrome()]

Other notes:

  • You can adjust the scaling factor [see "scaling" in setup_selenium_chrome()]
  • The program is written so that if you start, stop and restart during the download process, it will pick up generation where it was stopped
  • There's a slight delay to give the browser time to properly render the page and then generate the PDF.
  • There's a function that verifies the PDF file sizes "look" correct. If any are too small, those pages are re-requested and generated again before master PDF generation.

TODO

  • Fixup internal links to point to PDF pages instead of the web site. I may or may not get around to this. My main needs and purpose are met by the current program. If you are interested in resolving this a pull request would be most welcome.

About

Builds a complete PyCharm help file in PDF format including a complete multi-level table of contents

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages