Show / Hide Table of Contents

Class WebFontDownloader

static interface to control the behaviour of PDFNet web font downloading

Inheritance
System.Object
WebFontDownloader
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ToString()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: pdftron.PDF
Assembly: PDFNetAndroid.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
System.Boolean

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
System.String url

The root path into which the web font downloader will make requests

In This Article
Back to top Generated by DocFX