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

public Class EmbeddedMultipleFonts

extends Object
Class Inheritance
Imports
java.io.File, .IOException, java.util.ArrayList, .List, org.apache.fontbox.ttf.TrueTypeCollection, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, .PDPageContentStream, org.apache.pdfbox.pdmodel.common.PDRectangle, org.apache.pdfbox.pdmodel.font.PDFont, .PDType0Font, .PDType1Font, .Standard14Fonts.FontName, org.apache.pdfbox.pdmodel.font.encoding.GlyphList, .WinAnsiEncoding

Output a text without knowing which font is the right one. One use case is a worldwide address list. Only LTR languages are supported, RTL (e.g. Hebrew, Arabic) are not supported so they would appear in the wrong direction. Complex scripts (Thai, Arabic, some Indian languages) are also not supported, any output will look weird. There is an (unfinished) effort here: https://issues.apache.org/jira/browse/PDFBOX-4189
Author
Tilman Hausherr

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
pack-priv static boolean
isWinAnsiEncoding(int unicode)

public static void
main(String[] args)

pack-priv static void
showTextMultiple(PDPageContentStream cs, String text, List<PDFont> fonts, float size)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

EmbeddedMultipleFontsback to summary
private EmbeddedMultipleFonts()

Method Detail

isWinAnsiEncodingback to summary
pack-priv static boolean isWinAnsiEncoding(int unicode)
mainback to summary
public static void main(String[] args) throws IOException
showTextMultipleback to summary
pack-priv static void showTextMultiple(PDPageContentStream cs, String text, List<PDFont> fonts, float size) throws IOException