Class WebFontDownloader
static interface to control the behaviour of PDFNet web font downloading
Inherited Members
Namespace: pdftron.PDF
Assembly: PDFTronDotNet.dll
Syntax
public static class WebFontDownloader
Methods
ClearCache()
clear any pre-cached font files residing in persistent storage.
Declaration
public static void ClearCache()
DisableDownloads()
Prevent PDFNet from accessing the network to download missing fonts. It may still use previously downloaded fonts (which are cached on disk).
Declaration
public static void DisableDownloads()
EnableDownloads()
Allow PDFNet to access the network to download missing fonts when possible.
Declaration
public static void EnableDownloads()
IsAvailable()
Find out whether the web font downloader is available in version of PDFNet.
Declaration
public static bool IsAvailable()
Returns
Type | Description |
---|---|
bool | returns true if web font downloading can be done |
PreCacheAsync()
download and cache a base collection of fonts in a background thread. Will not do anything if downloading is currently disabled.
Declaration
public static void PreCacheAsync()
SetCustomWebFontURL(string)
Set the root path into which the web font downloader will make requests.
Declaration
public static void SetCustomWebFontURL(string url)
Parameters
Type | Name | Description |
---|---|---|
string | url | The root path into which the web font downloader will make requests |