ImageResolver.ResolveImageUrl Method

Creates an URL for the specified image.

public abstract string ResolveImageUrl(
	Image image,
	CancellationToken cancellationToken
)
Namespace
PdfToSvg
Package
PdfToSvg.NET (since v0.4.0)

Parameters

image  Image
Found image.
cancellationToken  CancellationToken
Token for monitoring cancellation requests.

Return Value

String

URL for the specified image.

Note
Browsers will not render external images in SVG files embedded using <img> elements. If you implement a custom image resolver and intend to use the SVG in HTML, data URLs are preferable.

Exceptions

ExceptionCondition
OperationCanceledExceptionThe operation was cancelled because the cancellation token was triggered.

See Also

ImageResolver Class
PdfToSvg Namespace