Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.pdfbox.examples.persistence
Class CopyDoc

    java.lang.Object
      org.pdfbox.examples.persistence.CopyDoc

public class CopyDoc
extends Object

This is an example used to copy a documents contents from a source doc to destination doc via an in-memory document representation.

Version:
  $Revision: 1.7 $
Author:
  Michael Traut

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

### CopyDoc

    public CopyDoc()

  Constructor.

Method Detail

### doIt

    public void doIt(String in,
                     String out)
              throws IOException,
                     COSVisitorException

  This will perform the document copy.

  Parameters:
    `in` - The filename used for input.
    `out` - The filename used for output.
  Throws:
    `IOException` - If there is an error parsing the document.
    `COSVisitorException` - If there is an error while copying the document.

### main

    public static void main(String[] args)

  This will copy a PDF document.
  see usage() for commandline

  Parameters:
    `args` - command line arguments

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD