public class

WebFontDownloader

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.WebFontDownloader

Class Overview

The class WebFontDownloader. static interface to control the behaviour of PDFNet web font downloading

Summary

Public Methods
static void clearCache()
clear any pre-cached font files residing in persistent storage.
static void disableDownloads()
Prevent PDFNet from accessing the network to download missing fonts.
static void enableDownloads()
Allow PDFNet to access the network to download missing fonts when possible.
static boolean isAvailable()
Find out whether the web font downloader is available in version of PDFNet.
static void preCacheAsync()
download and cache a base collection of fonts in a background thread.
static void setCustomWebFontURL(String url)
Set the root path into which the web font downloader will make requests.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static void clearCache ()

clear any pre-cached font files residing in persistent storage.

public static void disableDownloads ()

Prevent PDFNet from accessing the network to download missing fonts. It may still use previously downloaded fonts (which are cached on disk).

public static void enableDownloads ()

Allow PDFNet to access the network to download missing fonts when possible.

public static boolean isAvailable ()

Find out whether the web font downloader is available in version of PDFNet.

Returns
  • returns true if web font downloading can be done.

public static void preCacheAsync ()

download and cache a base collection of fonts in a background thread. Will not do anything if downloading is currently disabled.

public static void setCustomWebFontURL (String url)

Set the root path into which the web font downloader will make requests.

Parameters
url -- The root path into which the web font downloader will make requests.