Class EmbeddedMultipleFonts


  • public class EmbeddedMultipleFonts
    extends java.lang.Object
    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
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static boolean isWinAnsiEncoding​(int unicode)  
      static void main​(java.lang.String[] args)  
      (package private) static void showTextMultiple​(PDPageContentStream cs, java.lang.String text, java.util.List<PDFont> fonts, float size)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmbeddedMultipleFonts

        private EmbeddedMultipleFonts()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • showTextMultiple

        static void showTextMultiple​(PDPageContentStream cs,
                                     java.lang.String text,
                                     java.util.List<PDFont> fonts,
                                     float size)
                              throws java.io.IOException
        Throws:
        java.io.IOException
      • isWinAnsiEncoding

        static boolean isWinAnsiEncoding​(int unicode)