alexa
menu

UWP

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class PdfStream

    Inheritance
    System.Object
    PdfDictionary
    PdfStream
    PdfArchiveStream
    Implements
    IPdfPrimitive
    Inherited Members
    PdfDictionary.Changed
    PdfDictionary.Clear()
    PdfDictionary.ContainsKey(PdfName)
    PdfDictionary.ContainsKey(String)
    PdfDictionary.Count
    PdfDictionary.FreezeChanges(Object)
    PdfDictionary.GetName(String)
    PdfDictionary.GetValue(PdfCrossTable, String, String)
    PdfDictionary.GetValue(String, String)
    PdfDictionary.IsSaving
    PdfDictionary.Item[PdfName]
    PdfDictionary.Item[String]
    PdfDictionary.Items
    PdfDictionary.ObjectCollectionIndex
    PdfDictionary.OnBeginSave(SavePdfPrimitiveEventArgs)
    PdfDictionary.OnEndSave(SavePdfPrimitiveEventArgs)
    PdfDictionary.Position
    PdfDictionary.Remove(PdfName)
    PdfDictionary.Remove(String)
    PdfDictionary.Status
    PdfDictionary.Values
    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
    PdfDictionary.ClonedObject

    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

    true if decrypted; otherwise, false.

    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
    PdfDictionary.Clone(PdfCrossTable)

    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
    PdfDictionary.Save(IPdfWriter)

    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.

    Implements

    IPdfPrimitive

    Extension Methods

    DateTimeExtension.ToDateTime(Object)
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved