FontResolver.ResolveFontAsync Method

Resolves asynchronously which font to be used for text in the SVG, for a given source PDF font.

public virtual Task<Font> ResolveFontAsync(
	SourceFont sourceFont,
	CancellationToken cancellationToken
)
Namespace
PdfToSvg
Package
PdfToSvg.NET (since v0.8.0)

Parameters

sourceFont  SourceFont
Provides information about the source PDF font.
cancellationToken  CancellationToken
Token for monitoring cancellation requests.

Return Value

Task<Font>
The font to be used in the resulting SVG markup. Can be a LocalFont or WebFont.

See Also

FontResolver Class
PdfToSvg Namespace