Class AddMessageToEachPage
java.lang.Object
org.apache.pdfbox.examples.pdmodel.AddMessageToEachPage
This is an example of how to add a message to every page
in a pdf document.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreate the second sample document from the PDF file format specification.static voidThis will create a hello world PDF document.private voidusage()This will print out a message telling how to use this example.
-
Constructor Details
-
AddMessageToEachPage
public AddMessageToEachPage()Constructor.
-
-
Method Details
-
doIt
create the second sample document from the PDF file format specification.- Parameters:
file- The file to write the PDF to.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 hello world PDF document.
see usage() for commandline- Parameters:
args- Command line arguments.- Throws:
IOException
-
usage
private void usage()This will print out a message telling how to use this example.
-