Click or drag to resize

PdfEmbeddedFileOpenWrite Method

Opens this PdfEmbeddedFile so its data can be written.

Namespace: SautinSoft.Pdf
Assembly: SautinSoft.Pdf (in SautinSoft.Pdf.dll) Version: 2024.8.8
Syntax
public Stream OpenWrite(
	bool compress = true
)

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
ExceptionCondition
InvalidOperationExceptionPdfStream 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