public class CFFParser extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
CFFParser.ByteSource
Source from which bytes may be read in the future.
|
| Constructor and Description |
|---|
CFFParser() |
| Modifier and Type | Method and Description |
|---|---|
List<CFFFont> |
parse(byte[] bytes,
CFFParser.ByteSource source)
Parse CFF font using byte array, also passing in a byte source for future use.
|
List<CFFFont> |
parse(org.apache.pdfbox.io.RandomAccessRead randomAccessRead)
Parse CFF font using a RandomAccessRead as input.
|
void |
parseFirstSubFontROS(org.apache.pdfbox.io.RandomAccessRead randomAccessRead,
FontHeaders outHeaders)
Extract "Registry", "Ordering" and "Supplement" properties from the first CFF subfont.
|
String |
toString() |
public List<CFFFont> parse(byte[] bytes, CFFParser.ByteSource source) throws IOException
bytes - source bytessource - source to re-read bytes from in the futureIOException - If there is an error reading from the streampublic List<CFFFont> parse(org.apache.pdfbox.io.RandomAccessRead randomAccessRead) throws IOException
randomAccessRead - the source to be parsedIOException - If there is an error reading from the streampublic void parseFirstSubFontROS(org.apache.pdfbox.io.RandomAccessRead randomAccessRead,
FontHeaders outHeaders)
throws IOException
randomAccessRead - the source to be parsedoutHeaders - where to put resultsIOException - If there is an error reading from the streamCopyright © 2008–2025 The Apache Software Foundation. All rights reserved.