public class PreflightDocument extends PDDocument
Constructor and Description |
---|
PreflightDocument(COSDocument doc,
Format format)
Create a preflight document based on the COSDocument and load the default configuration for the given format.
|
PreflightDocument(COSDocument doc,
Format format,
PreflightConfiguration config)
Create a preflight document based on the COSDocument that will use the given configuration bean to process the
validation.
|
PreflightDocument(Format format)
Create an empty preflight document and load the default configuration for the given format.
|
PreflightDocument(Format format,
PreflightConfiguration cfg)
Create an empty preflight document that will use the given configuration bean to process the validation.
|
Modifier and Type | Method and Description |
---|---|
void |
addValidationError(ValidationResult.ValidationError error) |
PreflightContext |
getContext() |
ValidationResult |
getResult() |
Format |
getSpecification() |
void |
setContext(PreflightContext context) |
void |
setResult(ValidationResult result) |
void |
validate()
Check that PDDocument is a valid file according to the format given during the object creation.
|
addPage, addSignature, addSignature, addSignature, addSignature, addSignatureField, close, getCurrentAccessPermission, getDocument, getDocumentCatalog, getDocumentId, getDocumentInformation, getEncryption, getLastSignatureDictionary, getNumberOfPages, getPage, getPages, getResourceCache, getSignatureDictionaries, getSignatureFields, getVersion, importPage, isAllSecurityToBeRemoved, isEncrypted, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, load, protect, registerTrueTypeFontForClosing, removePage, removePage, save, save, save, saveIncremental, saveIncrementalForExternalSigning, setAllSecurityToBeRemoved, setDocumentId, setDocumentInformation, setEncryptionDictionary, setResourceCache, setVersion
public PreflightDocument(Format format) throws IOException
format
- IOException
public PreflightDocument(COSDocument doc, Format format)
doc
- format
- public PreflightDocument(Format format, PreflightConfiguration cfg) throws IOException
format
- cfg
- IOException
public PreflightDocument(COSDocument doc, Format format, PreflightConfiguration config)
doc
- format
- config
- public ValidationResult getResult()
public void setResult(ValidationResult result)
public void addValidationError(ValidationResult.ValidationError error)
public PreflightContext getContext()
public void setContext(PreflightContext context)
public void validate() throws ValidationException
ValidationException
public Format getSpecification()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.