public class

PDFACompliance

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.pdfa.PDFACompliance

Class Overview

PDFACompliance class is used to validate PDF documents for PDF/A (ISO 19005:1/2/3) compliance or to convert existing PDF files to PDF/A compliant documents. The conversion option analyzes the content of existing PDF files and performs a sequence of modifications in order to produce a PDF/A compliant document. Features that are not suitable for long-term archiving (such as encryption, obsolete compression schemes, missing fonts, or device-dependent color) are replaced with their PDF/A compliant equivalents. Because the conversion process applies only necessary changes to the source file, the information loss is minimal. Also, because the converter provides a detailed report for each change, it is simple to inspect changes and to determine whether the conversion loss is acceptable. The validation option in PDF/A Manager can be used to quickly determine whether a PDF file fully complies with the PDF/A specification according to the international standard ISO 19005:1/2/3. For files that are not compliant, the validation option can be used to produce a detailed report of compliance violations as well as a list of relevant error objects. Key Functions: - Checks if a PDF file is compliant with PDF/A (ISO 19005:1/2/3) specification. - Converts any PDF to a PDF/A compliant document. - Supports PDF/A-1a, PDF/A-1b, PDF/A-2b - Produces a detailed report of compliance violations and associated PDF objects. - Keeps the required changes a minimum, preserving the consistency of the original. - Tracks all changes to allow for automatic assessment of data loss. - Allows user to customize compliance checks or omit specific changes. - Preserves tags, logical structure, and color information in existing PDF documents. - Offers automatic font substitution, embedding, and subsetting options. - Supports automation and batch operation. PDF/A Converter is designed to be used in unattended mode in high throughput server or batch environments

Summary

