Class EmbeddedMultipleFonts
java.lang.Object
org.apache.pdfbox.examples.pdmodel.EmbeddedMultipleFonts
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static booleanisWinAnsiEncoding(int unicode) static void(package private) static voidshowTextMultiple(PDPageContentStream cs, String text, List<PDFont> fonts, float size)
-
Constructor Details
-
EmbeddedMultipleFonts
private EmbeddedMultipleFonts()
-
-
Method Details
-
main
- Throws:
IOException
-
showTextMultiple
static void showTextMultiple(PDPageContentStream cs, String text, List<PDFont> fonts, float size) throws IOException - Throws:
IOException
-
isWinAnsiEncoding
static boolean isWinAnsiEncoding(int unicode)
-