[]
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.
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)
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. |
Ends a PDF stream started with BeginStream(out long, out Stream, out bool).
public void EndStream(long offset)
Public Sub EndStream(offset As Long)
Type | Name | Description |
---|---|---|
long | offset |