Constants
int e_Level1A PDF/A Conformance Level.
int e_Level1B
int e_Level2A
int e_Level2B
int e_Level2U
int e_Level3A
int e_Level3B
int e_Level3U
int e_PDFA0_1_0 The Constant e_PDFA0_1_0.
int e_PDFA0_1_1 The Constant e_PDFA0_1_2.
int e_PDFA0_1_2 The Constant e_PDFA0_1_2.
int e_PDFA0_1_3 The Constant e_PDFA0_1_3.
int e_PDFA0_1_4 The Constant e_PDFA0_1_4.
int e_PDFA0_1_5 The Constant e_PDFA0_1_5.
int e_PDFA11_0_0
int e_PDFA1_10_1 The Constant e_PDFA1_10_1.
int e_PDFA1_10_2
int e_PDFA1_10_3
int e_PDFA1_11_1 The Constant e_PDFA1_11_1.
int e_PDFA1_11_2 The Constant e_PDFA1_11_2.
int e_PDFA1_12_1 The Constant e_PDFA1_12_1.
int e_PDFA1_12_10
int e_PDFA1_12_2 The Constant e_PDFA1_12_2.
int e_PDFA1_12_3 The Constant e_PDFA1_12_3.
int e_PDFA1_12_4 The Constant e_PDFA1_12_4.
int e_PDFA1_12_5 The Constant e_PDFA1_12_5.
int e_PDFA1_12_6 The Constant e_PDFA1_12_6.
int e_PDFA1_13_1 The Constant e_PDFA1_13_1.
int e_PDFA1_13_5
int e_PDFA1_2_1 The Constant e_PDFA1_2_1.
int e_PDFA1_2_2 The Constant e_PDFA1_2_2.
int e_PDFA1_2_3
int e_PDFA1_3_1 The Constant e_PDFA1_3_1.
int e_PDFA1_3_2 The Constant e_PDFA1_3_2.
int e_PDFA1_3_3 The Constant e_PDFA1_3_3.
int e_PDFA1_3_4 The Constant e_PDFA1_3_4.
int e_PDFA1_4_1 The Constant e_PDFA1_4_1.
int e_PDFA1_4_2 The Constant e_PDFA1_4_2.
int e_PDFA1_6_1 The Constant e_PDFA1_6_1.
int e_PDFA1_7_1 The Constant e_PDFA1_7_1.
int e_PDFA1_7_2 The Constant e_PDFA1_7_2.
int e_PDFA1_7_3 The Constant e_PDFA1_7_3.
int e_PDFA1_7_4 The Constant e_PDFA1_7_4.
int e_PDFA1_8_1 The Constant e_PDFA1_8_1.
int e_PDFA1_8_2 The Constant e_PDFA1_8_2.
int e_PDFA1_8_3 The Constant e_PDFA1_8_3.
int e_PDFA1_8_4 The Constant e_PDFA1_8_4.
int e_PDFA1_8_5 The Constant e_PDFA1_8_5.
int e_PDFA1_8_6 The Constant e_PDFA1_8_6.
int e_PDFA1_8_7 The Constant e_PDFA1_8_7.
int e_PDFA2_10_1 The Constant e_PDFA2_10_1.
int e_PDFA2_10_20
int e_PDFA2_10_21
int e_PDFA2_2_1 The Constant e_PDFA2_2_1.
int e_PDFA2_3_10
int e_PDFA2_3_2 The Constant e_PDFA2_3_2.
int e_PDFA2_3_3 The Constant e_PDFA2_3_3.
int e_PDFA2_3_3_1 The Constant e_PDFA2_3_3_1.
int e_PDFA2_3_3_2 The Constant e_PDFA2_3_3_2.
int e_PDFA2_3_4_1 The Constant e_PDFA2_3_4_1.
int e_PDFA2_4_1 The Constant e_PDFA2_4_1.
int e_PDFA2_4_2 The Constant e_PDFA2_4_2.
int e_PDFA2_4_2_10
int e_PDFA2_4_2_11
int e_PDFA2_4_2_12
int e_PDFA2_4_2_13
int e_PDFA2_4_3 The Constant e_PDFA2_4_3.
int e_PDFA2_4_4 The Constant e_PDFA2_4_4.
int e_PDFA2_5_1 The Constant e_PDFA2_5_1.
int e_PDFA2_5_10
int e_PDFA2_5_11
int e_PDFA2_5_12
int e_PDFA2_5_2 The Constant e_PDFA2_5_2.
int e_PDFA2_6_1 The Constant e_PDFA2_6_1.
int e_PDFA2_7_1 The Constant e_PDFA2_7_1.
int e_PDFA2_8_1 The Constant e_PDFA2_8_1.
int e_PDFA2_8_3_1
int e_PDFA2_8_3_2
int e_PDFA2_8_3_3
int e_PDFA2_8_3_4
int e_PDFA2_8_3_5
int e_PDFA2_9_1 The Constant e_PDFA2_9_1.
int e_PDFA3_2_1 The Constant e_PDFA3_2_1.
int e_PDFA3_3_1 The Constant e_PDFA3_3_1.
int e_PDFA3_3_2 The Constant e_PDFA3_3_2.
int e_PDFA3_3_3_1 The Constant e_PDFA3_3_3_1.
int e_PDFA3_3_3_2 The Constant e_PDFA3_3_3_2.
int e_PDFA3_4_1 The Constant e_PDFA3_4_1.
int e_PDFA3_5_1 The Constant e_PDFA3_5_1.
int e_PDFA3_5_2 The Constant e_PDFA3_5_2.
int e_PDFA3_5_3 The Constant e_PDFA3_5_3.
int e_PDFA3_5_4 The Constant e_PDFA3_5_4.
int e_PDFA3_5_5 The Constant e_PDFA3_5_5.
int e_PDFA3_5_6 The Constant e_PDFA3_5_6.
int e_PDFA3_6_1 The Constant e_PDFA3_6_1.
int e_PDFA3_7_1 The Constant e_PDFA3_7_1.
int e_PDFA3_7_2 The Constant e_PDFA3_7_2.
int e_PDFA3_7_3 The Constant e_PDFA3_7_3.
int e_PDFA3_8_1
int e_PDFA4_1 The Constant e_PDFA4_1.
int e_PDFA4_2 The Constant e_PDFA4_2.
int e_PDFA4_3 The Constant e_PDFA4_3.
int e_PDFA4_4 The Constant e_PDFA4_4.
int e_PDFA4_5 The Constant e_PDFA4_5.
int e_PDFA4_6 The Constant e_PDFA4_6.
int e_PDFA5_2_1 The Constant e_PDFA5_2_1.
int e_PDFA5_2_10 The Constant e_PDFA5_2_10.
int e_PDFA5_2_11 The Constant e_PDFA5_2_11.
int e_PDFA5_2_2 The Constant e_PDFA5_2_2.
int e_PDFA5_2_3 The Constant e_PDFA5_2_3.
int e_PDFA5_2_4 The Constant e_PDFA5_2_4.
int e_PDFA5_2_5 The Constant e_PDFA5_2_5.
int e_PDFA5_2_6 The Constant e_PDFA5_2_6.
int e_PDFA5_2_7 The Constant e_PDFA5_2_7.
int e_PDFA5_2_8 The Constant e_PDFA5_2_8.
int e_PDFA5_2_9 The Constant e_PDFA5_2_9.
int e_PDFA5_3_1 The Constant e_PDFA5_3_1.
int e_PDFA5_3_2_1 The Constant e_PDFA5_3_2_1.
int e_PDFA5_3_2_2 The Constant e_PDFA5_3_2_2.
int e_PDFA5_3_2_3 The Constant e_PDFA5_3_2_3.
int e_PDFA5_3_2_4 The Constant e_PDFA5_3_2_4.
int e_PDFA5_3_2_5 The Constant e_PDFA5_3_2_5.
int e_PDFA5_3_3_1 The Constant e_PDFA5_3_3_1.
int e_PDFA5_3_3_2 The Constant e_PDFA5_3_3_2.
int e_PDFA5_3_3_3 The Constant e_PDFA5_3_3_3.
int e_PDFA5_3_3_4 The Constant e_PDFA5_3_3_4.
int e_PDFA5_3_4_1 The Constant e_PDFA5_3_4_1.
int e_PDFA5_3_4_2 The Constant e_PDFA5_3_4_2.
int e_PDFA5_3_4_3 The Constant e_PDFA5_3_4_3.
int e_PDFA6_10_0
int e_PDFA6_10_1
int e_PDFA6_1_1 The Constant e_PDFA6_1_1.
int e_PDFA6_1_2 The Constant e_PDFA6_1_2.
int e_PDFA6_2_1 The Constant e_PDFA6_2_1.
int e_PDFA6_2_11_5
int e_PDFA6_2_11_6
int e_PDFA6_2_11_7
int e_PDFA6_2_11_8
int e_PDFA6_2_2 The Constant e_PDFA6_2_2.
int e_PDFA6_2_3 The Constant e_PDFA6_2_3.
int e_PDFA6_9_1
int e_PDFA6_9_3
int e_PDFA7_11_1 The Constant e_PDFA7_11_1.
int e_PDFA7_11_2 The Constant e_PDFA7_11_2.
int e_PDFA7_11_3 The Constant e_PDFA7_11_3.
int e_PDFA7_11_4 The Constant e_PDFA7_11_4.
int e_PDFA7_11_5 The Constant e_PDFA7_11_5.
int e_PDFA7_2_1 The Constant e_PDFA7_2_1.
int e_PDFA7_2_2 The Constant e_PDFA7_2_2.
int e_PDFA7_2_3 The Constant e_PDFA7_2_3.
int e_PDFA7_2_4 The Constant e_PDFA7_2_4.
int e_PDFA7_2_5 The Constant e_PDFA7_2_5.
int e_PDFA7_3_1 The Constant e_PDFA7_3_1.
int e_PDFA7_3_2 The Constant e_PDFA7_3_2.
int e_PDFA7_3_3 The Constant e_PDFA7_3_3.
int e_PDFA7_3_4 The Constant e_PDFA7_3_4.
int e_PDFA7_3_5 The Constant e_PDFA7_3_5.
int e_PDFA7_3_6 The Constant e_PDFA7_3_6.
int e_PDFA7_3_7 The Constant e_PDFA7_3_7.
int e_PDFA7_3_8 The Constant e_PDFA7_3_8.
int e_PDFA7_3_9 The Constant e_PDFA7_3_9.
int e_PDFA7_5_1 The Constant e_PDFA7_5_1.
int e_PDFA7_8_1 The Constant e_PDFA7_8_1.
int e_PDFA7_8_10 The Constant e_PDFA7_8_10.
int e_PDFA7_8_11 The Constant e_PDFA7_8_11.
int e_PDFA7_8_12 The Constant e_PDFA7_8_12.
int e_PDFA7_8_13 The Constant e_PDFA7_8_13.
int e_PDFA7_8_14 The Constant e_PDFA7_8_14.
int e_PDFA7_8_15 The Constant e_PDFA7_8_15.
int e_PDFA7_8_16 The Constant e_PDFA7_8_16.
int e_PDFA7_8_17 The Constant e_PDFA7_8_17.
int e_PDFA7_8_18 The Constant e_PDFA7_8_18.
int e_PDFA7_8_19 The Constant e_PDFA7_8_19.
int e_PDFA7_8_2 The Constant e_PDFA7_8_2.
int e_PDFA7_8_20 The Constant e_PDFA7_8_20.
int e_PDFA7_8_21 The Constant e_PDFA7_8_21.
int e_PDFA7_8_22 The Constant e_PDFA7_8_22.
int e_PDFA7_8_23 The Constant e_PDFA7_8_23.
int e_PDFA7_8_24 The Constant e_PDFA7_8_24.
int e_PDFA7_8_25 The Constant e_PDFA7_8_25.
int e_PDFA7_8_26 The Constant e_PDFA7_8_26.
int e_PDFA7_8_27 The Constant e_PDFA7_8_27.
int e_PDFA7_8_28 The Constant e_PDFA7_8_28.
int e_PDFA7_8_29 The Constant e_PDFA7_8_29.
int e_PDFA7_8_3 The Constant e_PDFA7_8_3.
int e_PDFA7_8_30 The Constant e_PDFA7_8_30.
int e_PDFA7_8_31 The Constant e_PDFA7_8_31.
int e_PDFA7_8_4 The Constant e_PDFA7_8_4.
int e_PDFA7_8_5 The Constant e_PDFA7_8_5.
int e_PDFA7_8_6 The Constant e_PDFA7_8_6.
int e_PDFA7_8_7 The Constant e_PDFA7_8_7.
int e_PDFA7_8_8 The Constant e_PDFA7_8_8.
int e_PDFA7_8_9 The Constant e_PDFA7_8_9.
int e_PDFA8_1
int e_PDFA8_2_2
int e_PDFA8_3_3_1
int e_PDFA8_3_3_2
int e_PDFA8_3_4_1
int e_PDFA9_1 The Constant e_PDFA9_1.
int e_PDFA9_2 The Constant e_PDFA9_2.
int e_PDFA9_3
int e_PDFA9_4
int e_PDFA_3E1
int e_PDFA_3E1_1
int e_PDFA_3E2
int e_PDFA_3E3
Public Constructors
PDFACompliance(boolean convert, String file_path, String password, int conf, int[] exceptions, int max_ref_objs, boolean first_stop)
Perform PDF/A validation or PDF/A conversion on the input PDF document.
PDFACompliance(boolean convert, String file_path, String password, int conf, int[] exceptions, int max_ref_objs)
Perform PDF/A validation or PDF/A conversion on the input PDF document with default "first_stop" value.
PDFACompliance(boolean convert, String file_path, String password, int[] exceptions)
Perform PDF/A validation or PDF/A conversion on the input PDF document with default "first_stop" value, default conformance value and default max_rf_objs number.
PDFACompliance(boolean convert, byte[] buf, String password, int conf, int[] exceptions, int max_ref_objs, boolean first_stop)
Perform PDF/A validation or PDF/A conversion on the input PDF document which is stored in a memory buffer.
PDFACompliance(boolean convert, byte[] buf, String password, int conf, int[] exceptions, int max_ref_objs)
Perform PDF/A validation or PDF/A conversion on the input PDF document which is stored in a memory buffer with default "first_stop" value.
PDFACompliance(boolean convert, byte[] buf, String password, int[] exceptions)
Perform PDF/A validation or PDF/A conversion on the input PDF document which is stored in a memory buffer with default "first_stop" value, default conformance value and default max_rf_objs number..
Public Methods
void destroy()
Frees the native memory of the object.
int getError(int idx)
Get the error.
int getErrorCount()
Get the error count.
static String getPDFAErrorMessage(int id)
Get the pDFA error message.
int getRefObj(int id, int obj_idx)
Get the ref obj.
int getRefObjCount(int id)
Get the ref obj count.
byte[] saveAs(boolean linearized)
Serializes the converted PDF/A document to a memory buffer.
void saveAs(String file_path, boolean linearized)
Serializes the converted PDF/A document to a file on disk.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int e_Level1A

