PdfEmbeddedFileOpenWrite Method |
Namespace: SautinSoft.PdfAssembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.11.26
Syntax public Stream OpenWrite(
bool compress = true
)
Public Function OpenWrite (
Optional compress As Boolean = true
) As Stream
Parameters
- compress Boolean (Optional)
- If set to then the written data is compressed using the FlateDecode data compression method.
Return Value
Stream
A
Stream that can be used to write
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 OpenWrite(Boolean) method again. |
Remarks
Returned
Stream must be disposed after it is no longer needed, otherwise, subsequent opening of
PdfEmbeddedFile will fail.
See Also