Class PdfStream
Implements
Inherited Members
Namespace: Syncfusion.Pdf.Primitives
Assembly: Syncfusion.Pdf.UWP.dll
Syntax
public class PdfStream : PdfDictionary, IPdfPrimitive, IPdfChangable, IPdfDecryptable
Properties
ClonedObject
Returns cloned object.
Declaration
public override IPdfPrimitive ClonedObject { get; }
Property Value
Type |
---|
IPdfPrimitive |
Overrides
Data
Gets or sets the data.
Declaration
public byte[] Data { get; set; }
Property Value
Type |
---|
System.Byte[] |
Remarks
The modifications of the returned stream have no impact on the real data.
Decrypted
Gets a value indicating whether this PdfStream is decrypted.
Declaration
public bool Decrypted { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
WasEncrypted
Gets a value indicating whether the object was encrypted.
Declaration
public bool WasEncrypted { get; }
Property Value
Type |
---|
System.Boolean |
Methods
Clone(PdfCrossTable)
Creates a copy of PdfStream.
Declaration
public override IPdfPrimitive Clone(PdfCrossTable crossTable)
Parameters
Type | Name | Description |
---|---|---|
PdfCrossTable | crossTable |
Returns
Type |
---|
IPdfPrimitive |
Overrides
Decompress()
Decompresses this instance.
Declaration
public void Decompress()
Decrypt(PdfEncryptor, Int64)
Decrypts the data using the specified encryptor.
Declaration
public void Decrypt(PdfEncryptor encryptor, long currObjNumber)
Parameters
Type | Name | Description |
---|---|---|
PdfEncryptor | encryptor | The encryptor. |
System.Int64 | currObjNumber | The current object number. |
Save(IPdfWriter)
Saves the object using the specified writer.
Declaration
public override void Save(IPdfWriter writer)
Parameters
Type | Name | Description |
---|---|---|
IPdfWriter | writer | The writer. |
Overrides
StreamToBigEndian(Stream)
Converts a stream to bigendian format.
Declaration
public static byte[] StreamToBigEndian(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | A stream containing data. |
Returns
Type | Description |
---|---|
System.Byte[] | A stream in bigendian format. |
StreamToBytes(Stream)
Gets bytes of the stream.
Declaration
public static byte[] StreamToBytes(Stream stream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to be converted. |
Returns
Type | Description |
---|---|
System.Byte[] | Destination bytes. |
StreamToBytes(Stream, Boolean)
Gets bytes of the stream.
Declaration
public static byte[] StreamToBytes(Stream stream, bool writeWholeStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | Stream to be converted. |
System.Boolean | writeWholeStream | Indicates whether to write the whole stream. |
Returns
Type | Description |
---|---|
System.Byte[] | Destination bytes. |