View Single Post
Old 08-17-2019, 06:57 PM   #8
j.p.s
Grand Sorcerer
j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.j.p.s ought to be getting tired of karma fortunes by now.
 
Posts: 5,806
Karma: 103362673
Join Date: Apr 2011
Device: pb360
Quote:
Originally Posted by RS1 View Post
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 View Post
There is a start of something like that here: azw3r highlight and note extraction info
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.
j.p.s is offline   Reply With Quote