You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cli/config/index.md
+11-33Lines changed: 11 additions & 33 deletions
Original file line number
Diff line number
Diff line change
@@ -6,8 +6,7 @@ title: veraPDF CLI Configuration
6
6
Introduction
7
7
------------
8
8
9
-
Below the veraPDF installation directory there is a sub-directory called
10
-
`config`. This contains the XML configuration files for the veraPDF software
9
+
There is a sub-directory called `config` below the veraPDF installation directory or in folder `verapdf` in the user directory. It contains the XML configuration files for the veraPDF software
11
10
components. To see the contents of this directory from a terminal session
12
11
in the installation root directory type <kbd>ls config/</kbd> on Mac or Linux
13
12
machines or <kbd>dir config</kbd> on Windows machines. On my Windows test VM
@@ -35,35 +34,7 @@ installation. The software generates default configuration files on start-up if
35
34
none exist. Try running <kbd>verapdf --version</kbd> which should generate the
36
35
missing files.
37
36
38
-
### Running veraPDF without installation gives no configuration files
39
-
All of the above assumes that you've installed veraPDF with the downloaded
40
-
installer. If you're running a version of the application you've built
41
-
yourself and not installed you won't have an application home directory. The
42
-
following only applies if you're running a jar directly from the command line,
43
-
that is something like : <kbd>java -jar target/{{ site.verapdf_version_number }}.jar</kbd>, from the [`veraPDF-apps/gui` module](https://github.com/veraPDF/veraPDF-apps/tree/integration/gui).
44
-
The problem is that the installer adds a couple of invocation scripts that set
45
-
up the application home directory. The solution is to choose a config directory
46
-
and pass it to the application when you call it. Here's an example:
47
-
48
-
1. Select a folder you want to use as home and create it, a good suggestion is `~/.verapdf` beneath your home directory, in my case `/home/cfw/.verapdf`.
49
-
2. Execute the following command: <kbd>java -Dapp.home="/home/cfw/.verapdf" -jar gui-{{ site.verapdf_version_number }}-SNAPSHOT.jar --version</kbd>
50
-
3. <kbd>ls ~/.verapdf/config</kbd>
51
-
52
-
and you should see
53
-
54
-
```bash
55
-
-rw-rw-r-- 1 cfw cfw 375 Jan 28 20:36 app.xml
56
-
-rw-rw-r-- 1 cfw cfw 186 Jan 28 20:36 features.xml
57
-
-rw-rw-r-- 1 cfw cfw 109 Jan 28 20:36 fixer.xml
58
-
-rw-rw-r-- 1 cfw cfw 0 Jan 28 20:36 plugins.xml
59
-
-rw-rw-r-- 1 cfw cfw 131 Jan 28 20:36 validator.xml
60
-
```
61
-
62
-
Now proceed to use the config files in this directory, which will work as long as you use `java -Dapp.home="/home/cfw/.verapdf" -jar gui-{{ site.verapdf_version_number }}-SNAPSHOT.jar` as oppose to `java -jar gui-{{ site.verapdf_version_number }}.jar` when you start the app. This form of invocation supports all command line options, e.g.
If you are running a version of the application you have built yourself and not installed, config folder would be located in folder `verapdf` in the user directory.
67
38
68
39
### veraPDF config files
69
40
There are four config files available:
@@ -104,7 +75,7 @@ The `appConfig` element has a set of attributes can be used as follows:
104
75
-`RAW` : the raw XML data used by the veraPDF APIs, it's not quite as readable as the MRR format but can be de-serialised by the veraPDF API for further processing.
105
76
-`HTML` : a formatted HTML report intended for human consumption.
106
77
-`TEXT` : very brief single line text output.
107
-
-`isVerbose` can be set to `false` for brief output which is the default, or `true` for verbose output.
78
+
-`isVerbose` can be set to `false` for brief output which is the default, or `true` for verbose output in text report.
108
79
109
80
#### <aname="fixerFolder"></a> fixerFolder
110
81
The `fixerFolder` element sets a default folder where the repaired files generated by the metadata fixer are written.
@@ -122,7 +93,7 @@ The default validation config file contains:
### <aname="validatorConfig"></a> The validatorConfig element
@@ -131,6 +102,13 @@ The `validatorConfig` element defines the following attributes:
131
102
-`flavour` the default flavour to use when none is specified by the user, can be PDF_A_1A, PDF_A_1B, PDF_A_2A, PDF_A_2B, PDF_A_2U, PDF_A_3A, PDF_A_3B, PDF_A_3U, PDF_A_4, PDF_A_4E, PDF_A_4F, PDF_UA1, or NO_FLAVOUR (for automatic detection).
132
103
-`recordPasses` set `true` to report passed validation checks, `false` to report failures only.
133
104
-`maxFails` specifies the maximum number of failed checks before validation is terminated, the default value of -1 means report all failures.
105
+
-`maxNumberOfDisplayedFailedChecks` specifies how many failed tests are reported per validation rule.
106
+
-`debug` set `true` to output all processed file names
107
+
-`showErrorMessages` set `true` to add detailed error message for each check (xml, json, raw or html)
108
+
-`isLogsEnabled` set `true` to add logs to report (xml, json or html)
109
+
-`loggingLevel` determine the log level, can be "OFF", "SEVERE", "WARNING", "CONFIG", "ALL"
110
+
-`showProgress` set `true` to show the current status of the validation job (only in cli)
111
+
-`defaultFlavour` the default flavour to use when automatic detection did not work
Copy file name to clipboardExpand all lines: cli/fixing/index.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ layout: page
3
3
title: veraPDF CLI Metadata Fixing
4
4
---
5
5
6
-
veraPDF can optionally fix issues related to document metadata provided that there are no other PDF/A or PDF/UA issues detected. This includes:
6
+
veraPDF (Greenfield version only) can optionally fix issues related to document metadata provided that there are no other PDF/A or PDF/UA issues detected. This includes:
7
7
- adding document-level XMP metadata if it is missing
8
8
- adding PDF/A or PDF/UA identification to the already existing XMP metadata, if there are no other PDF/A (or PDF/UA) issues detected and the document will become PDF/A (or PDF/UA) compliant after this fix
9
9
- removing PDF/A or PDF/UA identification from the XMP metadata if it is present, but the document does not conform to the declared PDF/A (or PDF/UA) flavour
@@ -201,3 +201,17 @@ option. While convenient this is not always desirable. You can disable
201
201
validation by passing the `-o` or `--off` option. This is usually done during
202
202
[feature-extraction](../feature-extraction), for example
203
203
<kbd>verapdf --off --extract somefile.pdf</kbd>.
204
+
205
+
<aname="extension"></a>Non pdf extension
206
+
------------------------------------------------
207
+
You can validate pdf files with non-pdf extension by passing the `--nonpdfext` option. For example
208
+
<kbd>verapdf somefile --nonpdfext</kbd>.
209
+
210
+
<aname="encrypted-pdf"></a>Encrypted pdf
211
+
------------------------------------------------
212
+
By default, verapdf is trying to decrypt encrypted PDF file using empty user password. You can validate encrypted pdf files with non-empty password by passing the `--password` option.
213
+
For example <kbd>verapdf --password "12345" encrypted.pdf</kbd>.
214
+
215
+
<aname="wiki-path"></a>Profiles wiki
216
+
------------------------------------------------
217
+
HTML report contains reference links to veraPDF validation rule wiki https://github.com/veraPDF/veraPDF-validation-profiles/wiki/. You are unlikely going to change this unless you intend to host your own local version of the veraPDF validation rule wiki by using `--wikiPath` option.
Copy file name to clipboardExpand all lines: gui/index.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ This Quick Start Guide explains some basic concepts relevant to the veraPDF Conf
14
14
The veraPDF GUI provides the features of veraPDF Java Library in a desktop windows GUI. Users can configure their own validation and policy checking jobs by selecting:
15
15
- which combination of tasks to perform;
16
16
- PDF Documents to analyse;
17
-
- the PDF/A part and conformance level to test for; and
17
+
- the PDF/A or PDF/UA part and conformance level to test for; and
18
18
- various task specific settings.
19
19
20
20
The software carries out the configured task and reports the results in both XML and HTML formats. The XML report is intended for consumption by automated processes while the HTML report is designed for human readability.
| Auto-detection| The veraPDF software will detect the PDF/A or PDF/UA flavour when parsing the file and use the appropriate profile. |
46
+
| Auto-detect| The veraPDF software will detect the PDF/A or PDF/UA flavour when parsing the file and use the appropriate profile. |
47
47
| PDF/A-1a | Use the PDF/A-1a validation profile, i.e. assume that the file is a PDF/A-1a. |
48
48
| PDF/A-1b | Use the PDF/A-1b validation profile, i.e. assume that the file is a PDF/A-1b. |
49
49
| PDF/A-2a | Use the PDF/A-2a validation profile, i.e. assume that the file is a PDF/A-2a. |
@@ -76,7 +76,7 @@ The available options are:
76
76
77
77
If Policy is selected the `Choose Policy` button is activated, the user can use this to load a [policy schematron file](/policy) or user can drag&drop policy file into `Policy file not chosen` area.
78
78
79
-
The Fix Metadata checkbox determines whether the software will attempt to amend the PDF document metadata to ensure it is compliant with the PDF/A or PDF/UA specification.
79
+
The Fix Metadata checkbox (enabled only in the Greenfield version) determines whether the software will attempt to amend the PDF document metadata to ensure it is compliant with the PDF/A or PDF/UA specification.
80
80
81
81
### Execute button
82
82
This button is only enabled when a PDF file has been chosen. If you've chosen to use a custom validation profile from the dropdown then you must also select an external profile file. Once enabled and pressed the PDF file will be processed according to the selected options.
0 commit comments