![]() |
Vanilla.PDF
2.3.0
Cross-platform toolkit for creating and modifying PDF documents
|
Static utility class for validating PDF file structure. More...
Public Member Functions | |
| error_type CALLING_CONVENTION | FileStructureValidator_Validate (FileHandle *handle, FileStructureValidationResultHandle **result) |
| Validate the structure of an initialized PDF file. | |
Static utility class for validating PDF file structure.
In practice, initialization is resilient: when the primary xref parsing fails, the parser falls back to a full-file object scan (FindAllObjects), which recovers most malformed files. Only files that fail even the fallback (e.g. those using unsupported features such as unknown encryption) cannot be initialized and therefore cannot be validated. For those cases the initialization error itself is the diagnostic signal.
| error_type CALLING_CONVENTION FileStructureValidator_Validate | ( | FileHandle * | handle, |
| FileStructureValidationResultHandle ** | result | ||
| ) |
Validate the structure of an initialized PDF file.
| handle | An initialized file handle |
| result | Output validation result |