11# Validate PDF Accessibility with PDFix
22
3- A Java CLI application to validate and report accessibility issues in PDF documents.
3+ A Java CLI application to validate and report accessibility issues in PDF documents. We use free version of PDFix SDK for PDF reading operations.
4+
5+ ## Table of Contents
6+ - [ Validate PDF Accessibility with PDFix] ( #validate-pdf-accessibility-with-pdfix )
7+ - [ Table of Contents] ( #table-of-contents )
8+ - [ Command-Line options] ( #command-line-options )
9+ - [ Run the CLI Commands] ( #run-the-cli-commands )
10+ - [ Report Duplicate MCID in Tagged PDF] ( #report-duplicate-mcid-in-tagged-pdf )
11+ - [ Build Instructions] ( #build-instructions )
12+ - [ 1. Download and Install PDFix SDK for Java] ( #1-download-and-install-pdfix-sdk-for-java )
13+ - [ 2. Compile, Test and Package] ( #2-compile-test-and-package )
14+ - [ Have a question? Need help?] ( #have-a-question-need-help )
15+
416
517## Command-Line options
618```
@@ -18,7 +30,7 @@ Arguments:
1830## Run the CLI Commands
1931
2032### Report Duplicate MCID in Tagged PDF
21- ```
33+ ``` bash
2234java -jar target/net.pdfix.validate-pdf-1.0.0 duplicate-mcid -i " <path to pdf>"
2335```
2436** Output**
@@ -40,15 +52,15 @@ Total 1 duplicate MCIDs found
4052## Build Instructions
4153
4254### 1. Download and Install PDFix SDK for Java
43- ```
55+ ``` bash
4456mkdir -p lib
4557curl -L https://github.com/pdfix/pdfix_sdk_builds/releases/download/v8.4.3/java8-net.pdfix.pdfixlib-8.4.3.jar.zip -o lib/pdfixlib-8.4.3.jar.zip
4658unzip lib/pdfixlib-8.4.3.jar.zip -d lib/
4759mvn install:install-file -Dfile=lib/net.pdfix.pdfixlib-8.4.3.jar -DgroupId=net.pdfix -DartifactId=net.pdfix.pdfixlib -Dversion=8.4.3 -Dpackaging=jar
4860```
4961
5062### 2. Compile, Test and Package
51- ```
63+ ``` bash
5264mvn compile
5365mvn test
5466mvn package
0 commit comments