10-28-2014, 04:23 AM | #1 |
Member
Posts: 11
Karma: 12698
Join Date: Oct 2014
Device: Kindle 3 (Keyboard)
|
Is there a way to merge PDF annotations with a Kindle PDR file?
Hello,
I previously asked for help with this issue in the Kindle forum but they were not able to solve it, so I'm hoping for better luck here. I have also changed PC but am still getting the same problem. I am a university student and I have to read a lot of PDFs. I read them on my Kindle 3 Keyboard and make notes and highlights on the device. I want to be able to transfer the annotated PDF file to my PC for writing essays. However, Kindle does not modify the PDF file and save the annotations directly on it, instead it creates a seperate PDR file which has the annotation information. I know that the Kindle creates a MyClippings.txt file which contains the annotations but I do not want to use this; I want to be able to display the complete annotated PDF. I have found a program online which seems to be able to merge the PDR annotation information with the PDF: https://code.google.com/p/kindle-annotations/wiki/Usage However, this is a command prompt tool and I have not be able to get it to work yet. Here is what I have tried so far: In the instructions on the website it says "You have to call java -jar kindle-annotator-0.3.jar <parameters> to run the annotator". It also says that the parameters are: -in/--input filename Specify an input file. -out/--output filename Specify an output file. I have downloaded the newest version of the program, 0.4.1. I already have java installed and I have saved all the files for the annotator program to a folder with the filepath C:\Users\Barnaby\K\. I have also saved the PDF and PDR files in the same folder, they are called something.pdr and something.pdf So, when I open command prompt, it is in filepath C:\Users\Barnaby then I typed cd K to change to C:\Users\Barnaby\K I then typed set CLASSPATH=%CLASSPATH%;C:\Users\Barnaby\K. Then to specify the location of my java.exe program I typed set PATH=%PATH%;C:\Program Files (x86)\Java\jre7\bin. Then to run the program I typed java C:\Users\Barnaby\K\kindle-annotator-0.4.1.jar -in C:\Users\Barnaby\K\something.pdr -out C:\Users\Barnaby\K\something.pdf . But I got the error message saying Could not load or find main class C:\Users\Barnaby\K\kindle-annotator-0.4.1.jar. So I changed the file location that command prompt is in by typing cd C:\Program Files (x86)\Java\jre7\bin. Finally I tried typing java C:\Users\Barnaby\K\kindle-annotator-0.4.1.jar -in C:\Users\Barnaby\K\something.pdr -out C:\Users\Barnaby\K\something.pdf but I got the error message again Last edited by Sinlight; 10-28-2014 at 04:25 AM. |
11-01-2014, 11:49 AM | #2 |
Wizard
Posts: 2,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Try "java -jar <jar-file>". It looks like you're missing the "-jar" part.
|
11-05-2014, 06:22 AM | #3 |
Member
Posts: 11
Karma: 12698
Join Date: Oct 2014
Device: Kindle 3 (Keyboard)
|
Thanks for the suggestion, I seem to be getting closer to the solution but this time I got a different error message saying 2014-11-05 11:18:19,078 ERROR [main] de.berber.kindle.annotator.PDFAnnotator: IO Error while writing result file C:\Users\Barnaby\K\something.pdf
|
11-05-2014, 11:59 AM | #4 |
Grand Sorcerer
Posts: 11,470
Karma: 13095790
Join Date: Aug 2007
Location: Grass Valley, CA
Device: EB 1150, EZ Reader, Literati, iPad 2 & Air 2, iPhone 7
|
Does the folder C:\Users\Barnaby\K exist? You might try just entering the output filename and place it in the folder you are in.
Dale |
11-07-2014, 04:27 PM | #5 |
Wizard
Posts: 2,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
From the homepage of the software, it looks like the --in and --out arguments are both PDF files. I guess it assumes that the input PDF and PDR files have the same name (except for the suffix). So, give the name of your original PDF file as the argument to --in, and give a new PDF filename as the argument to --out.
|
11-08-2014, 01:36 PM | #6 |
Member
Posts: 11
Karma: 12698
Join Date: Oct 2014
Device: Kindle 3 (Keyboard)
|
rkomar, my Kindle saves all the annotation information in the PDR file and the PDF file is left unaltered, so how can I specify for the --in argument that information in the PDR file should be combined with the PDF file?
|
11-08-2014, 04:26 PM | #7 |
Wizard
Posts: 2,985
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
I haven't tested it, but I assume that if you specify the original PDF file name, it will also look for the PDR file in the same place with just the suffix changed. To create a new PDF file, the program needs both the original PDF and the PDR file. It can't do it just with the PDR file alone.
|
11-09-2014, 03:44 AM | #8 |
Member
Posts: 11
Karma: 12698
Join Date: Oct 2014
Device: Kindle 3 (Keyboard)
|
Briliant, it worked, thank you very much for you help! The annotations don't all match up to the ones I created on my Kindle but I think that is a problem with the program itself, the instructions you gave me definitely create an annotated pdf. Cheers!
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible to store Kindle annotations IN ebook file | turelur | Devices | 10 | 11-05-2014 12:09 PM |
Merging PDF annotations with Kindle PDR file | Sinlight | Amazon Kindle | 11 | 10-24-2014 03:40 PM |
Kindle touch: How to save pdf annotations in the pdf? | cfbiehl | Devices | 0 | 06-02-2012 12:27 PM |
Pdf annotations and Kindle annotations | BranMakMorn | Calibre | 0 | 06-25-2011 02:42 PM |
how to merge annotations | sputnik | iRex | 3 | 06-05-2008 05:49 PM |