public class Overlay extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Overlay.Position
Possible location of the overlayed pages: foreground or background.
|
| Constructor and Description |
|---|
Overlay() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultOverlayFile()
Returns the default overlay file.
|
String |
getInputFile()
Returns the input file.
|
String |
getOutputFile()
Returns the output file.
|
void |
overlay(Map<Integer,String> specificPageOverlayFile,
boolean useNonSeqParser)
This will add overlays to a documents.
|
void |
setAllPagesOverlayFile(String allPagesOverlayFile)
Sets the all pages overlay file.
|
void |
setDefaultOverlayFile(String defaultOverlayFile)
Sets the default overlay file.
|
void |
setEvenPageOverlayFile(String evenPageOverlayFile)
Sets the even page overlay file.
|
void |
setFirstPageOverlayFile(String firstPageOverlayFile)
Sets the first page overlay file.
|
void |
setInputFile(String inputFile)
Sets the file to be overlayed.
|
void |
setLastPageOverlayFile(String lastPageOverlayFile)
Sets the last page overlay file.
|
void |
setOddPageOverlayFile(String oddPageOverlayFile)
Sets the odd page overlay file.
|
void |
setOutputFile(String outputFile)
Sets the output file.
|
void |
setOverlayPosition(Overlay.Position overlayPosition)
Sets the overlay position.
|
public void overlay(Map<Integer,String> specificPageOverlayFile, boolean useNonSeqParser) throws IOException, COSVisitorException
specificPageOverlayFile - map of overlay files for specific pagesuseNonSeqParser - indicates whether the nonsequential parser is usedIOException - if something went wrongCOSVisitorExceptionpublic void setOverlayPosition(Overlay.Position overlayPosition)
overlayPosition - the overlay positionpublic void setInputFile(String inputFile)
inputFile - the file to be overlayedpublic String getInputFile()
public void setOutputFile(String outputFile)
outputFile - the output filepublic String getOutputFile()
public void setDefaultOverlayFile(String defaultOverlayFile)
defaultOverlayFile - the default overlay filepublic String getDefaultOverlayFile()
public void setFirstPageOverlayFile(String firstPageOverlayFile)
firstPageOverlayFile - the first page overlay filepublic void setLastPageOverlayFile(String lastPageOverlayFile)
lastPageOverlayFile - the last page overlay filepublic void setAllPagesOverlayFile(String allPagesOverlayFile)
allPagesOverlayFile - the all pages overlay filepublic void setOddPageOverlayFile(String oddPageOverlayFile)
oddPageOverlayFile - the odd page overlay filepublic void setEvenPageOverlayFile(String evenPageOverlayFile)
evenPageOverlayFile - the even page overlay file