Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fd0/nepomuk
https://github.com/fd0/nepomuk
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/fd0/nepomuk
- Owner: fd0
- Created: 2023-05-01T14:15:47.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-23T17:04:22.000Z (9 months ago)
- Last Synced: 2024-10-14T21:05:26.245Z (3 months ago)
- Language: Go
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Nepomuk PDF Archive
This program implements an archive for scanned PDF documents. Each PDF file has
an auto-detected correspondent. For each correspondent a sub directory is
created and the PDF files for that correspondent are saved in the sub directory.Within the subdir `.nepomuk`, additional files and directories are stored:
* `incoming/` place new files here manually
* `processed/` holds files optimized and OCRed before sorting
* `db.json` contains data about the individual filesFile names within `archive/Foo` (for correspondent called `Foo`) consist of the
date (`YYYY-MM-DD`) followed by the title, with the extension `.pdf`, for
example `2020-11-32 Title of the Document.pdf`. Internally, the archive system
identifies files based on the first four bytes of the SHA256 hash of its
contents. This ID is used to look up the file in the `db.json` file, which
contains additional metadata.# FTP Server
For testing the FTP server, the scripts named `upload-*.lftp` can be used. The
scripts as well as some sample PDF files can be found in the `testdata/`
directory, run `lftp -f testdata/upload-duplex.lftp`.If two files with filenames starting with `duplex-odd` followed by
`duplex-even` are uploaded, the archive will join them. This can be used to
easily scan duplex documents with a simplex only scanner (e.g. with document
feeder) by first scanning the odd pages, turning the whole paper stack around
and scanning the even pages backwards. This means the even pages are in reverse
order. The script `upload-duplex.lftp` tests this.PDF files with the prefix `Receipt` will be split into several documents with
exactly one page per document. This is used to scan a stack of single page
documents in one run.