Class PdfExtractionSnapshotSerializer
Writes deterministic, dependency-free JSON extraction snapshots.
Inherited Members
Namespace: DRIT.Pdf.Extraction
Assembly: DRIT.Pdf.dll
Syntax
public static class PdfExtractionSnapshotSerializer
Fields
SchemaVersion
Version of the JSON snapshot schema.
Declaration
public const string SchemaVersion = "1.0"
Field Value
| Type | Description |
|---|---|
| string |
Methods
Serialize(PdfExtractionProjection)
Serializes an extraction projection to stable UTF-16 JSON text.
Declaration
public static string Serialize(PdfExtractionProjection projection)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfExtractionProjection | projection |
Returns
| Type | Description |
|---|---|
| string |
Write(PdfExtractionProjection, Stream)
Writes a UTF-8 snapshot to a writable stream without closing it.
Declaration
public static void Write(PdfExtractionProjection projection, Stream destination)
Parameters
| Type | Name | Description |
|---|---|---|
| PdfExtractionProjection | projection | |
| Stream | destination |