public class Library
extends java.lang.Object
| Constructor and Description |
|---|
Library()
Initialize the PDF Library on this thread.
|
Library(java.util.EnumSet<LibraryFlags> flags)
Initialize the PDF Library on this thread.
|
Library(java.util.List<java.lang.String> fontPaths)
Initialize the PDF Library on this thread.
|
Library(java.util.List<java.lang.String> fontPaths,
java.util.EnumSet<LibraryFlags> flags)
Initialize the PDF Library on this thread.
|
Library(java.util.List<java.lang.String> fontPaths,
java.lang.String CMapPath,
java.lang.String UnicodePath,
java.util.EnumSet<LibraryFlags> flags)
Initialize the PDF Library on this thread.
|
Library(java.util.List<java.lang.String> fontPaths,
java.lang.String CMapPath,
java.lang.String UnicodePath,
java.lang.String ColorProfilePath,
java.util.EnumSet<LibraryFlags> flags)
Initialize the PDF Library on this thread.
|
Library(java.lang.String[] fontPaths)
Initialize the PDF Library on this thread.
|
Library(java.lang.String[] fontPaths,
java.util.EnumSet<LibraryFlags> flags)
Initialize the PDF Library on this thread.
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeWorkingSpaceCMYK(ColorProfile colorProfile)
Sets the current CMYK working space to the specified ICC profile.
|
void |
changeWorkingSpaceCMYK(java.lang.String profilePath)
Sets the current CMYK working space to the specified ICC profile.
|
void |
changeWorkingSpaceGray(ColorProfile colorProfile)
Sets the current Gray working space to the specified ICC profile.
|
void |
changeWorkingSpaceGray(java.lang.String profilePath)
Sets the current Gray working space to the specified ICC profile.
|
void |
changeWorkingSpaceRGB(ColorProfile colorProfile)
Sets the current RGB working space to the specified ICC profile.
|
void |
changeWorkingSpaceRGB(java.lang.String profilePath)
Sets the current RGB working space to the specified ICC profile.
|
void |
delete()
Destroy this handle to the PDF Library.
|
static boolean |
enableLicensedBehavior(java.lang.String arg0)
This is used to turn on licensed behaviors in DLE. The function parameter is a base64-encoded string containing the encrypted licensed key.
|
boolean |
getAllowOpeningXFA()
Allow opening PDF files that contain XFA forms.
|
boolean |
getAllowRelaxedSyntax()
Check to see if minor parsing errors are ignored while opening PDF files.
|
static java.lang.String |
getAPDFLVersion()
The version of the C/C++ SDK, as reported in legacy versions of APDFL.
|
java.lang.String |
getDefaultTempPath()
Gets the default temporary directory.
|
TempStoreType |
getDefaultTempStore()
Gets default temporary storage. PDFL uses Disk storage type by default.
|
int |
getDefaultTempStoreMemLimit()
Gets current memory limit.
|
static java.lang.String |
getDLEVersion()
The version of the .NET/Java SDK, as reported in legacy versions of APDFL.
|
static java.lang.String |
getFormsExtensionVersion()
Forms Extension Version
|
static java.lang.String |
getInstallLocation()
The installation location.
|
static java.lang.String |
getLicenseKey()
A string containing a license key, as an alternative to using a license file.
|
LogParams |
getLogParams()
Gets LogParams object with preferences for logging.
|
static java.lang.String |
getResourceDirectory()
The resource directory.
|
static boolean |
initialized()
Check to see if the library is initialized
|
boolean |
isFormsExtensionAvailable()
Validate the Forms Extension dependencies are present.
|
void |
setAllowOpeningXFA(boolean xfaSetting)
Allow opening PDF files that contain XFA forms.
|
void |
setAllowRelaxedSyntax(boolean allowRelaxedSyntax)
Ignore minor parsing errors while opening PDF files. By default, exceptions are raised when such errors occur.
|
void |
setDefaultTempPath(java.lang.String defTempPath)
Sets the default temporary path to the directory indicated by the specified path name.
|
void |
setDefaultTempStore(TempStoreType tempStore)
Allows to switch between different types of temporary storages.
|
void |
setDefaultTempStoreMemLimit(int memoryLimit)
Sets memory limit for Memory storage type.
|
static void |
setLicenseKey(java.lang.String licenses)
A string containing a license, as an alternative to using a license file.
|
void |
setLogParams(LogParams logParams)
Sets LogParams object with preferences for logging.
|
void |
terminate()
Terminate the library with regard to this handle.
|
public Library(java.lang.String[] fontPaths)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
fontPaths - list of directories to search for fontspublic Library(java.lang.String[] fontPaths,
java.util.EnumSet<LibraryFlags> flags)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
fontPaths - list of directories to search for fontsflags - PDF Library initialization flags, optionalpublic Library()
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
public Library(java.util.EnumSet<LibraryFlags> flags)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
flags - PDF Library initialization flags, optionalpublic Library(java.util.List<java.lang.String> fontPaths)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
fontPaths - list of directories to search for fontspublic Library(java.util.List<java.lang.String> fontPaths,
java.util.EnumSet<LibraryFlags> flags)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
fontPaths - list of directories to search for fontsflags - PDF Library initialization flags, optionalpublic Library(java.util.List<java.lang.String> fontPaths,
java.lang.String CMapPath,
java.lang.String UnicodePath,
java.util.EnumSet<LibraryFlags> flags)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
fontPaths - list of directories to search for fontsCMapPath - directory to search for CMap files (pass an empty string to use the default)UnicodePath - directory to search for Unicode mapping files (pass an empty string to use the default)flags - PDF Library initialization flags, optionalpublic Library(java.util.List<java.lang.String> fontPaths,
java.lang.String CMapPath,
java.lang.String UnicodePath,
java.lang.String ColorProfilePath,
java.util.EnumSet<LibraryFlags> flags)
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
fontPaths - list of directories to search for fontsCMapPath - directory to search for CMap files (pass an empty string to use the default)UnicodePath - directory to search for Unicode mapping files (pass an empty string to use the default)ColorProfilePath - directory to search for Color Profile files (pass an empty string to use the default)flags - PDF Library initialization flags, optionalpublic void delete()
public void terminate()
public static boolean initialized()
public static boolean enableLicensedBehavior(java.lang.String arg0)
public static java.lang.String getDLEVersion()
E.g., 18.0.4.29
public static java.lang.String getAPDFLVersion()
E.g., 18.0.4P2f
public static java.lang.String getInstallLocation()
This is inferred from the location of the native code.
public static java.lang.String getResourceDirectory()
public static void setLicenseKey(java.lang.String licenses)
public static java.lang.String getLicenseKey()
public boolean getAllowOpeningXFA()
public void setAllowOpeningXFA(boolean xfaSetting)
public java.lang.String getDefaultTempPath()
public void setDefaultTempPath(java.lang.String defTempPath)
public TempStoreType getDefaultTempStore()
public void setDefaultTempStore(TempStoreType tempStore)
tempStore - temporary storage type.public int getDefaultTempStoreMemLimit()
public void setDefaultTempStoreMemLimit(int memoryLimit)
Throws an exception if current storage type is Disk. Throws an exception if input value less than 0;
memoryLimit - public LogParams getLogParams()
public void setLogParams(LogParams logParams)
logParams - the new parameters for logging.public boolean getAllowRelaxedSyntax()
public void setAllowRelaxedSyntax(boolean allowRelaxedSyntax)
public void changeWorkingSpaceRGB(java.lang.String profilePath)
profilePath - The path on disk of the Color Profile to be used.public void changeWorkingSpaceRGB(ColorProfile colorProfile)
colorProfile - The Color Profile to be used.public void changeWorkingSpaceCMYK(java.lang.String profilePath)
profilePath - The path on disk of the Color Profile to be used.public void changeWorkingSpaceCMYK(ColorProfile colorProfile)
colorProfile - The Color Profile to be used.public void changeWorkingSpaceGray(java.lang.String profilePath)
profilePath - The path on disk of the Color Profile to be used.public void changeWorkingSpaceGray(ColorProfile colorProfile)
colorProfile - The Color Profile to be used.public boolean isFormsExtensionAvailable()
public static java.lang.String getFormsExtensionVersion()