public class PreflightContext extends Object implements Closeable
Modifier and Type | Field and Description |
---|---|
protected PreflightConfiguration |
config |
protected PreflightDocument |
document
The PDFbox object representation of the PDF source.
|
protected Map<COSBase,FontContainer> |
fontContainers
Contains the list of font name embedded in the PDF document.
|
protected boolean |
iccProfileAlreadySearched |
protected ICCProfileWrapper |
iccProfileWrapper
This wrapper contains the ICCProfile used by the PDF file.
|
protected XMPMetadata |
metadata
MetaData of the current pdf file.
|
protected DataSource |
source
The datasource to load the document from
|
protected PreflightPath |
validationPath |
Constructor and Description |
---|
PreflightContext(DataSource source)
Create the DocumentHandler using the DataSource which represent the PDF file to check.
|
PreflightContext(DataSource source,
PreflightConfiguration configuration) |
protected Map<COSBase,FontContainer> fontContainers
protected PreflightDocument document
protected DataSource source
protected ICCProfileWrapper iccProfileWrapper
protected boolean iccProfileAlreadySearched
protected XMPMetadata metadata
protected PreflightConfiguration config
protected PreflightPath validationPath
public PreflightContext(DataSource source)
source
- public PreflightContext(DataSource source, PreflightConfiguration configuration)
public XMPMetadata getMetadata()
public void setMetadata(XMPMetadata metadata)
metadata
- the metadata to setpublic PreflightDocument getDocument()
public XrefTrailerResolver getXrefTableResolver()
public void setXrefTableResolver(XrefTrailerResolver xrefTableResolver)
public void setDocument(PreflightDocument document)
document
- public DataSource getSource()
public boolean isComplete()
public void addFontContainer(COSBase cBase, FontContainer fc)
fKey
- fc
- public FontContainer getFontContainer(COSBase cBase)
fontContainers
map, the null value is returned.fKey
- public ICCProfileWrapper getIccProfileWrapper()
public void setIccProfileWrapper(ICCProfileWrapper iccProfileWrapper)
iccProfileWrapper
- the iccProfileWrapper to setpublic PreflightConfiguration getConfig()
public void setConfig(PreflightConfiguration config)
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public void addValidationError(ValidationResult.ValidationError error)
error
- public void addValidationErrors(List<ValidationResult.ValidationError> errors)
error
- public PreflightPath getValidationPath()
public void setValidationPath(PreflightPath validationPath)
public boolean isIccProfileAlreadySearched()
public void setIccProfileAlreadySearched(boolean iccProfileAlreadySearched)
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.