Class PdfCrossTable
PDFCrossTable is responsible for intermediate level parsing and savingof a PDF document.
Inheritance
Implements
Namespace: Syncfusion.Pdf.IO
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class PdfCrossTable : Object, IDisposable
Constructors
PdfCrossTable()
A costructor thar initialize a new cross table.
Declaration
public PdfCrossTable()
PdfCrossTable(Stream)
The costructor of the table.
Declaration
public PdfCrossTable(Stream docStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | docStream | A stream which contains the document. |
PdfCrossTable(Stream, Boolean)
The costructor of the table.
Declaration
public PdfCrossTable(Stream docStream, bool openAndRepair)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | docStream | A stream which contains the document. |
System.Boolean | openAndRepair | Repair the crosstable witch contains wrong offsets |
Properties
DocumentCatalog
Returns the document catalog.
Declaration
public PdfDictionary DocumentCatalog { get; }
Property Value
Type |
---|
PdfDictionary |
Methods
Dereference(IPdfPrimitive)
Dereferences the specified primitive object.
Declaration
public static IPdfPrimitive Dereference(IPdfPrimitive obj)
Parameters
Type | Name | Description |
---|---|---|
IPdfPrimitive | obj | The primitive object. |
Returns
Type | Description |
---|---|
IPdfPrimitive | Dereferenced object. |
Dispose()
Frees all resources.
Declaration
public void Dispose()
Dispose(Boolean)
Releases unmanaged and - optionally - managed resources
Declaration
public void Dispose(bool completely)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | completely |
|
Finalize()
Releases unmanaged resources and performs other cleanup operations before the PdfCrossTable is reclaimed by garbage collection.
Declaration
protected override void Finalize()
GetObject(IPdfPrimitive)
Retrieves an object by its reference.
Declaration
public IPdfPrimitive GetObject(IPdfPrimitive pointer)
Parameters
Type | Name | Description |
---|---|---|
IPdfPrimitive | pointer | The reference of the object. |
Returns
Type | Description |
---|---|
IPdfPrimitive | The object read from its reference. |
GetStream(IPdfPrimitive)
Retrieves a PDF stream from a PDF document.
Declaration
public byte[] GetStream(IPdfPrimitive streamRef)
Parameters
Type | Name | Description |
---|---|---|
IPdfPrimitive | streamRef | The reference object to the stream. |
Returns
Type | Description |
---|---|
System.Byte[] | The array of bytes taken from the PDF stream. |
RegisterObject(PdfArchiveStream, PdfReference)
Registers an archived object.
Declaration
public void RegisterObject(PdfArchiveStream archive, PdfReference reference)
Parameters
Type | Name | Description |
---|---|---|
PdfArchiveStream | archive | The archive. |
PdfReference | reference | The reference to the object. |
RegisterObject(Int64, PdfReference)
Registers the object in the cross reference table.
Declaration
public void RegisterObject(long offset, PdfReference reference)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | offset | The offset of the object within the file |
PdfReference | reference | The representation of the reference to the object. |
RegisterObject(Int64, PdfReference, Boolean)
Registers the object in the cross reference table.
Declaration
public void RegisterObject(long offset, PdfReference reference, bool free)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | offset | The offset of the object within the file |
PdfReference | reference | The representation of the reference to the object. |
System.Boolean | free | True if object is free. |
Save(PdfWriter)
Saves the cross-reference table into the stream.
Declaration
public void Save(PdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
PdfWriter | writer | The stream writer to save the cross-reference table into. |