Library Class Documentation
classLibraryNamespace:com::datalogics::PDFL
Detailed Description
Used to create a new instance of a library object or change properties. A Library object can be used to create a new instance of a library or change the properties of an existing library.
Uses types
Constructor & Destructor Documentation
Library
Library()Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(java.util.EnumSet< LibraryFlags >flags)Parameters
flags: java.util.EnumSet< LibraryFlags >PDF Library initialization flags, optional
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(java.util.List< String >fontPaths)Parameters
fontPaths: java.util.List< String >list of directories to search for fonts
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(java.util.List< String >fontPaths, java.util.EnumSet< LibraryFlags >flags)Parameters
fontPaths: java.util.List< String >list of directories to search for fonts
flags: java.util.EnumSet< LibraryFlags >PDF Library initialization flags, optional
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(java.util.List< String >fontPaths, StringCMapPath, StringUnicodePath, java.util.EnumSet< LibraryFlags >flags)Parameters
fontPaths: java.util.List< String >list of directories to search for fonts
CMapPath: Stringdirectory to search for CMap files (pass an empty string to use the default)
UnicodePath: Stringdirectory to search for Unicode mapping files (pass an empty string to use the default)
flags: java.util.EnumSet< LibraryFlags >PDF Library initialization flags, optional
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(java.util.List< String >fontPaths, StringCMapPath, StringUnicodePath, StringColorProfilePath, java.util.EnumSet< LibraryFlags >flags)Parameters
fontPaths: java.util.List< String >list of directories to search for fonts
CMapPath: Stringdirectory to search for CMap files (pass an empty string to use the default)
UnicodePath: Stringdirectory to search for Unicode mapping files (pass an empty string to use the default)
ColorProfilePath: Stringdirectory to search for Color Profile files (pass an empty string to use the default)
flags: java.util.EnumSet< LibraryFlags >PDF Library initialization flags, optional
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(String[]fontPaths)Parameters
fontPaths: String[]list of directories to search for fonts
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Library
Library(String[]fontPaths, java.util.EnumSet< LibraryFlags >flags)Parameters
fontPaths: String[]list of directories to search for fonts
flags: java.util.EnumSet< LibraryFlags >PDF Library initialization flags, optional
Initialize the PDF Library on this thread. Note that each thread needs its own instance of the library.
Multiple Library objects can be created on a thread, but they all refer to the same underlying instantiation of the library.
Member Function Documentation
DisposeChildren
voidDisposeChildren()Returns:
void[static initializer]
static void[static initializer]()[static initializer]
static void[static initializer]()changeWorkingSpaceCMYK
voidchangeWorkingSpaceCMYK(ColorProfilecolorProfile)Parameters
colorProfile: ColorProfileThe Color Profile to be used.
Returns:
voidSets the current CMYK working space to the specified ICC profile.
changeWorkingSpaceCMYK
voidchangeWorkingSpaceCMYK(StringprofilePath)Parameters
profilePath: StringThe path on disk of the Color Profile to be used.
Returns:
voidSets the current CMYK working space to the specified ICC profile.
changeWorkingSpaceGray
voidchangeWorkingSpaceGray(ColorProfilecolorProfile)Parameters
colorProfile: ColorProfileThe Color Profile to be used.
Returns:
voidSets the current Gray working space to the specified ICC profile.
changeWorkingSpaceGray
voidchangeWorkingSpaceGray(StringprofilePath)Parameters
profilePath: StringThe path on disk of the Color Profile to be used.
Returns:
voidSets the current Gray working space to the specified ICC profile.
changeWorkingSpaceRGB
voidchangeWorkingSpaceRGB(ColorProfilecolorProfile)Parameters
colorProfile: ColorProfileThe Color Profile to be used.
Returns:
voidSets the current RGB working space to the specified ICC profile.
changeWorkingSpaceRGB
voidchangeWorkingSpaceRGB(StringprofilePath)Parameters
profilePath: StringThe path on disk of the Color Profile to be used.
Returns:
voidSets the current RGB working space to the specified ICC profile.
delete
synchronized voiddelete(Booleandisposing)Parameters
disposing: Boolean
Returns:
synchronized voiddelete
synchronized voiddelete()Returns:
synchronized voidDestroy this handle to the PDF Library. Also terminate the library if this is the last Library object on this thread.
enableLicensedBehavior
static booleanenableLicensedBehavior(Stringarg0)Parameters
arg0: String
Returns:
true if the licensed behavior has been successfully enabled. NOTE: When using the Render bypass key, this requires you also set the BypassCopyPerm property to true of the DrawParams or PageImageParams classes for it to work.This is used to turn on licensed behaviors in DLE.The function parameter is a base64-encoded string containing the encrypted licensed key.
finalize
voidfinalize()Returns:
voidDestroy this handle to the PDF Library. Also terminate the library if this is the last Library object on this thread.
getAPDFLVersion
static StringgetAPDFLVersion()Returns:
StringThe version of the C/C++ SDK, as reported in legacy versions of APDFL.
E.g., 18.0.5P1a
getAllowOpeningXFA
booleangetAllowOpeningXFA()Returns:
booleanAllow opening PDF files that contain XFA forms. By default, an exception will be raised when attempting to open this type of document.
getAllowRelaxedSyntax
booleangetAllowRelaxedSyntax()Returns:
true if these minor errors are ignored.Check to see if minor parsing errors are ignored while opening PDF files.
getDLEVersion
static StringgetDLEVersion()Returns:
StringThe version of the .NET/Java SDK, as reported in legacy versions of APDFL.
E.g., 18.0.5.0
getDefaultTempPath
StringgetDefaultTempPath()Returns:
string with current default directory for temporary files, or null if none was set by the user.Gets the default temporary directory.
getDefaultTempStore
TempStoreTypegetDefaultTempStore()Returns:
current temporary storage type.Gets default temporary storage.PDFL uses Disk storage type by default.
getDefaultTempStoreMemLimit
intgetDefaultTempStoreMemLimit()Returns:
current memory limit. It returns zero value for cases when unlimited memory amount is used or when current storage type is Disk. Call DefaultTempStore to get the exact meaning of the zero valueGets current memory limit.
getFormsExtensionVersion
static StringgetFormsExtensionVersion()Returns:
The Forms Extension VersionForms Extension Version
getInstallLocation
static StringgetInstallLocation()Returns:
the installation location as a UTF-8 path.The installation location.
This is inferred from the location of the native code and returned as a UTF-8 path.
getLicenseKey
static StringgetLicenseKey()Returns:
StringA string containing a license key, as an alternative to using a license file. Only applicable to License-Managed versions.
getLogParams
LogParamsgetLogParams()Returns:
The LogParams object which contains currently used logging settings.Gets LogParams object with preferences for logging.
getResourceDirectory
static StringgetResourceDirectory()Returns:
the resource directory as a UTF-8 pathThe resource directory.
initialized
static booleaninitialized()Returns:
true if the PDF Library is initialized on this threadCheck to see if the library is initialized
isFormsExtensionAvailable
booleanisFormsExtensionAvailable()Returns:
true if the Forms Extension dependencies are present, and false if they are not.Validate the Forms Extension dependencies are present. Indicates if all of the necessary dependencies are present for the Forms extension.
loadJNI
static voidloadJNI()Returns:
voidsetAllowOpeningXFA
voidsetAllowOpeningXFA(booleanxfaSetting)Parameters
xfaSetting: boolean
Returns:
voidAllow opening PDF files that contain XFA forms. By default, an exception will be raised when attempting to open this type of document.
setAllowRelaxedSyntax
voidsetAllowRelaxedSyntax(booleanallowRelaxedSyntax)Parameters
allowRelaxedSyntax: boolean
Returns:
voidIgnore minor parsing errors while opening PDF files.By default, exceptions are raised when such errors occur.
setDefaultTempPath
voidsetDefaultTempPath(StringdefTempPath)Parameters
defTempPath: String
Returns:
voidSets the default temporary path to the directory indicated by the specified path name. Pass null as the path to use the system default temporary file directory.
setDefaultTempStore
voidsetDefaultTempStore(TempStoreTypetempStore)Parameters
tempStore: TempStoreTypetemporary storage type.
Returns:
voidAllows to switch between different types of temporary storages. Use Disk type to turn off in-memory file system usage. Use Memory type to turn on in-memory file system with unlimited RAM amount by default.
setDefaultTempStoreMemLimit
voidsetDefaultTempStoreMemLimit(intmemoryLimit)Parameters
memoryLimit: int
Returns:
voidSets memory limit for Memory storage type. Accepts any positive integer to set threshold for using RAM in kilobytes. When occupied memory exceeds specified threshold, temporary files creation will be redirected to physical disk.
Throws an exception if current storage type is Disk. Throws an exception if input value less than 0;
setLicenseKey
static voidsetLicenseKey(Stringlicenses)Parameters
licenses: String
Returns:
voidA string containing a license, as an alternative to using a license file. Only applicable to License-Managed versions.
setLogParams
voidsetLogParams(LogParamslogParams)Parameters
logParams: LogParamsthe new parameters for logging.
Returns:
voidSets LogParams object with preferences for logging.
terminate
voidterminate()Returns:
voidTerminate the library with regard to this handle. (Note that if there are other Library objects in this thread, they may keep the library initialized.