Class CrossTable
CrossTable is a class that performs low-level I/O for parsing a PDF cross reference table.
Inheritance
System.Object
CrossTable
Namespace: Syncfusion.Pdf.IO
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class CrossTable : Object
Constructors
CrossTable(Stream, PdfCrossTable)
Searches for all instances of reference tables and parses them.
Declaration
public CrossTable(Stream docStream, PdfCrossTable crossTable)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | docStream | The stream with the document. |
PdfCrossTable | crossTable | The high-level cross table. |
Properties
Count
Returns the number of the objects which have been found.
Declaration
public long Count { get; }
Property Value
Type |
---|
System.Int64 |
DocumentCatalog
Gets the document catalog address.
Declaration
public PdfReferenceHolder DocumentCatalog { get; }
Property Value
Type |
---|
PdfReferenceHolder |
Parser
Gets the parser.
Declaration
public PdfParser Parser { get; }
Property Value
Type | Description |
---|---|
PdfParser | The parser. |
Reader
Returns the steream reader.
Declaration
public PdfReader Reader { get; }
Property Value
Type |
---|
PdfReader |
Methods
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. |