| java.lang.Object org.pdfbox.Overlay
Overlay | public class Overlay (Code) | | 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
author: Mario Ivankovits (mario@ops.co.at) author: Ben Litchfield version: $Revision: 1.6 $ |
EXT_G_STATE | final public static COSName EXT_G_STATE(Code) | | COSName constant.
|
PROC_SET | final public static COSName PROC_SET(Code) | | COSName constant.
|
XOBJECT | final public static COSName XOBJECT(Code) | | COSName constant.
|
main | public static void main(String[] args) throws IOException, COSVisitorException(Code) | | This will overlay a document and write out the results.
usage: java org.pdfbox.Overlay <overlay.pdf> <document.pdf> <result.pdf>
Parameters: args - The command line arguments. throws: IOException - If there is an error reading/writing the document. throws: COSVisitorException - If there is an error writing the document. |
overlay | public PDDocument overlay(PDDocument overlay, PDDocument destination) throws IOException(Code) | | This will overlay two documents onto each other. The overlay document is
repeatedly overlayed onto the destination document for every page in the
destination.
Parameters: overlay - The document to copy onto the destination Parameters: destination - The file that the overlay should be placed on. The destination pdf, same as argument passed in. throws: IOException - If there is an error accessing data. |
|
|