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.pdmodel
Class CreateBlankPDF

    java.lang.Object
      org.pdfbox.examples.pdmodel.CreateBlankPDF

public class CreateBlankPDF
extends Object

This will create a blank PDF and write the contents to a file. usage: java org.pdfbox.examples.pdmodel.CreateBlankPDF <outputfile.pdf>

Version:
  $Revision: 1.7 $
Author:
  Ben Litchfield (ben@csh.rit.edu)

Constructor Summary
`CreateBlankPDF()`

Method Summary
`void` | `create(String file)` This will create a blank PDF and write the contents to a file.
`static void` | `main(String[] args)` This will create a blank document.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### CreateBlankPDF

    public CreateBlankPDF()

Method Detail

### create

    public void create(String file)
                throws IOException,
                       COSVisitorException

  This will create a blank PDF and write the contents to a file.

  Parameters:
    `file` - The name of the file to write to.
  Throws:
    `IOException` - If there is an error writing the data.
    `COSVisitorException` - If there is an error while generating the document.

### main

    public static void main(String[] args)
                     throws IOException,
                            COSVisitorException

  This will create a blank document.

  Parameters:
    `args` - The command line arguments.
  Throws:
    `IOException` - If there is an error writing the document data.
    `COSVisitorException` - If there is an error generating the data.

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