public class Overlay
extends java.lang.Object
Document: 1234567890 Layout : 1212121212
| Modifier and Type | Field | Description |
|---|---|---|
static COSName |
EXT_G_STATE |
Deprecated.
use the
COSName.EXT_G_STATE constant instead |
static COSName |
PROC_SET |
Deprecated.
use the
COSName.PROC_SET constant instead |
static COSName |
XOBJECT |
Deprecated.
use the
COSName.XOBJECT constant instead |
| Constructor | Description |
|---|---|
Overlay() |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.String[] args) |
This will overlay a document and write out the results.
usage: java org.apache.pdfbox.Overlay <overlay.pdf> <document.pdf> <result.pdf> |
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(java.lang.String[] args)
throws java.io.IOException,
COSVisitorException
args - The command line arguments.java.io.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 java.io.IOException
overlay - The document to copy onto the destinationdestination - The file that the overlay should be placed on.java.io.IOException - If there is an error accessing data.