-
Notifications
You must be signed in to change notification settings - Fork 148
Faq
The easiest solution is to store your work directory encrypted on a USB key or hard drive (beware, it may be stolen).
The most convenient solution is usually to synchronize your documents across many machines. Tools like ownCloud Desktop Client or SparkleShare can do it (there are many others). Just tell them to sync the work directory of Paperwork (by default ~/papers
, can be changed in the settings).
When Paperwork is started, the first thing it does is checking if the documents have changed. If one of them do, it will update its index accordingly.
However, please note that Paperwork doesn't encrypt documents. So it is not advised to store your document in "the cloud" (Dropbox, Google Drive, etc). Doing so would make private companies able to access all the details of your private life far too easily.
GNU/Linux distributions include many tools to encrypt whole directories.
With Paperwork, there are 2 directories that should be encrypted to protect your privacy:
- Your work directory (by default
~/papers
, can be changed in the settings) - The cache directory (
~/.local/share/paperwork
, cannot be changed) (it contains index files from which the content of your documents could be partially recovered)
On GNU/Linux Debian and Ubuntu, you can easily create a directory Private
in your home directory. This directory will be encrypted using the password you use to connect when you start your computer. Just type ecryptfs-setup-private
in a terminal to create it. You can then put the work directory of Paperwork in it.
Once the directory has been created, you can also store Paperwork cache in it:
$ mv ~/.local/share/paperwork ~/Private/paperwork_cache
$ ln -s ~/Private/paperwork_cache ~/.local/share/paperwork
Encfs can also be used to create encrypted directories easily. However, Encfs seems to have some security weaknesses.
- Create a directory
- Put all your PDFs in it
- In paperwork, in the sub-menu next to the "Print" button -> "Import file(s)"
- Select the directory containing all the PDFs
By default:
- Configuration : ~/.config/paperwork.conf
- Index : ~/.local/share/paperwork
- Documents : ~/papers
The index is always updated according based on the documents. When Paperwork starts, the modification time of each file is used to detecte changes on the documents.
See the page describing the work directory organisation
If you installed Paperwork manually:
sudo pip uninstall paperwork
sudo pip uninstall pyocr
sudo pip uninstall pyinsane
(it's python-pip on some systems)
If you installed many versions of these packages, you may have to run these commands many times.
Note that there are other dependencies installed with Paperwork. However, python-pip can't detect and remove automatically unused dependencies. This is why you should use your distribution package(s) if possible.
When you click "Open document directory", Paperwork uses your default file browser (the one called by 'xdg-open'). To change it, as normal user:
- Nautilus (Gnome's file browser):
xdg-mime default nautilus.desktop inode/directory
- Thunar (XFCE's file browser):
xdg-mime default Thunar.desktop inode/directory
Statistics are fun. Unfortunately, they are not really helpful here, so there is nothing in the GUI to get some. However, there is a script:
$ git clone https://github.com/jflesch/paperwork.git
$ cd paperwork
$ scripts/stats.py
(...)
Statistics
==========
Total number of documents: 989
Total number of pages: 1846
Total number of words: 382490
Total words len: 2751489
Total number of unique words: 54399
===
Maximum number of pages in one document: 75
Maximum word length: 179
Average word length: 7.193623
Average number of words per page: 207.199350
Average number of words per document: 386.744186
Average number of pages per document: 1.866532
Average number of unique words per document: 202.777553
Average accuracy of label prediction (global): 98%
Average accuracy of label prediction (positive): 88%
Average accuracy of label prediction (negative): 99%
- Paperwork is designed to be as simple to install and use as possible. Web servers and web applications are not simple to install (yeah, I know, the dependency nightmare of Paperwork doesn't make it easy either as a Gtk GUI ... but package managers are supposed to take care of that).
- I (jflesch) have no use for a web frontend (I sync my files with SparkleShare, and I can access them everywhere I need them). I don't develop features I don't use. Doing otherwise would be the best way to get regressions all the time.
- With a web application, scanning is not an easy problem. You could use any scanner connected on the server side .. but it wouldn't make sense. You need to scan on the client side, and afaik, it would require a browser plugin.
Feel free to make one if you want. We will gladly help you with any questions about Paperwork backend you might have.