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 (see Password).
PdfExceptionThe conversion failed, possibly because of a malformed PDF.
OperationCanceledExceptionThe operation was cancelled because the cancellation token was triggered.

See Also

PdfPage Class
SaveAsSvg Overload
PdfToSvg Namespace