| java.lang.Object | |
| ↳ | com.pdftron.pdf.config.PDFNetConfig |
This is a utility class for setting up PDFNet initially.
| 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
| ||||||||||
| String |
getExoticFontPluginPath(Context applicationContext)
Gets folder path for exotic font plugin used for universal conversion
| ||||||||||
| 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
| |||||||||||
Adds custom search location for PDFNet resources.
See addResourceSearchPath(String)
Gets default PDFNet configuration
Gets folder path for exotic font plugin used for universal conversion
| applicationContext | application context |
|---|
Gets custom search location for PDFNet resources.
See addResourceSearchPath(String)
Gets folder path for layout plugin used for universal conversion
| applicationContext | application context |
|---|
Gets folder path for layout plugin used for universal conversion
| applicationContext | application context |
|---|
Gets PDFNet configuration from XML resource
| applicationContext | application context |
|---|---|
| xmlRes | the XML resource Id |