public class CreateLandscapePDF extends Object
Constructor and Description |
---|
CreateLandscapePDF()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public void doIt(String message, String outfile) throws IOException
message
- The message to write in the file.outfile
- The resulting PDF.IOException
- If there is an error writing the data.public static void main(String[] args) throws IOException
args
- Command line arguments.IOException
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.