public class

PDFNetConfig

extends Object
java.lang.Object
   ↳ com.pdftron.pdf.config.PDFNetConfig

Class Overview

This is a utility class for setting up PDFNet initially.

If any of the properties are changed via PDFNet, this default config class will not get updated.

Summary

Public Constructors
PDFNetConfig()
PDFNetConfig(Context context, int xmlRes)
Public Methods
void addExtraResourcePaths(File extraResourcePath)
Adds custom search location for PDFNet resources.
static PDFNetConfig getDefaultConfig()
Gets default PDFNet configuration
ArrayList<File> getExtraResourcePaths()
Gets custom search location for PDFNet resources.
String getLayoutPluginPath(Context applicationContext)
Gets folder path for layout plugin used for universal conversion
String getLayoutSmartPluginPath(Context applicationContext)
Gets folder path for layout plugin used for universal conversion
String getPersistentCachePath()
See com.pdftron.pdf.PDFNet#setPersistentCachePath(String)
String getTempPath()
See com.pdftron.pdf.PDFNet#setTempPath(String)
int getViewerCacheMaxSize()
See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)
boolean isDiskCachingEnabled()
See com.pdftron.pdf.PDFNet#setDefaultDiskCachingEnabled(boolean)
boolean isJavaScriptEnabled()
See com.pdftron.pdf.PDFNet#enableJavaScript(boolean)
boolean isViewerCacheOnDisk()
See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)
static PDFNetConfig loadFromXML(Context applicationContext, int xmlRes)
Gets PDFNet configuration from XML resource
void setDiskCachingEnabled(boolean diskCachingEnabled)
See com.pdftron.pdf.PDFNet#setDefaultDiskCachingEnabled(boolean)
void setJavaScriptEnabled(boolean javaScriptEnabled)
See com.pdftron.pdf.PDFNet#enableJavaScript(boolean)
void setPersistentCachePath(String persistentCachePath)
See com.pdftron.pdf.PDFNet#setPersistentCachePath(String)
void setTempPath(String tempPath)
See com.pdftron.pdf.PDFNet#setTempPath(String)
void setViewerCacheMaxSize(int viewerCacheMaxSize)
See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)
void setViewerCacheOnDisk(boolean viewerCacheOnDisk)
See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public PDFNetConfig ()

public PDFNetConfig (Context context, int xmlRes)

Public Methods

public void addExtraResourcePaths (File extraResourcePath)

Adds custom search location for PDFNet resources. See com.pdftron.pdf.PDFNet#addResourceSearchPath(String)

public static PDFNetConfig getDefaultConfig ()

Gets default PDFNet configuration

Returns
  • the PDFNet configuration

public ArrayList<File> getExtraResourcePaths ()

Gets custom search location for PDFNet resources. See com.pdftron.pdf.PDFNet#addResourceSearchPath(String)

public String getLayoutPluginPath (Context applicationContext)

Gets folder path for layout plugin used for universal conversion

Parameters
applicationContext application context
Returns
  • folder path

public String getLayoutSmartPluginPath (Context applicationContext)

Gets folder path for layout plugin used for universal conversion

Parameters
applicationContext application context
Returns
  • folder path

public String getPersistentCachePath ()

See com.pdftron.pdf.PDFNet#setPersistentCachePath(String)

public String getTempPath ()

See com.pdftron.pdf.PDFNet#setTempPath(String)

public int getViewerCacheMaxSize ()

See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)

public boolean isDiskCachingEnabled ()

See com.pdftron.pdf.PDFNet#setDefaultDiskCachingEnabled(boolean)

public boolean isJavaScriptEnabled ()

See com.pdftron.pdf.PDFNet#enableJavaScript(boolean)

public boolean isViewerCacheOnDisk ()

See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)

public static PDFNetConfig loadFromXML (Context applicationContext, int xmlRes)

Gets PDFNet configuration from XML resource

Parameters
applicationContext application context
xmlRes the XML resource Id
Returns
  • the PDFNet configuration

public void setDiskCachingEnabled (boolean diskCachingEnabled)

See com.pdftron.pdf.PDFNet#setDefaultDiskCachingEnabled(boolean)

public void setJavaScriptEnabled (boolean javaScriptEnabled)

See com.pdftron.pdf.PDFNet#enableJavaScript(boolean)

public void setPersistentCachePath (String persistentCachePath)

See com.pdftron.pdf.PDFNet#setPersistentCachePath(String)

public void setTempPath (String tempPath)

See com.pdftron.pdf.PDFNet#setTempPath(String)

public void setViewerCacheMaxSize (int viewerCacheMaxSize)

See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)

public void setViewerCacheOnDisk (boolean viewerCacheOnDisk)

See com.pdftron.pdf.PDFNet#setViewerCache(int, boolean)