public class Overlay extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static class  | Overlay.PositionPossible 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 | setAllPagesOverlayPDF(PDDocument allPagesOverlayPDF)Sets the all pages overlay PDF. | 
| void | setDefaultOverlayFile(String defaultOverlayFile)Sets the default overlay file. | 
| void | setDefaultOverlayPDF(PDDocument defaultOverlayPDF)Sets the default overlay PDF. | 
| void | setEvenPageOverlayFile(String evenPageOverlayFile)Sets the even page overlay file. | 
| void | setEvenPageOverlayPDF(PDDocument evenPageOverlayPDF)Sets the even page overlay PDF. | 
| void | setFirstPageOverlayFile(String firstPageOverlayFile)Sets the first page overlay file. | 
| void | setFirstPageOverlayPDF(PDDocument firstPageOverlayPDF)Sets the first page overlay PDF. | 
| void | setInputFile(String inputFile)Sets the file to be overlayed. | 
| void | setInputPDF(PDDocument inputPDF)Sets the PDF to be overlayed. | 
| void | setLastPageOverlayFile(String lastPageOverlayFile)Sets the last page overlay file. | 
| void | setLastPageOverlayPDF(PDDocument lastPageOverlayPDF)Sets the last page overlay PDF. | 
| void | setOddPageOverlayFile(String oddPageOverlayFile)Sets the odd page overlay file. | 
| void | setOddPageOverlayPDF(PDDocument oddPageOverlayPDF)Sets the odd page overlay PDF. | 
| 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 non-sequential parser is usedIOException - if something went wrongCOSVisitorException - if something went wrong when savin the pdfpublic void setOverlayPosition(Overlay.Position overlayPosition)
overlayPosition - the overlay positionpublic void setInputFile(String inputFile)
inputFile - the file to be overlayedpublic void setInputPDF(PDDocument inputPDF)
inputPDF - the PDF 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 void setDefaultOverlayPDF(PDDocument defaultOverlayPDF)
defaultOverlayPDF - the default overlay PDFpublic String getDefaultOverlayFile()
public void setFirstPageOverlayFile(String firstPageOverlayFile)
firstPageOverlayFile - the first page overlay filepublic void setFirstPageOverlayPDF(PDDocument firstPageOverlayPDF)
firstPageOverlayPDF - the first page overlay PDFpublic void setLastPageOverlayFile(String lastPageOverlayFile)
lastPageOverlayFile - the last page overlay filepublic void setLastPageOverlayPDF(PDDocument lastPageOverlayPDF)
lastPageOverlayPDF - the last page overlay PDFpublic void setAllPagesOverlayFile(String allPagesOverlayFile)
allPagesOverlayFile - the all pages overlay filepublic void setAllPagesOverlayPDF(PDDocument allPagesOverlayPDF)
allPagesOverlayPDF - the all pages overlay PDFpublic void setOddPageOverlayFile(String oddPageOverlayFile)
oddPageOverlayFile - the odd page overlay filepublic void setOddPageOverlayPDF(PDDocument oddPageOverlayPDF)
oddPageOverlayPDF - the odd page overlay PDFpublic void setEvenPageOverlayFile(String evenPageOverlayFile)
evenPageOverlayFile - the even page overlay filepublic void setEvenPageOverlayPDF(PDDocument evenPageOverlayPDF)
evenPageOverlayPDF - the even page overlay PDFCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.