PDF/A Conformance Level. Level A conforming files must adhere to all of the requirements of ISO 19005. A file meeting this conformance level is said to be a 'conforming PDF/A -1a file.' Level B conforming files shall adhere to all of the requirements of ISO 19005 except those of 6.3.8 and 6.8. A file meeting this conformance level is said to be a 'conforming PDF/A-1b file'. The Level B conformance requirements are intended to be those minimally necessary to ensure that the rendered visual appearance of a conforming file is preservable over the long term.

Constant Value: 1 (0x00000001)

public static final int e_Level1B

Constant Value: 2 (0x00000002)

public static final int e_Level2A

Constant Value: 3 (0x00000003)

public static final int e_Level2B

Constant Value: 4 (0x00000004)

public static final int e_Level2U

Constant Value: 5 (0x00000005)

public static final int e_Level3A

Constant Value: 6 (0x00000006)

public static final int e_Level3B

Constant Value: 7 (0x00000007)

public static final int e_Level3U

Constant Value: 8 (0x00000008)

public static final int e_PDFA0_1_0

The Constant e_PDFA0_1_0.

Constant Value: 10 (0x0000000a)

public static final int e_PDFA0_1_1

The Constant e_PDFA0_1_2.

Constant Value: 11 (0x0000000b)

public static final int e_PDFA0_1_2

