Giter VIP home page Giter VIP logo

menextract2pdf's Introduction

Menextract2pdf

Extract Mendeley annotations to PDF Files

Menextract2pdf extracts highlights and notes from the Mendeley database and adds them directly to corresponding PDF files, which can then be read by most PDF readers.

Why?

PDF highlights and notes in Mendeley are stored in the Mendeley database and cannot be read by other programs. While it is possible to export the annotations through Mendeley, the results are questionable and often look bad. Menextract2pdf provides a bulk export functionality.

Dependencies

The latest version of Menextract2pdf requires Python3. See requirements.txt for the required packages.

It further incorporates pdfannotation.py from the PRSAnnots project, with small adjustments.

Usage

python menextract2pdf.py mendeley.sqlite /destination_directory/

where mendeley.sqlite is the mendeley database and /Destination/Dir/ is the directory where to store the annotated PDF files. By default menextract2pdf will not overwrite existing PDF files in the destination directory. To allow overwriting use the --overwrite flag.

The code is tested on Linux, but should run on Windows or Mac as well.

Known issues

  • "zlib error, skipping file": This is due to "corrupted" PDF files. A workaround would be to use ghostscript to repair the file and try again: gs -o repaired.pdf -dQUIET -sDEVICE=pdfwrite damaged.pdf

  • "Empty URL found for document": Usually means that the specified document has not been downloaded to your local machine. Open the document in Mendeley to force the download and try again.

Versions

  • 0.1 first release

Licence

The script is distributed under the GPLv3. The pdfannotations.py file is LGPLv3.

Related projects

menextract2pdf's People

Contributors

cycomanic avatar kgoutsos avatar bwiernik avatar diegodlh avatar heussd avatar grantdobbe avatar jensb89 avatar philmaweb avatar stevelaskaridis avatar

Forkers

gokhansolak

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.