org.foray.pdf.object
Class PDFToUnicodeCMap

java.lang.Object
  extended by org.foray.pdf.object.PDFObject
      extended by org.foray.pdf.object.PDFStream
          extended by org.foray.pdf.object.PDFCMap
              extended by org.foray.pdf.object.PDFToUnicodeCMap

public class PDFToUnicodeCMap
extends PDFCMap

Class representing ToUnicode CMaps. Here are some documentation resources:


Nested Class Summary
 
Nested classes/interfaces inherited from class org.foray.pdf.object.PDFCMap
PDFCMap.Type
 
Field Summary
 
Fields inherited from class org.foray.pdf.object.PDFCMap
WMODE_HORIZONTAL, WMODE_VERTICAL
 
Fields inherited from class org.foray.pdf.object.PDFObject
EOL, MSG_EOL, XREF_EOL
 
Constructor Summary
PDFToUnicodeCMap(PDFDocument doc, PDFCMap.Type name, PDFCIDSystemInfo sysInfo, org.axsl.font.FontUse fsFont)
          Constructor.
 
Method Summary
protected  void finalizeStreamContent()
          This method is an explicit opportunity for subclasses to finish writing whatever content may still need to be written to the stream before the dictionary and stream contents are written.
protected  void writeCIDSystemInfo(StringBuilder p)
          Writes the CID Sytem Info portion of the CMAP content.
protected  void writeVersionTypeName(StringBuilder p)
          Writes the version, type, and name portion of the CMAP content.
 
Methods inherited from class org.foray.pdf.object.PDFCMap
specialStreamDictEntries, writeBFEntries, writeCIDInit, writeCIDRange, writeCodeSpaceRange, writePreStream, writeStreamAfterComments, writeStreamComments, writeUseCMap, writeWrapUp
 
Methods inherited from class org.foray.pdf.object.PDFStream
add, addDefaultFilters, addEncryption, addFilter, addFilter, applyFilters, getDataLength, getOutputStream, output, outputStreamData, setData, setOutputStream, toPDF
 
Methods inherited from class org.foray.pdf.object.PDFObject
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, pdfID, pdfReference, setNumber, stringToByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PDFToUnicodeCMap

public PDFToUnicodeCMap(PDFDocument doc,
                        PDFCMap.Type name,
                        PDFCIDSystemInfo sysInfo,
                        org.axsl.font.FontUse fsFont)
Constructor.

Parameters:
doc - The parent PDF document.
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.
fsFont - The encapsulated font.
Method Detail

writeCIDSystemInfo

protected void writeCIDSystemInfo(StringBuilder p)
Description copied from class: PDFCMap
Writes the CID Sytem Info portion of the CMAP content.

Overrides:
writeCIDSystemInfo in class PDFCMap
Parameters:
p - The buffer into which the content should be written.

writeVersionTypeName

protected void writeVersionTypeName(StringBuilder p)
Description copied from class: PDFCMap
Writes the version, type, and name portion of the CMAP content.

Overrides:
writeVersionTypeName in class PDFCMap
Parameters:
p - The buffer into which the content should be written.

finalizeStreamContent

protected void finalizeStreamContent()
                              throws org.axsl.pdf.PdfException
Description copied from class: PDFStream
This method is an explicit opportunity for subclasses to finish writing whatever content may still need to be written to the stream before the dictionary and stream contents are written.

Overrides:
finalizeStreamContent in class PDFCMap
Throws:
org.axsl.pdf.PdfException - For errors writing stream content.


Copyright © 2017. All rights reserved.