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()
String getTempPath()
int getViewerCacheMaxSize()
boolean isDiskCachingEnabled()
boolean isJavaScriptEnabled()
boolean isViewerCacheOnDisk()
static PDFNetConfig loadFromXML(Context applicationContext, int xmlRes)
Gets PDFNet configuration from XML resource
void setDiskCachingEnabled(boolean diskCachingEnabled)
void setJavaScriptEnabled(boolean javaScriptEnabled)
void setPersistentCachePath(String persistentCachePath)
void setTempPath(String tempPath)
void setViewerCacheMaxSize(int viewerCacheMaxSize)
void setViewerCacheOnDisk(boolean viewerCacheOnDisk)
[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 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 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 ()

public String getTempPath ()

public int getViewerCacheMaxSize ()

public boolean isDiskCachingEnabled ()

public boolean isJavaScriptEnabled ()

public boolean isViewerCacheOnDisk ()

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)

public void setJavaScriptEnabled (boolean javaScriptEnabled)

public void setPersistentCachePath (String persistentCachePath)

public void setTempPath (String tempPath)

public void setViewerCacheMaxSize (int viewerCacheMaxSize)

public void setViewerCacheOnDisk (boolean viewerCacheOnDisk)