| Package | Description |
|---|---|
| org.sejda.sambox.contentstream | |
| org.sejda.sambox.pdmodel | |
| org.sejda.sambox.pdmodel.font |
Classes to deal with font functionality in a PDF Document.
|
| org.sejda.sambox.pdmodel.graphics | |
| org.sejda.sambox.pdmodel.graphics.state | |
| org.sejda.sambox.pdmodel.interactive.annotation.layout | |
| org.sejda.sambox.pdmodel.interactive.form |
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
|
| org.sejda.sambox.rendering | |
| org.sejda.sambox.text |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PDFStreamEngine.showFontGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
String unicode,
Vector displacement)
Called when a glyph is to be processed.This method is intended for overriding in subclasses, the default
implementation does nothing.
|
protected void |
PDFStreamEngine.showGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
String unicode,
Vector displacement)
Called when a glyph is to be processed.This method is intended for overriding in subclasses, the default
implementation does nothing.
|
| Modifier and Type | Method and Description |
|---|---|
PDFont |
PDResources.getFont(COSName name)
Returns the font resource with the given name, or null if none exists.
|
PDFont |
ResourceCache.getFont(COSObjectKey key)
Returns the font resource for the given key object, if it is in the cache.
|
PDFont |
DefaultResourceCache.getFont(COSObjectKey key) |
| Modifier and Type | Method and Description |
|---|---|
COSName |
PDResources.add(PDFont font)
Adds the given font to the resources of the current page and returns the name for the new resources.
|
void |
PDResources.put(COSName name,
PDFont font)
Sets the font resource with the given name.
|
void |
ResourceCache.put(COSObjectKey key,
PDFont font)
Puts the given key font resource in the cache.
|
void |
DefaultResourceCache.put(COSObjectKey key,
PDFont font) |
void |
PDPageContentStream.setFont(PDFont font,
float fontSize)
Set the font and font size to draw text with.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PDMMType1Font
Type 1 Multiple Master Font.
|
class |
PDSimpleFont
A simple font.
|
class |
PDTrueTypeFont
TrueType font.
|
class |
PDType0Font
A Composite (Type 0) font.
|
class |
PDType1CFont
Type 1-equivalent CFF font.
|
class |
PDType1Font
A PostScript Type 1 Font.
|
class |
PDType3Font
A PostScript Type 3 Font.
|
| Modifier and Type | Method and Description |
|---|---|
static PDFont |
PDFontFactory.createDefaultFont()
Deprecated.
|
static PDFont |
PDFontFactory.createFont(COSDictionary dictionary)
Creates a new PDFont instance with the appropriate subclass.
|
static PDFont |
PDFontFactory.createFont(COSDictionary dictionary,
ResourceCache resourceCache)
Creates a new PDFont instance with the appropriate subclass.
|
| Modifier and Type | Method and Description |
|---|---|
PDFont |
PDFontSetting.getFont()
This will get the font for this font setting.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PDFontSetting.setFont(PDFont font)
This will set the font for this font setting.
|
| Modifier and Type | Method and Description |
|---|---|
PDFont |
PDTextState.getFont()
Get the value of the font.
|
| Modifier and Type | Method and Description |
|---|---|
void |
PDTextState.setFont(PDFont value)
Set the value of the font.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AppearanceStyle.setFont(PDFont font)
Set the font to be used for text formatting.
|
| Modifier and Type | Method and Description |
|---|---|
PDFont |
PDVariableText.getAppearanceFont() |
PDFont |
PDVariableText.getAppearanceOverrideFont() |
| Modifier and Type | Method and Description |
|---|---|
void |
PDVariableText.setAppearanceOverrideFont(PDFont appearanceOverrideFont) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
PageDrawer.showFontGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
String unicode,
Vector displacement) |
| Modifier and Type | Method and Description |
|---|---|
PDFont |
TextPosition.getFont()
This will get the font for the text being drawn.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
PDFTextStreamEngine.showGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
String unicode,
Vector displacement)
This method was originally written by Ben Litchfield for PDFStreamEngine.
|
| Constructor and Description |
|---|
TextPosition(int pageRotation,
float pageWidth,
float pageHeight,
Matrix textMatrix,
float endX,
float endY,
float maxHeight,
float individualWidth,
float spaceWidth,
String unicode,
int[] charCodes,
PDFont font,
float fontSize,
int fontSizeInPt) |
TextPosition(int pageRotation,
float pageWidth,
float pageHeight,
Matrix textMatrix,
float endX,
float endY,
float maxHeight,
float individualWidth,
float spaceWidth,
String unicode,
int[] charCodes,
PDFont font,
float fontSize,
int fontSizeInPt,
PDColor color,
RenderingMode renderingMode)
Constructor.
|
Copyright © 2020 sejda. All rights reserved.