您可以使用veraPDF:
- 开源(veraPDF 在 GNU 通用公共许可证 v3 或更高版本 (GPLv3+) 和 Mozilla 公共许可证 v2 或更高版本 (MPLv2+) 下获得双重许可。)
- Linux、Mac OS X、微软视窗
- 用Java编写
- CLI 或图形用户界面
Usage: veraPDF [options] FILES
Options:
-x, --extract
Extracts and reports PDF features.
Default: false
--fixmetadata
Performs metadata fixes.
Default: false
-f, --flavour
Chooses built-in Validation Profile flavour, e.g. '1b'. Alternatively,
supply '0' or no argument for automatic flavour detection based on a file
's
metadata.
Default: 0
Possible Values: [0, 1a, 1b, 2a, 2b, 2u, 3a, 3b, 3u]
--format
Chooses output format.
Default: mrr
Possible Values: [xml, mrr, text]
-h, --help
Shows this message and exits.
Default: false
-l, --list
Lists built-in Validation Profiles.
Default: false
--maxfailures
Sets maximum amount of failed checks.
Default: -1
--maxfailuresdisplayed
Sets maximum amount of failed checks displayed for each rule.
Default: 100
-o, --off
Turns off PDF/A validation
Default: false
--policyfile
Select a policy schematron or XSL file.
--prefix
Sets file name prefix for any fixed files.
Default: veraFixMd_
-p, --profile
Loads a Validation Profile from given path and exits if loading fails.
This overrides any choice or default implied by the -f / --flavour option
.
-r, --recurse
Recurses through directories. Only files with .pdf extensions are
processed.
Default: false
--savefolder
Sets output directory for any fixed files.
Default: <empty string>
--success, --passed
Logs successful validation checks.
Default: false
-v, --verbose
Adds failed test information to text output.
Default: false
--version
Displays veraPDF version information.
Default: false
veraPDF is processing STDIN and is expecting an EOF marker.
If this isn't your intention you can terminate by typing an EOF equivalent:
- Linux or Mac users should type CTRL-D
- Windows users should type CTRL-Z