org.apache.pdfbox.examples.pdmodel
Class CreateBlankPDF

java.lang.Object
  extended by org.apache.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.apache.pdfbox.examples.pdmodel.CreateBlankPDF <outputfile.pdf>

Version:
$Revision: 1.9 $
Author:
Ben Litchfield

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.


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.