PdfPage.SaveAsSvg(Stream, SvgConversionOptions, CancellationToken) Method

Saves the page as an SVG file.

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

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

ExceptionCondition
ArgumentNullExceptionstream was null.
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