Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Writer Namespace / PdfDocStreamWriter Class / EndStream Method / EndStream(Stream,PdfName,IPdfDict,Boolean,EncryptionStreamType,Boolean) Method
The data to write.
The PDF filter used to decode stream data, can be null (no filter).
The parameters of PDF filter, can be null.
Indicates whether to compress data if compression specified for the GrapeCity.Documents.Pdf.GcPdfDocument.
The stream type, indicates whether to encrypt data.
If true then Length entry will be written as DIRECT VALUE.

In This Topic
    EndStream(Stream,PdfName,IPdfDict,Boolean,EncryptionStreamType,Boolean) Method
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Overloads Sub EndStream( _
       ByVal stream As System.IO.Stream, _
       ByVal filterName As PdfName, _
       ByVal filterParams As IPdfDict, _
       Optional ByVal useCompression As System.Boolean, _
       Optional ByVal est As EncryptionStreamType, _
       Optional ByVal forceLengthAsDirectValue As System.Boolean _
    ) 
    public void EndStream( 
       System.IO.Stream stream,
       PdfName filterName,
       IPdfDict filterParams,
       System.bool useCompression,
       EncryptionStreamType est,
       System.bool forceLengthAsDirectValue
    )

    Parameters

    stream
    The data to write.
    filterName
    The PDF filter used to decode stream data, can be null (no filter).
    filterParams
    The parameters of PDF filter, can be null.
    useCompression
    Indicates whether to compress data if compression specified for the GrapeCity.Documents.Pdf.GcPdfDocument.
    est
    The stream type, indicates whether to encrypt data.
    forceLengthAsDirectValue
    If true then Length entry will be written as DIRECT VALUE.
    See Also