PdfPage.SaveAsSvg(Stream, SvgConversionOptions, CancellationToken) Method
Saves the page as an SVG file.
public void SaveAsSvg( Stream stream, SvgConversionOptions? options = null, CancellationToken cancellationToken = default )
Parameters
- stream Stream
- Stream to write the SVG content to.
- options SvgConversionOptions (Optional)
- Additional configuration options for the conversion.
- cancellationToken CancellationToken (Optional)
- Token for monitoring cancellation requests.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | stream was null . |
PermissionException | Content extraction from this document is forbidden by the document author. Not thrown if the document is opened with the owner password. |
PdfException | The conversion failed, possibly because of a malformed PDF. |