PdfEmbeddedFileOpenRead Method |
Opens this
PdfEmbeddedFile so its data can be read. The data is automatically uncompressed, if needed.
Namespace: SautinSoft.PdfAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax Public Function OpenRead As Stream
Return Value
Stream
A
Stream that can be used to read
PdfEmbeddedFile data.
Exceptions Exception | Condition |
---|
InvalidOperationException | PdfStream is already opened. Make sure that Stream instance returned from OpenRead or OpenWrite(Boolean) method is disposed before calling OpenRead method again. |
NotSupportedException | PdfStream 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