org.apache.pdfbox.examples.pdmodel
Class CreateLandscapePDF

java.lang.Object
  extended by org.apache.pdfbox.examples.pdmodel.CreateLandscapePDF

public class CreateLandscapePDF
extends Object

This is an example of how to create a page with a landscape orientation.

Version:
$Revision: 1.0 $

Constructor Summary
CreateLandscapePDF()
          Constructor.
 
Method Summary
 void doIt(String message, String outfile)
          creates a sample document with a landscape orientation and some text surrounded by a box.
static void main(String[] args)
          This will create a PDF document with a landscape orientation and some text surrounded by a box.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateLandscapePDF

public CreateLandscapePDF()
Constructor.

Method Detail

doIt

public void doIt(String message,
                 String outfile)
          throws IOException,
                 COSVisitorException
creates a sample document with a landscape orientation and some text surrounded by a box.

Parameters:
message - The message to write in the file.
outfile - The resulting PDF.
Throws:
IOException - If there is an error writing the data.
COSVisitorException - If there is an error writing the PDF.

main

public static void main(String[] args)
This will create a PDF document with a landscape orientation and some text surrounded by a box.

Parameters:
args - Command line arguments.


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