Class PDFToUnicodeCMap

  • All Implemented Interfaces:
    PDFWritable

    public class PDFToUnicodeCMap
    extends PDFCMap
    Class representing ToUnicode CMaps. Here are some documentation resources:
    • Field Detail

      • unicodeCharMap

        protected char[] unicodeCharMap
        The array of Unicode characters ordered by character code (maps from character code to Unicode code point).
      • singleByte

        private boolean singleByte
    • Constructor Detail

      • PDFToUnicodeCMap

        public PDFToUnicodeCMap​(char[] unicodeCharMap,
                                java.lang.String name,
                                PDFCIDSystemInfo sysInfo,
                                boolean singleByte)
        Constructor.
        Parameters:
        unicodeCharMap - An array of Unicode characters ordered by character code (maps from character code to Unicode code point)
        name - One of the registered names found in Table 5.14 in PDF Reference, Second Edition.
        sysInfo - The attributes of the character collection of the CIDFont.
        singleByte - true for single-byte, false for double-byte
    • Method Detail

      • createCMapBuilder

        protected CMapBuilder createCMapBuilder​(java.io.Writer writer)
        Creates the CMapBuilder that will build the CMap's content.
        Overrides:
        createCMapBuilder in class PDFCMap
        Parameters:
        writer - a Writer to write the CMap's contents to
        Returns:
        the newly created CMapBuilder