[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Writer.PdfDocStreamWriter.EndStream

EndStream Method

EndStream(Stream, PdfName, IPdfDict, bool, EncryptionStreamType, bool)

Ends writing a PDF indirect object started with one of BeginObj(...) methods. If stream is not empty then writes PDF stream, including "Length" and "Filter" dictionary properties.

Declaration
public void EndStream(Stream stream, PdfName filterName, IPdfDict filterParams, bool useCompression = true, EncryptionStreamType est = EncryptionStreamType.Default, bool forceLengthAsDirectValue = false)
Public Sub EndStream(stream As Stream, filterName As PdfName, filterParams As IPdfDict, Optional useCompression As Boolean = True, Optional est As EncryptionStreamType = EncryptionStreamType.Default, Optional forceLengthAsDirectValue As Boolean = False)
Parameters
Type Name Description
Stream stream

The data to write.

PdfName filterName

The PDF filter used to decode stream data, can be null (no filter).

IPdfDict filterParams

The parameters of PDF filter, can be null.

bool useCompression

Indicates whether to compress data if compression specified for the GcPdfDocument.

EncryptionStreamType est

The stream type, indicates whether to encrypt data.

bool forceLengthAsDirectValue

If true then Length entry will be written as DIRECT VALUE.

EndStream(long)

Ends a PDF stream started with BeginStream(out long, out Stream, out bool).

Declaration
public void EndStream(long offset)
Public Sub EndStream(offset As Long)
Parameters
Type Name Description
long offset