forked from stweiss/FileBasedMiniDMS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.php.template
81 lines (66 loc) · 3.19 KB
/
config.php.template
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/* ------------------------------------------------------ */
/* ----------------- Configuration Area ----------------- */
/* ------------------------------------------------------ */
$doOCR = true;
$doRenameAfterOCR = true;
$doTagging = true;
// files which match this rule are considered to be OCR'd
$matchWithoutOCR = "Scan*"; // without file extension .pdf
// files which match this regex are considered for automatic rename
$OCRPrefix = "OCR_"; // without file extension .pdf
// ocrmypdf options
// -s don't OCR pages with text again
// -r automatically rotate pages based on detected text orientation
// -l language (deu,enu,...)
// example: docker run --rm -u 1026 -v "/volume1/docker/ocr:/home/docker" jbarlow83/ocrmypdf -l deu Scan.pdf Out.pdf
$ocropt = "-sr -l deu";
$dockercontainer = "jbarlow83/ocrmypdf";
// here are freshly scanned documents. to be OCR'd and renamed.
$inboxfolder = "/volume1/homes/stefan/Dokumente/Scans/_inbox";
// Set $archivefolder to the folder which contains your documents for tagging.
// Without trailing (back)slash!
$archivefolder = "/volume1/homes/stefan/Dokumente/Scans";
// recycle-bin
$recyclebin = "/volume1/homes/stefan/Dokumente/Scans/#recycle";
// In $tagsfolder your tags will be created. Please use a fresh folder.
// Everything here is subject to be deleted! Without trailing (back)slash!
$tagsfolder = "/volume1/homes/stefan/Dokumente/Scans/tags";
// Filenames are prepended with a date in format "Year-Month-Day". You can adjust or
// clear the seperator here to suit your needs.
$dateseperator = "-";
// set filetime to detected date (first non-future date in pdf, first page only. otherwise date of scan.)
$setfiletime = true;
// $logfile is the path to a logfile OR "syslog" OR "stdout"
//$logfile = dirname(__FILE__) . "/FileBasedMiniDMS.log";
$logfile = "/volume1/homes/stefan/Dokumente/Scans/_inbox/FileBasedMiniDMS.log";
// $loglevel can be 0 (none), 3 (error), 6 (info), 7 (all)
$loglevel = 6;
// $timezone. just for logging purposes.
$timezone = 'Europe/Berlin';
// first match is used
$renamerules = array(
// "rule" => "name"
"Meldebescheinigung&Sozialversicherung" => "Meldebescheinigung Sozialversicherung",
"Grundsteuerbescheid" => "Grundsteuerbescheid",
"Finanzamt" => "Finanzamt",
"LBS&Bauspar" => "LBS Bausparen",
"Deka&Jahresdepotauszug" => "Deka Jahresdepotauszug",
"Deka" => "Deka",
"Sparkasse&Dividende&Depot" => "Sparkasse Aktiendepot Dividende",
"Apotheke" => "Apotheke",
"Erdgas&Jahresrechnung" => "Erdgas Jahresrechnung",
"Zahnarzt" => "Zahnarzt",
"PVS BW" => "Arztrechnung PVS",
"Arzt,Ärztin" => "Arzt",
"Heilpraktiker" => "Heilpraktiker",
"Vodafone GmbH" => "Vodafone",
);
// all are applied and concaternated
$tagrules = array(
// "tag" => "rule"
"#stefan" => "Stefan&Weiss",
"#rechnung" => "Rechnung",
"#beitragsanpassung" => "Beitragsanpassung",
);
?>