PdfPage.SaveAsSvg(String, SvgConversionOptions, CancellationToken) Method
Saves the page as an SVG file.
public void SaveAsSvg( string path, SvgConversionOptions? options = null, CancellationToken cancellationToken = default )
Parameters
- path String
- Path to output SVG file. If the file already exists, it will be overwritten.
- options SvgConversionOptions (Optional)
- Additional configuration options for the conversion.
- cancellationToken CancellationToken (Optional)
- Token for monitoring cancellation requests.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | path was null . |
ArgumentException | path was an empty string. |
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. |