org.foray.pdf.object
Class PDFCIDFontDescriptor
java.lang.Object
org.foray.pdf.object.PDFObject
org.foray.pdf.object.PDFFontDescriptor
org.foray.pdf.object.PDFCIDFontDescriptor
public class PDFCIDFontDescriptor
- extends PDFFontDescriptor
Class representing a PDF Font Descriptor for CID fonts.
Font descriptors for CID fonts are specified in Section 5.7.2 of the
PDF 1.3 spec.
Methods inherited from class org.foray.pdf.object.PDFObject |
bufferToByteArray, byteArrayToStream, getCharsPerLine, getGeneration, getLogger, getNumber, getPDFDocument, output, pdfID, pdfReference, setNumber, stringToByteArray |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PDFCIDFontDescriptor
public PDFCIDFontDescriptor(PDFDocument doc,
PDFFont font,
String lang)
- Create the /FontDescriptor object for a CID font.
- Parameters:
doc
- The parent PDF document.font
- The PDF Font for which this FontDescript is created.lang
- The language.
setCIDSet
public void setCIDSet(PDFStream cidSet)
- Sets the CID set for this font descriptor.
- Parameters:
cidSet
- The new CID set.
fillInPDF
protected void fillInPDF(StringBuilder p)
- Fill in the specifics for the font's descriptor.
The given buffer already contains the fields common to all descriptors.
- Overrides:
fillInPDF
in class PDFFontDescriptor
- Parameters:
p
- The buffer to be completed with the specific fields
Copyright © 2017. All rights reserved.