The Constant e_PDFA0_1_2.

Constant Value: 12 (0x0000000c)

public static final int e_PDFA0_1_3

The Constant e_PDFA0_1_3.

Constant Value: 13 (0x0000000d)

public static final int e_PDFA0_1_4

The Constant e_PDFA0_1_4.

Constant Value: 14 (0x0000000e)

public static final int e_PDFA0_1_5

The Constant e_PDFA0_1_5.

Constant Value: 15 (0x0000000f)

public static final int e_PDFA11_0_0

Constant Value: 11000 (0x00002af8)

public static final int e_PDFA1_10_1

The Constant e_PDFA1_10_1.

Constant Value: 1101 (0x0000044d)

public static final int e_PDFA1_10_2

Constant Value: 1102 (0x0000044e)

public static final int e_PDFA1_10_3

Constant Value: 1103 (0x0000044f)

public static final int e_PDFA1_11_1

The Constant e_PDFA1_11_1.

Constant Value: 1111 (0x00000457)

public static final int e_PDFA1_11_2

The Constant e_PDFA1_11_2.

Constant Value: 1112 (0x00000458)

public static final int e_PDFA1_12_1

The Constant e_PDFA1_12_1.

Constant Value: 1121 (0x00000461)

public static final int e_PDFA1_12_10

Constant Value: 11210 (0x00002bca)

public static final int e_PDFA1_12_2

The Constant e_PDFA1_12_2.

Constant Value: 1122 (0x00000462)

public static final int e_PDFA1_12_3

The Constant e_PDFA1_12_3.

Constant Value: 1123 (0x00000463)

public static final int e_PDFA1_12_4

The Constant e_PDFA1_12_4.

Constant Value: 1124 (0x00000464)

public static final int e_PDFA1_12_5

The Constant e_PDFA1_12_5.

Constant Value: 1125 (0x00000465)

public static final int e_PDFA1_12_6

The Constant e_PDFA1_12_6.

Constant Value: 1126 (0x00000466)

public static final int e_PDFA1_13_1

The Constant e_PDFA1_13_1.

Constant Value: 1131 (0x0000046b)

public static final int e_PDFA1_13_5

Constant Value: 1135 (0x0000046f)

public static final int e_PDFA1_2_1

The Constant e_PDFA1_2_1.

Constant Value: 121 (0x00000079)

public static final int e_PDFA1_2_2

The Constant e_PDFA1_2_2.

Constant Value: 122 (0x0000007a)

public static final int e_PDFA1_2_3

Constant Value: 123 (0x0000007b)

public static final int e_PDFA1_3_1

The Constant e_PDFA1_3_1.

Constant Value: 131 (0x00000083)

public static final int e_PDFA1_3_2

The Constant e_PDFA1_3_2.

Constant Value: 132 (0x00000084)

public static final int e_PDFA1_3_3

The Constant e_PDFA1_3_3.

Constant Value: 133 (0x00000085)

public static final int e_PDFA1_3_4

The Constant e_PDFA1_3_4.

Constant Value: 134 (0x00000086)

public static final int e_PDFA1_4_1

The Constant e_PDFA1_4_1.

Constant Value: 141 (0x0000008d)

public static final int e_PDFA1_4_2

The Constant e_PDFA1_4_2.

Constant Value: 142 (0x0000008e)

public static final int e_PDFA1_6_1

The Constant e_PDFA1_6_1.

Constant Value: 161 (0x000000a1)

public static final int e_PDFA1_7_1

The Constant e_PDFA1_7_1.

Constant Value: 171 (0x000000ab)

public static final int e_PDFA1_7_2

The Constant e_PDFA1_7_2.

Constant Value: 172 (0x000000ac)

public static final int e_PDFA1_7_3

The Constant e_PDFA1_7_3.

Constant Value: 173 (0x000000ad)

public static final int e_PDFA1_7_4

The Constant e_PDFA1_7_4.

Constant Value: 174 (0x000000ae)

public static final int e_PDFA1_8_1

The Constant e_PDFA1_8_1.

Constant Value: 181 (0x000000b5)

public static final int e_PDFA1_8_2

The Constant e_PDFA1_8_2.

Constant Value: 182 (0x000000b6)

public static final int e_PDFA1_8_3

The Constant e_PDFA1_8_3.

Constant Value: 183 (0x000000b7)

public static final int e_PDFA1_8_4

The Constant e_PDFA1_8_4.

Constant Value: 184 (0x000000b8)

public static final int e_PDFA1_8_5

The Constant e_PDFA1_8_5.

Constant Value: 185 (0x000000b9)

public static final int e_PDFA1_8_6

The Constant e_PDFA1_8_6.

Constant Value: 186 (0x000000ba)

public static final int e_PDFA1_8_7

The Constant e_PDFA1_8_7.

Constant Value: 187 (0x000000bb)

public static final int e_PDFA2_10_1

The Constant e_PDFA2_10_1.

Constant Value: 2101 (0x00000835)

public static final int e_PDFA2_10_20

Constant Value: 21020 (0x0000521c)

public static final int e_PDFA2_10_21

Constant Value: 21021 (0x0000521d)

public static final int e_PDFA2_2_1

The Constant e_PDFA2_2_1.

Constant Value: 221 (0x000000dd)

public static final int e_PDFA2_3_10

Constant Value: 2310 (0x00000906)

public static final int e_PDFA2_3_2

The Constant e_PDFA2_3_2.

Constant Value: 232 (0x000000e8)

public static final int e_PDFA2_3_3

The Constant e_PDFA2_3_3.

Constant Value: 233 (0x000000e9)

public static final int e_PDFA2_3_3_1

The Constant e_PDFA2_3_3_1.

