[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.PageContentStream

Class PageContentStream

Namespace
GrapeCity.Documents.Pdf
Assembly
GcDocs.Pdf.dll

Defines content stream of the page of GcPdfDocument.

public class PageContentStream : ContentStream, IPdfDict
Inheritance
object
PageContentStream
Implements
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Extension Methods

Constructors

PageContentStream(GcPdfDocument)

Initializes a new instance of the PageContentStream class.

public PageContentStream(GcPdfDocument doc)

Parameters

doc GcPdfDocument

The GcPdfDocument owning this object.

Properties

Doc

Gets the GcPdfDocument owning this object.

public GcPdfDocument Doc { get; }

Property Value

GcPdfDocument

Methods

GetGraphics(Page)

Returns an instance of GcPdfGraphics that can be used to generate content of this PageContentStream.

public GcPdfGraphics GetGraphics(Page page)

Parameters

page Page

The Page containing this PageContentStream.

Returns

GcPdfGraphics

The GcPdfGraphics.

GetStream()

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

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

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

Note 2: in StartDoc/EndDoc mode this method is not supported and will throw an exception.

Note 3: In some rare cases a page's content stream can break inside an operator, for example, some operands are in Page.ContentStreams[0] and other operands are in Page.ContentStreams[1]. This is weird but does not contradict the PDF Specification. To avoid such situations use GetStream().

public override Stream GetStream()

Returns

System.IO.Stream