|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.examples.persistence.CopyDoc
public class CopyDoc
This is an example used to copy a documents contents from a source doc to destination doc via an in-memory document representation.
Constructor Summary | |
---|---|
CopyDoc()
Constructor. |
Method Summary | |
---|---|
void |
doIt(String in,
String out)
This will perform the document copy. |
static void |
main(String[] args)
This will copy a PDF document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CopyDoc()
Method Detail |
---|
public void doIt(String in, String out) throws IOException, COSVisitorException
in
- The filename used for input.out
- The filename used for output.
IOException
- If there is an error parsing the document.
COSVisitorException
- If there is an error while copying the 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 |