public class Overlay extends Object
Document: 1234567890 Layout : 1212121212
| Modifier and Type | Field and Description | 
|---|---|
| static COSName | EXT_G_STATEDeprecated. 
 use the  COSName.EXT_G_STATEconstant instead | 
| static COSName | PROC_SETDeprecated. 
 use the  COSName.PROC_SETconstant instead | 
| static COSName | XOBJECTDeprecated. 
 use the  COSName.XOBJECTconstant instead | 
| Constructor and Description | 
|---|
| Overlay() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | main(String[] args)This will overlay a document and write out the results. | 
| PDDocument | overlay(PDDocument overlay,
       PDDocument destination)This will overlay two documents onto each other. | 
public static final COSName XOBJECT
COSName.XOBJECT constant insteadpublic static final COSName PROC_SET
COSName.PROC_SET constant insteadpublic static final COSName EXT_G_STATE
COSName.EXT_G_STATE constant insteadpublic static void main(String[] args) throws IOException, COSVisitorException
args - The command line arguments.IOException - If there is an error reading/writing the document.COSVisitorException - If there is an error writing the document.public PDDocument overlay(PDDocument overlay, PDDocument destination) throws IOException
overlay - The document to copy onto the destinationdestination - The file that the overlay should be placed on.IOException - If there is an error accessing data.Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.