The goal here was to create a simple interface to edit documents and create html. We settle on google docs and google drive.
This started as an attempt to update this pdf, to extract the content and create a nice html page for it.
Largely inspired by this gist, and could use this library.
pdftotext -raw CCR_If_An_Agent_Knocks.pdf output.txt
Some useful regex's used to clean it up:
- regex
-\n
to to fix hyphenation ^\d*$
to remove lines that are only numbersIf An Agent Knocks - .*$
to remove subtitles
Also useful: https://regex101.com/