public class Overlay
extends java.lang.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 |
|---|---|
java.lang.String |
getDefaultOverlayFile()
Returns the default overlay file.
|
java.lang.String |
getInputFile()
Returns the input file.
|
java.lang.String |
getOutputFile()
Returns the output file.
|
void |
overlay(java.util.Map<java.lang.Integer,java.lang.String> specificPageOverlayFile,
boolean useNonSeqParser)
This will add overlays to a documents.
|
void |
setAllPagesOverlayFile(java.lang.String allPagesOverlayFile)
Sets the all pages overlay file.
|
void |
setDefaultOverlayFile(java.lang.String defaultOverlayFile)
Sets the default overlay file.
|
void |
setEvenPageOverlayFile(java.lang.String evenPageOverlayFile)
Sets the even page overlay file.
|
void |
setFirstPageOverlayFile(java.lang.String firstPageOverlayFile)
Sets the first page overlay file.
|
void |
setInputFile(java.lang.String inputFile)
Sets the file to be overlayed.
|
void |
setLastPageOverlayFile(java.lang.String lastPageOverlayFile)
Sets the last page overlay file.
|
void |
setOddPageOverlayFile(java.lang.String oddPageOverlayFile)
Sets the odd page overlay file.
|
void |
setOutputFile(java.lang.String outputFile)
Sets the output file.
|
void |
setOverlayPosition(Overlay.Position overlayPosition)
Sets the overlay position.
|
public void overlay(java.util.Map<java.lang.Integer,java.lang.String> specificPageOverlayFile,
boolean useNonSeqParser)
throws java.io.IOException,
COSVisitorException
specificPageOverlayFile - map of overlay files for specific pagesuseNonSeqParser - indicates whether the nonsequential parser is usedjava.io.IOException - if something went wrongCOSVisitorExceptionpublic void setOverlayPosition(Overlay.Position overlayPosition)
overlayPosition - the overlay positionpublic void setInputFile(java.lang.String inputFile)
inputFile - the file to be overlayedpublic java.lang.String getInputFile()
public void setOutputFile(java.lang.String outputFile)
outputFile - the output filepublic java.lang.String getOutputFile()
public void setDefaultOverlayFile(java.lang.String defaultOverlayFile)
defaultOverlayFile - the default overlay filepublic java.lang.String getDefaultOverlayFile()
public void setFirstPageOverlayFile(java.lang.String firstPageOverlayFile)
firstPageOverlayFile - the first page overlay filepublic void setLastPageOverlayFile(java.lang.String lastPageOverlayFile)
lastPageOverlayFile - the last page overlay filepublic void setAllPagesOverlayFile(java.lang.String allPagesOverlayFile)
allPagesOverlayFile - the all pages overlay filepublic void setOddPageOverlayFile(java.lang.String oddPageOverlayFile)
oddPageOverlayFile - the odd page overlay filepublic void setEvenPageOverlayFile(java.lang.String evenPageOverlayFile)
evenPageOverlayFile - the even page overlay file