[]
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)
| 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)
| Type | Name | Description |
|---|---|---|
| long | offset |