com.lowagie.text.pdf
Class CMapAwareDocumentFont

java.lang.Object
  extended bycom.lowagie.text.pdf.BaseFont
      extended bycom.lowagie.text.pdf.DocumentFont
          extended bycom.lowagie.text.pdf.CMapAwareDocumentFont

public class CMapAwareDocumentFont
extends DocumentFont

Implementation of DocumentFont used while parsing PDF streams.

Since:
2.1.4

Field Summary
 
Fields inherited from class com.lowagie.text.pdf.BaseFont
ASCENT, AWT_ASCENT, AWT_DESCENT, AWT_LEADING, AWT_MAXADVANCE, BBOXLLX, BBOXLLY, BBOXURX, BBOXURY, CACHED, CAPHEIGHT, CHAR_RANGE_ARABIC, CHAR_RANGE_CYRILLIC, CHAR_RANGE_HEBREW, CHAR_RANGE_LATIN, CID_NEWLINE, COURIER, COURIER_BOLD, COURIER_BOLDOBLIQUE, COURIER_OBLIQUE, CP1250, CP1252, CP1257, DESCENT, EMBEDDED, FONT_TYPE_CJK, FONT_TYPE_DOCUMENT, FONT_TYPE_T1, FONT_TYPE_T3, FONT_TYPE_TT, FONT_TYPE_TTUNI, HELVETICA, HELVETICA_BOLD, HELVETICA_BOLDOBLIQUE, HELVETICA_OBLIQUE, IDENTITY_H, IDENTITY_V, ITALICANGLE, MACROMAN, NOT_CACHED, NOT_EMBEDDED, notdef, RESOURCE_PATH, STRIKETHROUGH_POSITION, STRIKETHROUGH_THICKNESS, SUBSCRIPT_OFFSET, SUBSCRIPT_SIZE, SUPERSCRIPT_OFFSET, SUPERSCRIPT_SIZE, SYMBOL, TIMES_BOLD, TIMES_BOLDITALIC, TIMES_ITALIC, TIMES_ROMAN, UNDERLINE_POSITION, UNDERLINE_THICKNESS, WINANSI, ZAPFDINGBATS
 
Constructor Summary
CMapAwareDocumentFont(PRIndirectReference refFont)
          Creates an instance of a CMapAwareFont based on an indirect reference to a font.
 
Method Summary
 String encode(byte[] bytes, int offset, int len)
          Encodes bytes to a String.
 
Methods inherited from class com.lowagie.text.pdf.DocumentFont
charExists, getAllNameEntries, getCharBBox, getFamilyFontName, getFontDescriptor, getFullFontName, getFullFontStream, getKerning, getPostscriptFontName, getWidth, getWidth, hasKernPairs, setKerning, setPostscriptFontName
 
Methods inherited from class com.lowagie.text.pdf.BaseFont
addSubsetRange, correctArabicAdvance, createFont, createFont, createFont, createFont, createFont, createSubsetPrefix, enumerateTTCNames, enumerateTTCNames, getAllFontNames, getAllNameEntries, getAscent, getAscentPoint, getCidCode, getCodePagesSupported, getCompressionLevel, getDescent, getDescentPoint, getDifferences, getDocumentFonts, getDocumentFonts, getEncoding, getFontType, getFullFontName, getResourceStream, getResourceStream, getUnicodeDifferences, getUnicodeEquivalent, getWidthPoint, getWidthPoint, getWidthPointKerned, getWidths, isDirectTextToByte, isEmbedded, isFontSpecific, isForceWidthsOutput, isSubset, setCharAdvance, setCompressionLevel, setDirectTextToByte, setForceWidthsOutput, setSubset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CMapAwareDocumentFont

public CMapAwareDocumentFont(PRIndirectReference refFont)
Creates an instance of a CMapAwareFont based on an indirect reference to a font.

Parameters:
refFont - the indirect reference to a font
Method Detail

encode

public String encode(byte[] bytes,
                     int offset,
                     int len)
Encodes bytes to a String.

Parameters:
bytes - the bytes from a stream
offset - an offset
len - a length
Returns:
a String encoded taking into account if the bytes are in unicode or not.


Copyright © 2011 EGIZ - E-Government Innovation Center. All Rights Reserved.