Click or drag to resize

PdfStreamOpen Method

Opens this PdfStream so its data can be accessed.

Namespace:  GemBox.Pdf.Objects
Assembly:  GemBox.Pdf (in GemBox.Pdf.dll) Version: 13.0.35.1000
Syntax
public Stream Open(
	PdfStreamDataMode mode,
	PdfStreamDataState state
)

Parameters

mode
Type: GemBox.Pdf.ObjectsPdfStreamDataMode
The mode in which PdfStream data should be opened.
state
Type: GemBox.Pdf.ObjectsPdfStreamDataState
The state in which PdfStream data should be opened.

Return Value

Type: Stream
A Stream that can be used to either read or write PdfStream data.
Exceptions
ExceptionCondition
InvalidOperationExceptionPdfStream is already opened. Make sure that Stream instance returned from Open(PdfStreamDataMode, PdfStreamDataState) method is disposed before calling Open(PdfStreamDataMode, PdfStreamDataState) method again.
NotSupportedExceptionPdfStream specifies external data (through F entry) that is currently not supported.
Remarks
Returned Stream must be disposed after it is no longer needed, otherwise, subsequent opening of PdfStream will fail.
See Also