pdf highligh
ts swiss knife
ghligh uses JSON as the format to store highlights from PDF files. It uniquely identifies each PDF by calculating its hash, ensuring it can accurately track and import highlights associated with the correct file.
install poppler-glib and cairo (for Debian/Ubuntu):
apt-get install libpoppler-glib-dev libcairo2-dev
ghligh
consist of subcommands:
import
import document highlights stored in JSON files into pdf documentsexport
export documents' highlights inside a JSONcat
print documents' highlightsls
given a set of files/directories show the pdf that contains highlights
ghligh export --from file1.pdf --from file2.pdf --to highlighs.json
ghligh import --from highlights.json --to file1.pdf --to file2.pdf
ghligh cat file1.pdf file2.pdf
ghligh ls
ghligh ls ./economy-books
- create a struct of flags to be set for export / import [ ]
- instead of importedAnnotMaps use
syncedAM
struct [ ] - single entry for each document hash when exporting [ ]