PDFWritable
public class PDFCIDFont extends PDFObject
Constructor | Description |
---|---|
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,
int[] w,
PDFCIDSystemInfo systemInfo,
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 | Description |
---|---|---|
void |
getChildren(java.util.Set<PDFObject> children) |
|
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
|
byte[] |
toPDF() |
Encodes the object as a byte array for output to a PDF file.
|
java.lang.String |
toPDFString() |
This method returns a String representation of the PDF object.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParent
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
public byte[] toPDF()
public void getChildren(java.util.Set<PDFObject> children)
getChildren
in class PDFObject
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.