Constant Value: 2331 (0x0000091b)

public static final int e_PDFA2_3_3_2

The Constant e_PDFA2_3_3_2.

Constant Value: 2332 (0x0000091c)

public static final int e_PDFA2_3_4_1

The Constant e_PDFA2_3_4_1.

Constant Value: 2341 (0x00000925)

public static final int e_PDFA2_4_1

The Constant e_PDFA2_4_1.

Constant Value: 241 (0x000000f1)

public static final int e_PDFA2_4_2

The Constant e_PDFA2_4_2.

Constant Value: 242 (0x000000f2)

public static final int e_PDFA2_4_2_10

Constant Value: 24220 (0x00005e9c)

public static final int e_PDFA2_4_2_11

Constant Value: 24221 (0x00005e9d)

public static final int e_PDFA2_4_2_12

Constant Value: 24222 (0x00005e9e)

public static final int e_PDFA2_4_2_13

Constant Value: 24223 (0x00005e9f)

public static final int e_PDFA2_4_3

The Constant e_PDFA2_4_3.

Constant Value: 243 (0x000000f3)

public static final int e_PDFA2_4_4

The Constant e_PDFA2_4_4.

Constant Value: 244 (0x000000f4)

public static final int e_PDFA2_5_1

The Constant e_PDFA2_5_1.

Constant Value: 251 (0x000000fb)

public static final int e_PDFA2_5_10

Constant Value: 2510 (0x000009ce)

public static final int e_PDFA2_5_11

Constant Value: 2511 (0x000009cf)

public static final int e_PDFA2_5_12

Constant Value: 2512 (0x000009d0)

public static final int e_PDFA2_5_2

The Constant e_PDFA2_5_2.

Constant Value: 252 (0x000000fc)

public static final int e_PDFA2_6_1

The Constant e_PDFA2_6_1.

Constant Value: 261 (0x00000105)

public static final int e_PDFA2_7_1

The Constant e_PDFA2_7_1.

Constant Value: 271 (0x0000010f)

public static final int e_PDFA2_8_1

The Constant e_PDFA2_8_1.

Constant Value: 281 (0x00000119)

public static final int e_PDFA2_8_3_1

Constant Value: 2831 (0x00000b0f)

public static final int e_PDFA2_8_3_2

Constant Value: 2832 (0x00000b10)

public static final int e_PDFA2_8_3_3

Constant Value: 2833 (0x00000b11)

public static final int e_PDFA2_8_3_4

Constant Value: 2834 (0x00000b12)

public static final int e_PDFA2_8_3_5

Constant Value: 2835 (0x00000b13)

public static final int e_PDFA2_9_1

The Constant e_PDFA2_9_1.

Constant Value: 291 (0x00000123)

public static final int e_PDFA3_2_1

The Constant e_PDFA3_2_1.

Constant Value: 321 (0x00000141)

public static final int e_PDFA3_3_1

The Constant e_PDFA3_3_1.

Constant Value: 331 (0x0000014b)

public static final int e_PDFA3_3_2

The Constant e_PDFA3_3_2.

Constant Value: 332 (0x0000014c)

public static final int e_PDFA3_3_3_1

The Constant e_PDFA3_3_3_1.

Constant Value: 3331 (0x00000d03)

public static final int e_PDFA3_3_3_2

The Constant e_PDFA3_3_3_2.

Constant Value: 3332 (0x00000d04)

public static final int e_PDFA3_4_1

The Constant e_PDFA3_4_1.

Constant Value: 341 (0x00000155)

public static final int e_PDFA3_5_1

The Constant e_PDFA3_5_1.

Constant Value: 351 (0x0000015f)

public static final int e_PDFA3_5_2

The Constant e_PDFA3_5_2.

Constant Value: 352 (0x00000160)

public static final int e_PDFA3_5_3

The Constant e_PDFA3_5_3.

Constant Value: 353 (0x00000161)

public static final int e_PDFA3_5_4

The Constant e_PDFA3_5_4.

Constant Value: 354 (0x00000162)

public static final int e_PDFA3_5_5

The Constant e_PDFA3_5_5.

Constant Value: 355 (0x00000163)

public static final int e_PDFA3_5_6

The Constant e_PDFA3_5_6.

Constant Value: 356 (0x00000164)

public static final int e_PDFA3_6_1

The Constant e_PDFA3_6_1.

Constant Value: 361 (0x00000169)

public static final int e_PDFA3_7_1

The Constant e_PDFA3_7_1.

Constant Value: 371 (0x00000173)

public static final int e_PDFA3_7_2

The Constant e_PDFA3_7_2.

Constant Value: 372 (0x00000174)

public static final int e_PDFA3_7_3

The Constant e_PDFA3_7_3.

Constant Value: 373 (0x00000175)

public static final int e_PDFA3_8_1

Constant Value: 381 (0x0000017d)

public static final int e_PDFA4_1

The Constant e_PDFA4_1.

Constant Value: 41 (0x00000029)

public static final int e_PDFA4_2

The Constant e_PDFA4_2.

Constant Value: 42 (0x0000002a)

public static final int e_PDFA4_3

The Constant e_PDFA4_3.

Constant Value: 43 (0x0000002b)

public static final int e_PDFA4_4

The Constant e_PDFA4_4.

Constant Value: 44 (0x0000002c)

public static final int e_PDFA4_5

The Constant e_PDFA4_5.

Constant Value: 45 (0x0000002d)

public static final int e_PDFA4_6

The Constant e_PDFA4_6.

Constant Value: 46 (0x0000002e)

public static final int e_PDFA5_2_1

The Constant e_PDFA5_2_1.

Constant Value: 521 (0x00000209)

public static final int e_PDFA5_2_10

The Constant e_PDFA5_2_10.

Constant Value: 5210 (0x0000145a)

public static final int e_PDFA5_2_11

The Constant e_PDFA5_2_11.

Constant Value: 5211 (0x0000145b)

public static final int e_PDFA5_2_2

The Constant e_PDFA5_2_2.

Constant Value: 522 (0x0000020a)

