Skip to content

Commit af49b16

Browse files
committed
REL 1.24 - Update documentation
1 parent b7db234 commit af49b16

File tree

6 files changed

+37
-45
lines changed

6 files changed

+37
-45
lines changed

cli/config/index.md

Lines changed: 11 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ title: veraPDF CLI Configuration
66
Introduction
77
------------
88

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
1110
components. To see the contents of this directory from a terminal session
1211
in the installation root directory type <kbd>ls config/</kbd> on Mac or Linux
1312
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
3534
none exist. Try running <kbd>verapdf --version</kbd> which should generate the
3635
missing files.
3736

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.
63-
64-
- <kbd>java -Dapp.home="/home/cfw/.verapdf" -jar gui-{{ site.verapdf_version_number }}-SNAPSHOT.jar -f 1b somefile.pdf</kbd>
65-
- <kbd>java -Dapp.home="/home/cfw/.verapdf" -jar gui-{{ site.verapdf_version_number }}-SNAPSHOT.jar --extract somefile.pdf</kbd>
66-
- <kbd>java -Dapp.home="/home/cfw/.verapdf" -jar gui-{{ site.verapdf_version_number }}-SNAPSHOT.jar --policyfile my-policy.sch somefile.pdf</kbd>
37+
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.
6738

6839
### veraPDF config files
6940
There are four config files available:
@@ -104,7 +75,7 @@ The `appConfig` element has a set of attributes can be used as follows:
10475
- `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.
10576
- `HTML` : a formatted HTML report intended for human consumption.
10677
- `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.
10879

10980
#### <a name="fixerFolder"></a> fixerFolder
11081
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:
12293

12394
```xml
12495
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
125-
<validatorConfig flavour="NO_FLAVOUR" recordPasses="false" maxFails="-1"/>
96+
<validatorConfig flavour="NO_FLAVOUR" defaultFlavour="PDFA_1_B" recordPasses="false" maxFails="-1" debug="false" showErrorMessages="true" isLogsEnabled="true" loggingLevel="WARNING" maxNumberOfDisplayedFailedChecks="100" showProgress="false"/>
12697
```
12798

12899
### <a name="validatorConfig"></a> The validatorConfig element
@@ -131,6 +102,13 @@ The `validatorConfig` element defines the following attributes:
131102
- `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).
132103
- `recordPasses` set `true` to report passed validation checks, `false` to report failures only.
133104
- `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
134112

135113
<a name="features.xml"></a>Configuring feature extraction
136114
----------------------------------------------------

cli/fixing/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ layout: page
33
title: veraPDF CLI Metadata Fixing
44
---
55

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:
77
- adding document-level XMP metadata if it is missing
88
- 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
99
- 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

cli/validation/index.md

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ veraPDF supported PDF/A and PDF/UA profiles:
3131
You can specify a built in profile for validation using either the `-f` or
3232
`--flavour` options followed by the 2 character profile code.
3333

34-
### <a name="choose-profile"></a>Choosing a PDF/A profile
34+
### <a name="choose-profile"></a>Choosing a profile
3535
To validate a single PDF/A file from the corpus using the PDF/A-1B profile type
3636

3737
<kbd>verapdf -f 1b corpus/veraPDF-corpus-staging/PDF_A-1b/6.6\ Actions/6.6.1\ General/veraPDF\ test\ suite\ 6-6-1-t02-pass-a.pdf</kbd>
@@ -50,8 +50,8 @@ You should see something very similar to the following output:
5050
<job>
5151
<item size="10230">
5252
<name>/home/cfw/verapdf/dev/corpus/veraPDF-corpus-staging/PDF_A-1b/6.6 Actions/6.6.1 General/veraPDF test suite 6-6-1-t02-pass-a.pdf</name>
53-
</item>
54-
<validationReport profileName="PDF/A-1B validation profile" statement="PDF file is compliant with Validation Profile requirements." isCompliant="true">
53+
</item>
54+
<validationReport profileName="PDF/A-1B validation profile" statement="PDF file is compliant with Validation Profile requirements." isCompliant="true">
5555
<details passedRules="102" failedRules="0" passedChecks="504" failedChecks="0"></details>
5656
</validationReport>
5757
<duration start="1485134290404" finish="1485134290797">00:00:00:393</duration>
@@ -201,3 +201,17 @@ option. While convenient this is not always desirable. You can disable
201201
validation by passing the `-o` or `--off` option. This is usually done during
202202
[feature-extraction](../feature-extraction), for example
203203
<kbd>verapdf --off --extract somefile.pdf</kbd>.
204+
205+
<a name="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+
<a name="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+
<a name="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.

develop/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ There are two implementations of the veraPDF software library, one that uses a
3030
fork of the [Apache PDFBox project](https://github.com/veraPDF/veraPDF-pdfbox)
3131
as a PDF parser and validation model.
3232

33-
#### Greenfield vs PDFbox
33+
#### Greenfield vs PDFBox
3434

3535
Since releasing the PDFBox implementation
3636
the veraPDF consortium have developed their own "Greenfield" PDF parsing and validation model
@@ -67,7 +67,7 @@ Both implementations above depend on javax. If your project uses jakarta, you sh
6767
```xml
6868
<dependency>
6969
<groupId>org.verapdf</groupId>
70-
<artifactId>validation-model-arlington</artifactId>
70+
<artifactId>validation-model-jakarta</artifactId>
7171
<version>1.24.1</version>
7272
</dependency>
7373
```
@@ -77,7 +77,7 @@ for Greenfield implementation and
7777
```xml
7878
<dependency>
7979
<groupId>org.verapdf</groupId>
80-
<artifactId>pdfbox-validation-model-arlington</artifactId>
80+
<artifactId>pdfbox-validation-model-jakarta</artifactId>
8181
<version>1.24.1</version>
8282
</dependency>
8383
```
@@ -149,7 +149,7 @@ PdfBoxFoundryProvider.initialise();
149149

150150
### Validating a PDF File
151151
You only need to initialise once, whichever version you're using, now the code to
152-
validated a file called `mydoc.pdf` against the PDF/A 1b specification is:
152+
validate a file called `mydoc.pdf` against the PDF/A 1b specification is:
153153

154154
```java
155155
PDFAFlavour flavour = PDFAFlavour.fromString("1b");

gui/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ This Quick Start Guide explains some basic concepts relevant to the veraPDF Conf
1414
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:
1515
- which combination of tasks to perform;
1616
- 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
1818
- various task specific settings.
1919

2020
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.
@@ -43,7 +43,7 @@ The options are as follows:
4343

4444
| Option | Description |
4545
|----------------|-----------------------------------------------------------------------------------------------------------|
46-
| 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. |
4747
| PDF/A-1a | Use the PDF/A-1a validation profile, i.e. assume that the file is a PDF/A-1a. |
4848
| PDF/A-1b | Use the PDF/A-1b validation profile, i.e. assume that the file is a PDF/A-1b. |
4949
| 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:
7676

7777
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.
7878

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.
8080

8181
### Execute button
8282
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.

policy/info-dict/report.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,4 +117,4 @@
117117
<repairReports failedJobs="0">4</repairReports>
118118
<duration start="1485516602855" finish="1485516603155">00:00:00:300</duration>
119119
</batchSummary>
120-
</report>
120+
</report>

0 commit comments

Comments
 (0)