[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.ContentStream

ContentStream Class

Base abstract class for classes representing content streams in a GcPdfDocument.

Implements
Namespace: GrapeCity.Documents.Pdf
Assembly: DS.Documents.Pdf.dll
Syntax
public abstract class ContentStream : PdfDictWrapper, IPdfDict
Public MustInherit Class ContentStream
    Inherits PdfDictWrapper
    Implements IPdfDict

Methods

Name Description
GetStream()

Gets the System.IO.Stream object containing the content of this ContentStream.

It is the caller's responsibility to dispose the returned stream after usage.

Important: this method returns null if the current ContentStream object is empty.

HasContent()

Returns a value indicating whether this content stream is not empty, i.e. it contains some PDF operators.

SetContent(MemoryStream, bool)

For internal use. Sets the content of this ContentStream from the specified MemoryStream. If copyStream is true then stream content will be copied and it should be disposed; otherwise (copyStream is false) the content stream will use passed stream.

Extension Methods