Class CreateLandscapePDF
java.lang.Object
org.apache.pdfbox.examples.pdmodel.CreateLandscapePDF
This is an example of how to create a page with a landscape orientation.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreates a sample document with a landscape orientation and some text surrounded by a box.static voidThis will create a PDF document with a landscape orientation and some text surrounded by a box.private voidusage()This will print out a message telling how to use this example.
-
Constructor Details
-
CreateLandscapePDF
public CreateLandscapePDF()Constructor.
-
-
Method Details
-
doIt
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.
-
main
This will create a PDF document with a landscape orientation and some text surrounded by a box.- Parameters:
args- Command line arguments.- Throws:
IOException
-
usage
private void usage()This will print out a message telling how to use this example.
-