Open arminbw opened 5 years ago
I had to add print(fn.encode("utf-8"))
since it was even failing on the print command.
Then I had to go change the title of the article in Mendeley and close Mendeley. Then delete the file from the Downloaded folder. Then start Mendeley again and sync. It would then download the file and rename it without the offending characters.
After I decrypted my database I used menextract2pdf to get my annotations into the pdfs. I encountered a couple of errors:
Could not find pdffile /Users/armin/Desktop/ProjekteOnHold/ceat/mendeley_archive/Mach - 1886 - Beiträge zur Analyse der Empfindungen.pdf
This is an Umlaut encoding issue. Adding
.decode("utf8")
on line 28 solved this problem for me.zlib.error: Error -3 while decompressing data: incorrect header check
andValueError: invalid literal for int() with base 10: 'dobj'
These were errors related to specific (kind of corrupted) pdfs. I added
print(fn)
toprocesspdf(fn, fn_out, annotations)
so I could identify and manually remove the culprits.Thank you for writing Menextract2pdf!