Quote:
Originally Posted by RS1
After making highlights and adding notes to a kindle book on a kindle paperwhite, I would like to export it to a PDF so that I can edit it further on my Macbook using the default PDF editor - Mac Preview.
Is there a way of e.g. merging highlights with the book in e.g. Calibre and then exporting it to a reader friendly format in PDF? It sounds like it should be possible, but I haven't been able to find anything at all..
Thanks
RS
|
Quote:
Originally Posted by jhowell
|
I think that the azw3r highlight and note extraction scripts have evolved enough to be generally useful to be used to obtain notes and highlights embedded in the text of the book in PDF.
Code:
kindleunpack -r book.azw3
makes a hierarchy subdirectories with a bunch of files, including book.rawml
Code:
perl azw3r.pl -i book.awz3r | sort -n > book .pnotes
perl notes_insert.pl -n -tag="HL" book.pnotes -r book.rawml -o book-notes-rawml.html
makes a rawml file with embedded highlights and notes. If some of the highlights don't have associated notes, it is a bit more complicated.
Code:
ebook-convert book-notes-rawml.html book-notes.pdf
makes the PDF with highlights and notes. There is a kindleunpack pluging for Calibre and the conversion to PDF can be done with the Calibre GUI.