public static final int e_PDFA5_2_3

The Constant e_PDFA5_2_3.

Constant Value: 523 (0x0000020b)

public static final int e_PDFA5_2_4

The Constant e_PDFA5_2_4.

Constant Value: 524 (0x0000020c)

public static final int e_PDFA5_2_5

The Constant e_PDFA5_2_5.

Constant Value: 525 (0x0000020d)

public static final int e_PDFA5_2_6

The Constant e_PDFA5_2_6.

Constant Value: 526 (0x0000020e)

public static final int e_PDFA5_2_7

The Constant e_PDFA5_2_7.

Constant Value: 527 (0x0000020f)

public static final int e_PDFA5_2_8

The Constant e_PDFA5_2_8.

Constant Value: 528 (0x00000210)

public static final int e_PDFA5_2_9

The Constant e_PDFA5_2_9.

Constant Value: 529 (0x00000211)

public static final int e_PDFA5_3_1

The Constant e_PDFA5_3_1.

Constant Value: 531 (0x00000213)

public static final int e_PDFA5_3_2_1

The Constant e_PDFA5_3_2_1.

Constant Value: 5321 (0x000014c9)

public static final int e_PDFA5_3_2_2

The Constant e_PDFA5_3_2_2.

Constant Value: 5322 (0x000014ca)

public static final int e_PDFA5_3_2_3

The Constant e_PDFA5_3_2_3.

Constant Value: 5323 (0x000014cb)

public static final int e_PDFA5_3_2_4

The Constant e_PDFA5_3_2_4.

Constant Value: 5324 (0x000014cc)

public static final int e_PDFA5_3_2_5

The Constant e_PDFA5_3_2_5.

Constant Value: 5325 (0x000014cd)

public static final int e_PDFA5_3_3_1

The Constant e_PDFA5_3_3_1.

Constant Value: 5331 (0x000014d3)

public static final int e_PDFA5_3_3_2

The Constant e_PDFA5_3_3_2.

Constant Value: 5332 (0x000014d4)

public static final int e_PDFA5_3_3_3

The Constant e_PDFA5_3_3_3.

Constant Value: 5333 (0x000014d5)

public static final int e_PDFA5_3_3_4

The Constant e_PDFA5_3_3_4.

Constant Value: 5334 (0x000014d6)

public static final int e_PDFA5_3_4_1

The Constant e_PDFA5_3_4_1.

Constant Value: 5341 (0x000014dd)

public static final int e_PDFA5_3_4_2

The Constant e_PDFA5_3_4_2.

Constant Value: 5342 (0x000014de)

public static final int e_PDFA5_3_4_3

The Constant e_PDFA5_3_4_3.

Constant Value: 5343 (0x000014df)

public static final int e_PDFA6_10_0

Constant Value: 6100 (0x000017d4)

public static final int e_PDFA6_10_1

Constant Value: 6101 (0x000017d5)

public static final int e_PDFA6_1_1

The Constant e_PDFA6_1_1.

Constant Value: 611 (0x00000263)

public static final int e_PDFA6_1_2

The Constant e_PDFA6_1_2.

Constant Value: 612 (0x00000264)

public static final int e_PDFA6_2_1

The Constant e_PDFA6_2_1.

Constant Value: 621 (0x0000026d)

public static final int e_PDFA6_2_11_5

Constant Value: 62115 (0x0000f2a3)

public static final int e_PDFA6_2_11_6

Constant Value: 62116 (0x0000f2a4)

public static final int e_PDFA6_2_11_7

Constant Value: 62117 (0x0000f2a5)

public static final int e_PDFA6_2_11_8

Constant Value: 62118 (0x0000f2a6)

public static final int e_PDFA6_2_2

The Constant e_PDFA6_2_2.

Constant Value: 622 (0x0000026e)

public static final int e_PDFA6_2_3

The Constant e_PDFA6_2_3.

Constant Value: 623 (0x0000026f)

public static final int e_PDFA6_9_1

Constant Value: 69001 (0x00010d89)

public static final int e_PDFA6_9_3

Constant Value: 69003 (0x00010d8b)

public static final int e_PDFA7_11_1

The Constant e_PDFA7_11_1.

Constant Value: 7111 (0x00001bc7)

public static final int e_PDFA7_11_2

The Constant e_PDFA7_11_2.

Constant Value: 7112 (0x00001bc8)

public static final int e_PDFA7_11_3

The Constant e_PDFA7_11_3.

Constant Value: 7113 (0x00001bc9)

public static final int e_PDFA7_11_4

The Constant e_PDFA7_11_4.

Constant Value: 7114 (0x00001bca)

public static final int e_PDFA7_11_5

The Constant e_PDFA7_11_5.

Constant Value: 7115 (0x00001bcb)

public static final int e_PDFA7_2_1

The Constant e_PDFA7_2_1.

Constant Value: 721 (0x000002d1)

public static final int e_PDFA7_2_2

The Constant e_PDFA7_2_2.

Constant Value: 722 (0x000002d2)

public static final int e_PDFA7_2_3

The Constant e_PDFA7_2_3.

Constant Value: 723 (0x000002d3)

public static final int e_PDFA7_2_4

The Constant e_PDFA7_2_4.

Constant Value: 724 (0x000002d4)

public static final int e_PDFA7_2_5

The Constant e_PDFA7_2_5.

Constant Value: 725 (0x000002d5)

public static final int e_PDFA7_3_1

The Constant e_PDFA7_3_1.

Constant Value: 731 (0x000002db)

public static final int e_PDFA7_3_2

The Constant e_PDFA7_3_2.

Constant Value: 732 (0x000002dc)

public static final int e_PDFA7_3_3

The Constant e_PDFA7_3_3.

Constant Value: 733 (0x000002dd)

public static final int e_PDFA7_3_4

The Constant e_PDFA7_3_4.

Constant Value: 734 (0x000002de)

public static final int e_PDFA7_3_5

The Constant e_PDFA7_3_5.

Constant Value: 735 (0x000002df)

