Top Description Constructors Methods
org.apache.pdfbox.examples.pdmodel

public Class UsingTextMatrix

extends Object
Class Inheritance
Imports
java.io.IOException, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PDPageContentStream, .PDPageContentStream.AppendMode, org.apache.pdfbox.pdmodel.common.PDRectangle, org.apache.pdfbox.pdmodel.font.PDFont, .PDType1Font, .Standard14Fonts.FontName, org.apache.pdfbox.util.Matrix

This is an example of how to use a text matrix.

Constructor Summary

AccessConstructor and Description
public
UsingTextMatrix()

Constructor.

Method Summary

Modifier and TypeMethod and Description
public void
doIt(String
The message to write in the file.
message
,
String
The resulting PDF.
outfile
)

creates a sample document with some text using a text matrix.

public static void
main(String[]
Command line arguments.
args
)

This will create a PDF document with some examples how to use a text matrix.

private void
usage()

This will print out a message telling how to use this example.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

UsingTextMatrixback to summary
public UsingTextMatrix()

Constructor.

Method Detail

doItback to summary
public void doIt(String message, String outfile) throws IOException

creates a sample document with some text using a text matrix.

Parameters
message:String

The message to write in the file.

outfile:String

The resulting PDF.

Exceptions
IOException:
If there is an error writing the data.
mainback to summary
public static void main(String[] args) throws IOException

This will create a PDF document with some examples how to use a text matrix.

Parameters
args:String[]

Command line arguments.

usageback to summary
private void usage()

This will print out a message telling how to use this example.