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

public Class ShowTextWithPositioning

extends Object
Class Inheritance
Imports
java.io.IOException, .InputStream, java.util.ArrayList, .List, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PDPageContentStream, .PDPageContentStream.AppendMode, org.apache.pdfbox.pdmodel.common.PDRectangle, org.apache.pdfbox.pdmodel.font.PDFont, .PDTrueTypeFont, .PDType0Font, org.apache.pdfbox.pdmodel.font.encoding.WinAnsiEncoding, org.apache.pdfbox.util.Matrix, .StringUtil

This example shows how to justify a string using the showTextWithPositioning method. First only spaces are adjusted, and then every letter.
Author
Dan Fickling

Field Summary

Modifier and TypeField and Description
private static final float

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static void
doIt(String message, String outfile)

public static void
main(String[] args)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FONT_SIZEback to summary
private static final float FONT_SIZE

Constructor Detail

ShowTextWithPositioningback to summary
private ShowTextWithPositioning()

Method Detail

doItback to summary
public static void doIt(String message, String outfile) throws IOException
mainback to summary
public static void main(String[] args) throws IOException