|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFStream
org.foray.pdf.object.PDFCMap
public class PDFCMap
A CMap encoding.
| Nested Class Summary | |
|---|---|
static class |
PDFCMap.Type
Enumeration of the predefined CMap encodings in PDF. |
| Field Summary | |
|---|---|
static byte |
WMODE_HORIZONTAL
Constant indicating the horizontal writing direction. |
static byte |
WMODE_VERTICAL
Constant indicating the vertical writing direction. |
| Fields inherited from class org.foray.pdf.object.PDFObject |
|---|
EOL, MSG_EOL, XREF_EOL |
| Constructor Summary | |
|---|---|
PDFCMap(PDFDocument doc,
PDFCMap.Type name)
Create the /CMap object. |
|
| 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 String |
specialStreamDictEntries()
Subclasses return any specialized dictionary entries here, so that they are included when writing the stream dictionary. |
protected void |
writeBFEntries(StringBuilder p)
Writes the BF entries portion of the CMAP content. |
protected void |
writeCIDInit(StringBuilder p)
Writes the CID init portion of the CMAP content. |
protected void |
writeCIDRange(StringBuilder p)
Writes the CID range portion of the CMAP content. |
protected void |
writeCIDSystemInfo(StringBuilder p)
Writes the CID Sytem Info portion of the CMAP content. |
protected void |
writeCodeSpaceRange(StringBuilder p)
Writes the space range portion of the CMAP content. |
protected void |
writePreStream(StringBuilder p)
Writes the pre-stream portion of the CMAP content. |
protected void |
writeStreamAfterComments(StringBuilder p)
Writes the after-stream portion of the CMAP content. |
protected void |
writeStreamComments(StringBuilder p)
Writes the stream comments of the CMAP content. |
protected void |
writeUseCMap(StringBuilder p)
Writes the use CMAP portion of the CMAP content. |
protected void |
writeVersionTypeName(StringBuilder p)
Writes the version, type, and name portion of the CMAP content. |
protected void |
writeWrapUp(StringBuilder p)
Writes the wrap-up 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 |
| Field Detail |
|---|
public static final byte WMODE_HORIZONTAL
public static final byte WMODE_VERTICAL
| Constructor Detail |
|---|
public PDFCMap(PDFDocument doc,
PDFCMap.Type name)
doc - The parent PDF document.name - One of the predefined CMAP types.| Method Detail |
|---|
protected void writePreStream(StringBuilder p)
p - The buffer into which the content should be written.protected void writeStreamComments(StringBuilder p)
p - The buffer into which the content should be written.protected void writeCIDInit(StringBuilder p)
p - The buffer into which the content should be written.protected void writeCIDSystemInfo(StringBuilder p)
p - The buffer into which the content should be written.protected void writeVersionTypeName(StringBuilder p)
p - The buffer into which the content should be written.protected void writeCodeSpaceRange(StringBuilder p)
p - The buffer into which the content should be written.protected void writeCIDRange(StringBuilder p)
p - The buffer into which the content should be written.protected void writeBFEntries(StringBuilder p)
p - The buffer into which the content should be written.protected void writeWrapUp(StringBuilder p)
p - The buffer into which the content should be written.protected void writeStreamAfterComments(StringBuilder p)
p - The buffer into which the content should be written.protected void writeUseCMap(StringBuilder p)
p - The buffer into which the content should be written.
protected void finalizeStreamContent()
throws org.axsl.pdf.PdfException
PDFStream
finalizeStreamContent in class PDFStreamorg.axsl.pdf.PdfException - For errors writing stream content.protected String specialStreamDictEntries()
PDFStream
specialStreamDictEntries in class PDFStream
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||