This documentation is deprecated and will no longer be updated. Please use the official documentation at vanillapdf.readthedocs.io.
Vanilla.PDF  2.3.0
Cross-platform toolkit for creating and modifying PDF documents
List of all members
FileStructureValidator Class Reference

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.
 

Detailed Description

Static utility class for validating PDF file structure.

Note
This validator operates on the in-memory structures produced by File_Initialize. It requires the file to be successfully initialized before validation can run.

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.

Member Function Documentation

◆ FileStructureValidator_Validate()

error_type CALLING_CONVENTION FileStructureValidator_Validate ( FileHandle handle,
FileStructureValidationResultHandle **  result 
)

Validate the structure of an initialized PDF file.

Parameters
handleAn initialized file handle
resultOutput validation result

The documentation for this class was generated from the following file: