public class PDFCIDFont extends PDFObject
| Constructor and Description |
|---|
PDFCIDFont(String basefont,
CIDFontType cidtype,
int dw,
int[] w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object
|
PDFCIDFont(String basefont,
CIDFontType cidtype,
int dw,
int[] w,
String registry,
String ordering,
int supplement,
PDFCIDFontDescriptor descriptor)
Create the /Font object
|
PDFCIDFont(String basefont,
CIDFontType cidtype,
int dw,
PDFWArray w,
PDFCIDSystemInfo systemInfo,
PDFCIDFontDescriptor descriptor)
Create the /Font object
|
| Modifier and Type | Method and Description |
|---|---|
void |
getChildren(Set<PDFObject> children) |
protected 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.
|
String |
toPDFString()
This method returns a String representation of the PDF object.
|
contentEquals, encode, encodeBinaryToHexString, encodeString, encodeText, formatObject, getDocument, getDocumentSafely, getGeneration, getObjectID, getObjectNumber, getParent, hasObjectNumber, makeReference, output, outputInline, referencePDF, setDocument, setObjectNumber, setObjectNumber, setObjectNumber, setParentpublic PDFCIDFont(String basefont, CIDFontType cidtype, int dw, int[] w, String registry, 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(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(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 String getPDFNameForCIDFontType(CIDFontType cidFontType)
cidFontType - CID font typepublic String toPDFString()
toPDFString in class PDFObjectpublic byte[] toPDF()
public void getChildren(Set<PDFObject> children)
getChildren in class PDFObjectCopyright © 2023 Apache Software Foundation. All rights reserved.