Package | Description |
---|---|
com.qoppa.pdf |
General classes used by different objects throughout the library.
|
com.qoppa.pdf.permissions |
This package contains classes related to document permissions.
|
com.qoppa.pdf.source |
PDFSource interface and implementations.
|
com.qoppa.pdfOptimizer |
jPDFOptimizer main classes, used to optimize PDF documents.
|
Modifier and Type | Class and Description |
---|---|
class |
PDFPasswordException
Exception thrown when an invalid password is entered.
|
class |
PDFPermissionException
Exception thrown when there is any permission error.
|
class |
PDFSecurityException
Exceptions related to security problems.
|
Modifier and Type | Method and Description |
---|---|
static DocumentInfo |
DocumentInfo.getDocumentInfo(InputStream inStream,
IPassword password)
Static method to get the document information from a document from an InputStream.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(String fileName,
IPassword passwords)
Static method to get the document information from a document in a file.
|
static DocumentInfo |
DocumentInfo.getDocumentInfo(URL url,
IPassword password)
Static method to get the document information from a document from a URL.
|
abstract void |
DocumentInfo.setAuthor(String author)
Set the document's author.
|
abstract void |
DocumentInfo.setCreationDate(Date creationDate)
Set the document's creation date.
|
abstract void |
DocumentInfo.setCreator(String creator)
Set the document's creator.
|
abstract void |
DocumentInfo.setCustomProperty(String key,
String value)
Sets a custom application property in the document info for the document.
|
abstract void |
DocumentInfo.setKeywords(String keywords)
Set the document's keywords.
|
abstract void |
DocumentInfo.setModifiedDate(Date modDate)
Deprecated.
The document's modified date will be set by the library at the time the document is saved.
|
abstract void |
DocumentInfo.setProducer(String producer)
Set the document's producer.
|
abstract void |
DocumentInfo.setSubject(String subject)
Set the document's subject.
|
abstract void |
DocumentInfo.setTitle(String title)
Sets the document's title.
|
abstract void |
DocumentInfo.setXMPMetadata(byte[] xmpData)
Sets the XMP metadata block in the document.
|
abstract void |
DocumentInfo.setXMPMetadata(String xmpString,
String charsetName)
Sets the XMP metadata block in the document.
|
Constructor and Description |
---|
DocMDPPermissions(int permissionLevel)
Create a new DocMDPPermissions object.
|
Constructor and Description |
---|
FilePDFSource(File source) |
FilePDFSource(String fileName) |
MBBPDFSource(File source) |
MBBPDFSource(String fileName) |
RAFilePDFSource(File source)
Creates a new
RAFilePDFSource instance using the given
File . |
RAFilePDFSource(File source,
boolean lockFile)
Creates a new
RAFilePDFSource instance using the given
File and boolean parameter indicating if the file should be
locked. |
RAFilePDFSource(String fileName)
Creates a new
RAFilePDFSource instance using the given
fileName. |
RAFilePDFSource(String fileName,
boolean lockFile)
Creates a new
RAFilePDFSource instance using the given
fileName and boolean parameter indicating if the file should be locked. |
URLOnDemandPDFSource(URL url,
File tempFile)
Create a PDFSource to read a PDF from a URL "on demand".
|
URLOnDemandPDFSource(URL url,
int storeType)
Create a PDFSource to read a PDF from a URL "on demand".
|
URLPDFSource(URL url) |
Modifier and Type | Method and Description |
---|---|
int |
PDFOptimizer.getPageCount()
Returns the number of pages in this document.
|
OptimizeResults |
PDFOptimizer.optimize(OptSettings optInfo,
OutputStream outStream)
Optimizes and saves this document to an output stream.
|
OptimizeResults |
PDFOptimizer.optimize(OptSettings optInfo,
OutputStream outStream,
File log)
Deprecated.
As of 2017R1 replaced by
PDFOptimizer.optimize(OptSettings, OutputStream) . |
OptimizeResults |
PDFOptimizer.optimize(OptSettings optInfo,
String outFile)
Optimize and save this document to a file.
|
OptimizeResults |
PDFOptimizer.optimize(OptSettings optInfo,
String outFile,
File log)
Deprecated.
As of 2017R1 replaced by
PDFOptimizer.optimize(OptSettings, String) . |
boolean |
PDFOptimizer.usePermissionsPassword(String ownerPassword)
Tells the PDFOptimizer object that the permissions password is known, so all
permissions are granted.
|
Constructor and Description |
---|
PDFOptimizer(InputStream inStream,
IPassword password)
Creates a PDFOptimizer object by loading a PDF document from an InputStream.
|
PDFOptimizer(PDFSource pdfSource,
IPassword password)
Creates a PDFOptimizer object by loading a PDF document from a
PDFSource object. |
PDFOptimizer(String fileName,
IPassword password)
Loads a PDF document from a file.
|
PDFOptimizer(URL url,
IPassword password)
Creates a PDFOptimizer object by loading a PDF document from a URL.
|