public class PDFCIDFont extends PDFObject
DATE_FORMAT, log
Constructor and Description |
---|
PDFCIDFont(java.lang.String basefont,
CIDFontType cidtype,
int dw,
int[] w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object
|
PDFCIDFont(java.lang.String basefont,
CIDFontType cidtype,
int dw,
int[] w,
java.lang.String registry,
java.lang.String ordering,
int supplement,
PDFCIDFontDescriptor descriptor)
Create the /Font object
|
PDFCIDFont(java.lang.String basefont,
CIDFontType cidtype,
int dw,
PDFWArray w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getPDFNameForCIDFontType(CIDFontType cidFontType)
Returns the PDF name for a certain CID font type.
|
void |
setCIDMap(PDFStream map)
Set the /CIDToGIDMap (to be used only for CIDFontType2)
|
void |
setCIDMapIdentity()
Set the /CIDToGIDMap (to be used only for CIDFontType2) to "Identity"
|
void |
setCMAP(PDFCMap cmap)
Set the CMap used as /ToUnicode cmap
|
void |
setDW(int dw)
Set the /DW attribute
|
void |
setDW2(int[] dw2)
Set the (two elements) /DW2 array
|
void |
setDW2(int posY,
int displacementY)
Set the two elements of the /DW2 array
|
void |
setW(PDFWArray w)
Set the /W array
|
void |
setW2(PDFWArray w2)
Set the /W2 array
|
java.lang.String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatDateTime, formatDateTime, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setParent, toPDF
public PDFCIDFont(java.lang.String basefont, CIDFontType cidtype, int dw, int[] w, java.lang.String registry, java.lang.String ordering, int supplement, PDFCIDFontDescriptor descriptor)
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthsregistry
- name of the issuerordering
- Unique name of the fontsupplement
- Supplement numberdescriptor
- CID font descriptorpublic PDFCIDFont(java.lang.String basefont, CIDFontType cidtype, int dw, int[] w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor)
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthssystemInfo
- CID system infodescriptor
- CID font descriptorpublic PDFCIDFont(java.lang.String basefont, CIDFontType cidtype, int dw, PDFWArray w, PDFCIDSystemInfo systemInfo, PDFCIDFontDescriptor descriptor)
basefont
- Name of the basefontcidtype
- CID typedw
- default widthw
- array of character widthssystemInfo
- CID system infodescriptor
- CID font descriptorpublic void setDW(int dw)
dw
- the default widthpublic void setW(PDFWArray w)
w
- the width arraypublic void setDW2(int[] dw2)
dw2
- the default metrics for vertical writingpublic void setDW2(int posY, int displacementY)
posY
- position vectordisplacementY
- displacement vectorpublic void setCMAP(PDFCMap cmap)
cmap
- character mappublic void setW2(PDFWArray w2)
w2
- array of metrics for vertical writingpublic void setCIDMap(PDFStream map)
map
- mapping informationpublic void setCIDMapIdentity()
protected java.lang.String getPDFNameForCIDFontType(CIDFontType cidFontType)
cidFontType
- CID font typepublic java.lang.String toPDFString()
toPDFString
in class PDFObject
Copyright 1999-2010 The Apache Software Foundation. All Rights Reserved.