Class PdfDocumentAnalysisSerializer
Writes stable, dependency-free JSON for deterministic PDF document analysis.
Inherited Members
Namespace: DRIT.Document.Import.Pdf
Assembly: DRIT.Document.dll
Syntax
public static class PdfDocumentAnalysisSerializer
Fields
CurrentSchemaVersion
Gets the schema version emitted by the serializer.
Declaration
public const string CurrentSchemaVersion = "1"
Field Value
| Type | Description |
|---|---|
| string |
Methods
Serialize(PdfDocumentAnalysis)
Serializes the analysis to deterministic JSON and returns the resulting text.
Declaration
public static string Serialize(PdfDocumentAnalysis analysis)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfDocumentAnalysis | analysis |
Returns
| Type | Description |
|---|---|
| string |
Write(PdfDocumentAnalysis, TextWriter)
Writes deterministic JSON for the analysis to the supplied text writer.
Declaration
public static void Write(PdfDocumentAnalysis analysis, TextWriter writer)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfDocumentAnalysis | analysis | |
| TextWriter | writer |