public static final int e_PDFA7_3_6

The Constant e_PDFA7_3_6.

Constant Value: 736 (0x000002e0)

public static final int e_PDFA7_3_7

The Constant e_PDFA7_3_7.

Constant Value: 737 (0x000002e1)

public static final int e_PDFA7_3_8

The Constant e_PDFA7_3_8.

Constant Value: 738 (0x000002e2)

public static final int e_PDFA7_3_9

The Constant e_PDFA7_3_9.

Constant Value: 739 (0x000002e3)

public static final int e_PDFA7_5_1

The Constant e_PDFA7_5_1.

Constant Value: 751 (0x000002ef)

public static final int e_PDFA7_8_1

The Constant e_PDFA7_8_1.

Constant Value: 781 (0x0000030d)

public static final int e_PDFA7_8_10

The Constant e_PDFA7_8_10.

Constant Value: 7810 (0x00001e82)

public static final int e_PDFA7_8_11

The Constant e_PDFA7_8_11.

Constant Value: 7811 (0x00001e83)

public static final int e_PDFA7_8_12

The Constant e_PDFA7_8_12.

Constant Value: 7812 (0x00001e84)

public static final int e_PDFA7_8_13

The Constant e_PDFA7_8_13.

Constant Value: 7813 (0x00001e85)

public static final int e_PDFA7_8_14

The Constant e_PDFA7_8_14.

Constant Value: 7814 (0x00001e86)

public static final int e_PDFA7_8_15

The Constant e_PDFA7_8_15.

Constant Value: 7815 (0x00001e87)

public static final int e_PDFA7_8_16

The Constant e_PDFA7_8_16.

Constant Value: 7816 (0x00001e88)

public static final int e_PDFA7_8_17

The Constant e_PDFA7_8_17.

Constant Value: 7817 (0x00001e89)

public static final int e_PDFA7_8_18

The Constant e_PDFA7_8_18.

Constant Value: 7818 (0x00001e8a)

public static final int e_PDFA7_8_19

The Constant e_PDFA7_8_19.

Constant Value: 7819 (0x00001e8b)

public static final int e_PDFA7_8_2

The Constant e_PDFA7_8_2.

Constant Value: 782 (0x0000030e)

public static final int e_PDFA7_8_20

The Constant e_PDFA7_8_20.

Constant Value: 7820 (0x00001e8c)

public static final int e_PDFA7_8_21

The Constant e_PDFA7_8_21.

Constant Value: 7821 (0x00001e8d)

public static final int e_PDFA7_8_22

The Constant e_PDFA7_8_22.

Constant Value: 7822 (0x00001e8e)

public static final int e_PDFA7_8_23

The Constant e_PDFA7_8_23.

Constant Value: 7823 (0x00001e8f)

public static final int e_PDFA7_8_24

The Constant e_PDFA7_8_24.

Constant Value: 7824 (0x00001e90)

public static final int e_PDFA7_8_25

The Constant e_PDFA7_8_25.

Constant Value: 7825 (0x00001e91)

public static final int e_PDFA7_8_26

The Constant e_PDFA7_8_26.

Constant Value: 7826 (0x00001e92)

public static final int e_PDFA7_8_27

The Constant e_PDFA7_8_27.

Constant Value: 7827 (0x00001e93)

public static final int e_PDFA7_8_28

The Constant e_PDFA7_8_28.

Constant Value: 7828 (0x00001e94)

public static final int e_PDFA7_8_29

The Constant e_PDFA7_8_29.

Constant Value: 7829 (0x00001e95)

public static final int e_PDFA7_8_3

The Constant e_PDFA7_8_3.

Constant Value: 783 (0x0000030f)

public static final int e_PDFA7_8_30

The Constant e_PDFA7_8_30.

Constant Value: 7830 (0x00001e96)

public static final int e_PDFA7_8_31

The Constant e_PDFA7_8_31.

Constant Value: 7831 (0x00001e97)

public static final int e_PDFA7_8_4

The Constant e_PDFA7_8_4.

Constant Value: 784 (0x00000310)

public static final int e_PDFA7_8_5

The Constant e_PDFA7_8_5.

Constant Value: 785 (0x00000311)

public static final int e_PDFA7_8_6

The Constant e_PDFA7_8_6.

Constant Value: 786 (0x00000312)

public static final int e_PDFA7_8_7

The Constant e_PDFA7_8_7.

Constant Value: 787 (0x00000313)

public static final int e_PDFA7_8_8

The Constant e_PDFA7_8_8.

Constant Value: 788 (0x00000314)

public static final int e_PDFA7_8_9

The Constant e_PDFA7_8_9.

Constant Value: 789 (0x00000315)

public static final int e_PDFA8_1

Constant Value: 81 (0x00000051)

public static final int e_PDFA8_2_2

Constant Value: 822 (0x00000336)

public static final int e_PDFA8_3_3_1

Constant Value: 8331 (0x0000208b)

public static final int e_PDFA8_3_3_2

Constant Value: 8332 (0x0000208c)

public static final int e_PDFA8_3_4_1

Constant Value: 8341 (0x00002095)

public static final int e_PDFA9_1

The Constant e_PDFA9_1.

Constant Value: 91 (0x0000005b)

public static final int e_PDFA9_2

The Constant e_PDFA9_2.

Constant Value: 92 (0x0000005c)

public static final int e_PDFA9_3

Constant Value: 93 (0x0000005d)

public static final int e_PDFA9_4

Constant Value: 94 (0x0000005e)

public static final int e_PDFA_3E1

Constant Value: 1 (0x00000001)

public static final int e_PDFA_3E1_1

Constant Value: 101 (0x00000065)

public static final int e_PDFA_3E2

Constant Value: 2 (0x00000002)

public static final int e_PDFA_3E3

Constant Value: 3 (0x00000003)

Public Constructors

public PDFACompliance (boolean convert, String file_path, String password, int conf, int[] exceptions, int max_ref_objs, boolean first_stop)

Perform PDF/A validation or PDF/A conversion on the input PDF document.

