org.pdfbox.examples.pdmodel

Class CreateBlankPDF


public class CreateBlankPDF
extends java.lang.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.

Method Details

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:
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:
COSVisitorException - If there is an error generating the data.