Click or drag to resize

PdfEmbeddedFileOpenRead Method

Opens this PdfEmbeddedFile so its data can be read. The data is automatically uncompressed, if needed.

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.8.8
Syntax
public Stream OpenRead()

Return Value

Stream
A Stream that can be used to read PdfEmbeddedFile data.
Exceptions
ExceptionCondition
InvalidOperationExceptionPdfStream is already opened. Make sure that Stream instance returned from OpenRead or OpenWrite(Boolean) method is disposed before calling OpenRead 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 PdfEmbeddedFile will fail.
See Also