org.foray.pdf.object
Class PDFToUnicodeCMap
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFStream
org.foray.pdf.object.PDFCMap
org.foray.pdf.object.PDFToUnicodeCMap
public class PDFToUnicodeCMap
- extends PDFCMap
Class representing ToUnicode CMaps.
Here are some documentation resources:
|
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.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 |
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.
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.