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.9 $
- Author:
- Ben Litchfield
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 |
CreateBlankPDF
public CreateBlankPDF()
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.