|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.pdfbox.examples.persistence.AppendDoc
This example concatenates two documents and writes the result.
| Constructor Summary | |
AppendDoc()
Constructor. |
|
| Method Summary | |
void |
appendDocument(PDDocument destination,
PDDocument source)
append all pages from source to destination. |
void |
doIt(String in1,
String in2,
String out)
concat two pdf documents. |
static void |
main(String[] args)
This will concat two pdf documents. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AppendDoc()
| Method Detail |
public void appendDocument(PDDocument destination,
PDDocument source)
throws IOException
destination - the document to receive the pagessource - the document originating the new pages
IOException - If there is an error accessing data from either document.
public void doIt(String in1,
String in2,
String out)
throws IOException,
COSVisitorException
in1 - The first template filein2 - The second template fileout - The created fiel with all pages from document one and document two
IOException - If there is an error writing the data.
COSVisitorException - If there is an error generating the PDF document.public static void main(String[] args)
args - command line arguments
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||