Parameters
convert A flag used to instruct PDF/A processor to perform PDF/A conversion (if 'true') or PDF/A validation (if 'false'). After PDF/A conversion you can save the resulting document using Save() method(s).
file_path the file_path
password An optional parameter that can be used to specify the password for encrypted PDF documents (typically only useful in the conversion mode).
conf The PDF conformance level. The default value is e_Level1B.
exceptions the exceptions
max_ref_objs The maximum number of object references per error condition.
first_stop the first_stop
Throws
PDFNetException Throws an exception if the file can't be opened.

public PDFACompliance (boolean convert, String file_path, String password, int conf, int[] exceptions, int max_ref_objs)

Perform PDF/A validation or PDF/A conversion on the input PDF document with default "first_stop" value.

Parameters
convert A flag used to instruct PDF/A processor to perform PDF/A conversion (if 'true') or PDF/A validation (if 'false'). After PDF/A conversion you can save the resulting document using Save() method(s).
file_path the file_path
password An optional parameter that can be used to specify the password for encrypted PDF documents (typically only useful in the conversion mode).
conf The PDF conformance level. The default value is e_Level1B.
exceptions the exceptions
max_ref_objs The maximum number of object references per error condition.
Throws
PDFNetException Throws an exception if the file can't be opened.

public PDFACompliance (boolean convert, String file_path, String password, int[] exceptions)

Perform PDF/A validation or PDF/A conversion on the input PDF document with default "first_stop" value, default conformance value and default max_rf_objs number.

Parameters
convert A flag used to instruct PDF/A processor to perform PDF/A conversion (if 'true') or PDF/A validation (if 'false'). After PDF/A conversion you can save the resulting document using Save() method(s).
file_path the file_path
password An optional parameter that can be used to specify the password for encrypted PDF documents (typically only useful in the conversion mode).
exceptions the exceptions
Throws
PDFNetException Throws an exception if the file can't be opened.

public PDFACompliance (boolean convert, byte[] buf, String password, int conf, int[] exceptions, int max_ref_objs, boolean first_stop)

Perform PDF/A validation or PDF/A conversion on the input PDF document which is stored in a memory buffer.

Parameters
convert A flag used to instruct PDF/A processor to perform PDF/A conversion (if 'true') or PDF/A validation (if 'false'). After PDF/A conversion you can save the resulting document using Save() method(s).
buf A memory buffer containing the serialized PDF document.
password An optional parameter that can be used to specify the password for encrypted PDF documents (typically only useful in the conversion mode).
conf The PDF conformance level. The default value is e_Level1B.
exceptions the exceptions
max_ref_objs The maximum number of object references per error condition.
first_stop the first_stop
Throws
PDFNetException Throws an exception if the file can't be opened.

public PDFACompliance (boolean convert, byte[] buf, String password, int conf, int[] exceptions, int max_ref_objs)

Perform PDF/A validation or PDF/A conversion on the input PDF document which is stored in a memory buffer with default "first_stop" value.

Parameters
convert A flag used to instruct PDF/A processor to perform PDF/A conversion (if 'true') or PDF/A validation (if 'false'). After PDF/A conversion you can save the resulting document using Save() method(s).
buf A memory buffer containing the serialized PDF document.
password An optional parameter that can be used to specify the password for encrypted PDF documents (typically only useful in the conversion mode).
conf The PDF conformance level. The default value is e_Level1B.
exceptions the exceptions
max_ref_objs The maximum number of object references per error condition.
Throws
PDFNetException Throws an exception if the file can't be opened.

public PDFACompliance (boolean convert, byte[] buf, String password, int[] exceptions)

Perform PDF/A validation or PDF/A conversion on the input PDF document which is stored in a memory buffer with default "first_stop" value, default conformance value and default max_rf_objs number..

Parameters
convert A flag used to instruct PDF/A processor to perform PDF/A conversion (if 'true') or PDF/A validation (if 'false'). After PDF/A conversion you can save the resulting document using Save() method(s).
buf A memory buffer containing the serialized PDF document.
password An optional parameter that can be used to specify the password for encrypted PDF documents (typically only useful in the conversion mode).
exceptions the exceptions
Throws
PDFNetException Throws an exception if the file can't be opened.

Public Methods

public void destroy ()

Frees the native memory of the object. This can be explicity called to control the deallocation of native memory and avoid situations where the garbage collector does not free the object in a timely manner.

public int getError (int idx)

Get the error.

Parameters
idx The index in the array of error code identifiers. The array is indexed starting from zero.
Returns
  • The error identifier.

public int getErrorCount ()

Get the error count.

Returns
  • The number of compliance violations.

public static String getPDFAErrorMessage (int id)

Get the pDFA error message.

Parameters
id error code identifier (obtained using GetError() method).
Returns
  • A descriptive error message for the given error identifier.

public int getRefObj (int id, int obj_idx)

Get the ref obj.

Parameters
id error code identifier (obtained using GetError() method).
obj_idx the obj_idx
Returns
  • A specific object reference associated with a given error type. The return value is a PDF object identifier (i.e. object number for 'pdftron.SDF.Obj)) for the that is associated with the error.

public int getRefObjCount (int id)

Get the ref obj count.

Parameters
id error code identifier (obtained using GetError() method).
Returns
  • The number of object references associated with a given error.

public byte[] saveAs (boolean linearized)

Serializes the converted PDF/A document to a memory buffer.

Note: This method assumes that the first parameter passed in PDFACompliance constructor (i.e. the convert parameter) is set to 'true'.

Parameters
linearized - An optional flag used to specify whether the the resulting PDF/A document should be web-optimized (linearized).
Returns
  • the byte[]

public void saveAs (String file_path, boolean linearized)

Serializes the converted PDF/A document to a file on disk.

Note: This method assumes that the first parameter passed in PDFACompliance constructor (i.e. the convert parameter) is set to 'true'.

Parameters
file_path the file_path
linearized - An optional flag used to specify whether the the resulting PDF/A document should be web-optimized (linearized).