PdfPage.SaveAsSvg(String, SvgConversionOptions, CancellationToken) Method

Saves the page as an SVG file.

public void SaveAsSvg(
	string path,
	SvgConversionOptions? options = null,
	CancellationToken cancellationToken = default
)
Namespace
PdfToSvg
Package
PdfToSvg.NET (since v0.2.0)

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

ExceptionCondition
ArgumentNullExceptionpath was null.
ArgumentExceptionpath was an empty string.
PermissionExceptionContent extraction from this document is forbidden by the document author. Not thrown if the document is opened with the owner password.
PdfExceptionThe conversion failed, possibly because of a malformed PDF.

See Also

PdfPage Class
SaveAsSvg Overload
PdfToSvg Namespace