|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.Overlay
Overlay on document with another one.
e.g. Overlay an invoice with your company layout
How it (should) work:
If the document has 10 pages, and the layout 2 the following is the result:
Document: 1234567890 Layout : 1212121212
| Field Summary | |
static COSName |
EXT_G_STATE
COSName constant. |
static COSName |
PROC_SET
COSName constant. |
static COSName |
XOBJECT
COSName constant. |
| Constructor Summary | |
Overlay()
|
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final COSName XOBJECT
public static final COSName PROC_SET
public static final COSName EXT_G_STATE
| Constructor Detail |
public Overlay()
| Method Detail |
public 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.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||