| Constructor and Description |
|---|
TTFParser()
Constructor.
|
TTFParser(boolean isEmbedded)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
allowCFF() |
TrueTypeFont |
parse(org.apache.pdfbox.io.RandomAccessRead randomAccessRead)
Parse a RandomAccessRead and return a TrueType font.
|
TrueTypeFont |
parseEmbedded(InputStream inputStream)
Parse an input stream and return a TrueType font that is to be embedded.
|
FontHeaders |
parseTableHeaders(org.apache.pdfbox.io.RandomAccessRead randomAccessRead)
Parse a RandomAccessRead and return a TrueType font.
|
protected TTFTable |
readTable(String tag) |
public TTFParser()
public TTFParser(boolean isEmbedded)
isEmbedded - true if the font is embedded in PDFpublic TrueTypeFont parse(org.apache.pdfbox.io.RandomAccessRead randomAccessRead) throws IOException
randomAccessRead - The RandomAccessREad to be read from. It will be closed before returning.IOException - If there is an error parsing the TrueType font.public TrueTypeFont parseEmbedded(InputStream inputStream) throws IOException
inputStream - The TTF data stream to parse from. It will be closed before returning.IOException - If there is an error parsing the TrueType font.public FontHeaders parseTableHeaders(org.apache.pdfbox.io.RandomAccessRead randomAccessRead) throws IOException
randomAccessRead - The RandomAccessREad to be read from. It will be closed before returning.IOException - If there is an error parsing the TrueType font.protected boolean allowCFF()
Copyright © 2008–2025 The Apache Software Foundation. All rights reserved.