Package | Description |
---|---|
org.apache.pdfbox.pdmodel.font |
Classes to deal with font functionality in a PDF Document.
|
org.apache.pdfbox.preflight.font.descriptor | |
org.apache.pdfbox.preflight.font.util | |
org.apache.pdfbox.tools |
Modifier and Type | Field and Description |
---|---|
private PDFontDescriptor |
PDCIDFont.fontDescriptor |
protected PDFontDescriptor |
TrueTypeEmbedder.fontDescriptor |
private PDFontDescriptor |
PDFont.fontDescriptor |
Modifier and Type | Method and Description |
---|---|
(package private) static PDFontDescriptor |
PDType1FontEmbedder.buildFontDescriptor(FontMetrics metrics)
Returns a PDFontDescriptor for the given AFM.
|
(package private) static PDFontDescriptor |
PDType1FontEmbedder.buildFontDescriptor(Type1Font type1)
Returns a PDFontDescriptor for the given PFB.
|
private PDFontDescriptor |
TrueTypeEmbedder.createFontDescriptor(TrueTypeFont ttf)
Creates a new font descriptor dictionary for the given TTF.
|
PDFontDescriptor |
PDType0Font.getFontDescriptor() |
PDFontDescriptor |
PDCIDFont.getFontDescriptor() |
PDFontDescriptor |
TrueTypeEmbedder.getFontDescriptor()
Returns the font descriptor.
|
PDFontDescriptor |
PDFont.getFontDescriptor() |
PDFontDescriptor |
PDFontLike.getFontDescriptor()
Returns the font descriptor, may be null.
|
private PDFontDescriptor |
PDFont.loadFontDescriptor() |
Modifier and Type | Method and Description |
---|---|
CIDFontMapping |
FontMapperImpl.getCIDFont(java.lang.String baseFont,
PDFontDescriptor fontDescriptor,
PDCIDSystemInfo cidSystemInfo)
Finds a CFF CID-Keyed font with the given PostScript name, or a suitable substitute, or null.
|
CIDFontMapping |
FontMapper.getCIDFont(java.lang.String baseFont,
PDFontDescriptor fontDescriptor,
PDCIDSystemInfo cidSystemInfo)
Finds a CFF CID-Keyed font with the given PostScript name, or a suitable substitute, or null.
|
private java.lang.String |
FontMapperImpl.getFallbackFontName(PDFontDescriptor fontDescriptor)
Attempts to find a good fallback based on the font descriptor.
|
FontMapping<FontBoxFont> |
FontMapperImpl.getFontBoxFont(java.lang.String baseFont,
PDFontDescriptor fontDescriptor)
Finds a font with the given PostScript name, or a suitable substitute, or null.
|
FontMapping<FontBoxFont> |
FontMapper.getFontBoxFont(java.lang.String baseFont,
PDFontDescriptor fontDescriptor)
Finds a font with the given PostScript name, or a suitable substitute, or null.
|
private java.util.PriorityQueue<FontMapperImpl.FontMatch> |
FontMapperImpl.getFontMatches(PDFontDescriptor fontDescriptor,
PDCIDSystemInfo cidSystemInfo)
Returns a list of matching fonts, scored by suitability.
|
FontMapping<TrueTypeFont> |
FontMapperImpl.getTrueTypeFont(java.lang.String baseFont,
PDFontDescriptor fontDescriptor)
Finds a TrueType font with the given PostScript name, or a suitable substitute, or null.
|
FontMapping<TrueTypeFont> |
FontMapper.getTrueTypeFont(java.lang.String baseFont,
PDFontDescriptor fontDescriptor)
Finds a TrueType font with the given PostScript name, or a suitable substitute, or null.
|
private boolean |
FontMapperImpl.probablyBarcodeFont(PDFontDescriptor fontDescriptor) |
protected void |
PDFont.setFontDescriptor(PDFontDescriptor fontDescriptor)
Sets the font descriptor when embedding a font.
|
Modifier and Type | Field and Description |
---|---|
protected PDFontDescriptor |
FontDescriptorHelper.fontDescriptor |
Modifier and Type | Method and Description |
---|---|
protected void |
CIDType2DescriptorHelper.checkCIDSet(PDFontDescriptor pfDescriptor)
If the embedded font is a subset, the CIDSet entry is mandatory and must be a Stream.
|
protected void |
CIDType0DescriptorHelper.checkCIDSet(PDFontDescriptor pfDescriptor)
If the embedded font is a subset, the CIDSet entry is mandatory and must be a Stream.
|
protected void |
FontDescriptorHelper.checkFontFileMetaData(PDFontDescriptor fontDescriptor,
PDStream fontFile)
Type0, Type1 and TrueType FontValidator call this method to check the FontFile meta data.
|
PDStream |
CIDType2DescriptorHelper.extractFontFile(PDFontDescriptor fontDescriptor) |
abstract PDStream |
FontDescriptorHelper.extractFontFile(PDFontDescriptor fontDescriptor) |
PDStream |
TrueTypeDescriptorHelper.extractFontFile(PDFontDescriptor fontDescriptor) |
PDStream |
CIDType0DescriptorHelper.extractFontFile(PDFontDescriptor fontDescriptor) |
PDStream |
Type1DescriptorHelper.extractFontFile(PDFontDescriptor fontDescriptor) |
protected boolean |
FontDescriptorHelper.fontFileNotEmbedded(PDFontDescriptor fontDescriptor) |
protected boolean |
FontDescriptorHelper.hasOnlyOneFontFile(PDFontDescriptor fontDescriptor)
Return true if the FontDescriptor has only one FontFile entry.
|
protected void |
CIDType2DescriptorHelper.processFontFile(PDFontDescriptor fontDescriptor,
PDStream fontFile) |
protected abstract void |
FontDescriptorHelper.processFontFile(PDFontDescriptor fontDescriptor,
PDStream fontFile) |
protected void |
TrueTypeDescriptorHelper.processFontFile(PDFontDescriptor fontDescriptor,
PDStream fontFile) |
protected void |
CIDType0DescriptorHelper.processFontFile(PDFontDescriptor fontDescriptor,
PDStream fontFile) |
protected void |
Type1DescriptorHelper.processFontFile(PDFontDescriptor fontDescriptor,
PDStream fontFile) |
Modifier and Type | Method and Description |
---|---|
boolean |
FontMetaDataValidation.analyseFontName(XMPMetadata metadata,
PDFontDescriptor fontDesc,
java.util.List<ValidationResult.ValidationError> ve)
Value of the dc:title must be the same as the FontName in the font descriptor.
|
boolean |
FontMetaDataValidation.analyseRights(XMPMetadata metadata,
PDFontDescriptor fontDesc,
java.util.List<ValidationResult.ValidationError> ve)
If XMP MetaData is present, they must have the following information :
dc:rights
Marked (with the value true)
Owner
UsageTerms
|
java.util.List<ValidationResult.ValidationError> |
FontMetaDataValidation.validatePDFAIdentifer(XMPMetadata metadata,
PDFontDescriptor fontDesc) |
Modifier and Type | Method and Description |
---|---|
private boolean |
PDFText2HTML.FontState.isBold(PDFontDescriptor descriptor) |
private boolean |
PDFText2HTML.FontState.isItalic(PDFontDescriptor descriptor) |