Package | Description |
---|---|
org.apache.pdfbox.contentstream |
This package contains provides classes for working with content streams.
|
org.apache.pdfbox.debugger.fontencodingpane | |
org.apache.pdfbox.pdmodel |
The PDModel package represents a high level API for creating and manipulating PDF documents.
|
org.apache.pdfbox.pdmodel.font |
Classes to deal with font functionality in a PDF Document.
|
org.apache.pdfbox.pdmodel.graphics |
The PDModel graphics package deals with graphics states, operations, and parameters within the PDF document.
|
org.apache.pdfbox.pdmodel.graphics.state |
This package deals with graphics states within the PDF document.
|
org.apache.pdfbox.pdmodel.interactive.annotation.layout | |
org.apache.pdfbox.pdmodel.interactive.form |
The interactive package contains classes for handling Interactive Forms, also known as "AcroForms".
|
org.apache.pdfbox.preflight.font | |
org.apache.pdfbox.preflight.font.container | |
org.apache.pdfbox.preflight.process.reflect | |
org.apache.pdfbox.rendering | |
org.apache.pdfbox.text | |
org.apache.pdfbox.tools |
Modifier and Type | Method and Description |
---|---|
protected void |
PDFStreamEngine.showFontGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
java.lang.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,
java.lang.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 |
---|---|
private java.lang.Object[][] |
Type0Font.readCIDToGIDMap(PDCIDFont font,
PDFont parentFont) |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<COSName,java.lang.ref.SoftReference<PDFont>> |
PDResources.directFontCache |
private java.util.Map<COSObject,java.lang.ref.SoftReference<PDFont>> |
DefaultResourceCache.fonts |
protected java.util.Deque<PDFont> |
PDAbstractContentStream.fontStack |
private java.util.Stack<PDFont> |
PDPageContentStream.fontStack |
private java.util.Set<PDFont> |
PDDocument.fontsToSubset |
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 |
DefaultResourceCache.getFont(COSObject indirect) |
PDFont |
ResourceCache.getFont(COSObject indirect)
Returns the font resource for the given indirect object, if it is in the cache.
|
Modifier and Type | Method and Description |
---|---|
(package private) java.util.Set<PDFont> |
PDDocument.getFontsToSubset()
Returns the list of fonts which will be subset before the document is saved.
|
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 |
DefaultResourceCache.put(COSObject indirect,
PDFont font) |
void |
ResourceCache.put(COSObject indirect,
PDFont font)
Puts the given indirect font resource in the cache.
|
void |
PDAbstractContentStream.setFont(PDFont font,
float fontSize)
Set the font and font size to draw text with.
|
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 | Field and Description |
---|---|
private PDFont |
PDTextState.font |
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 | Field and Description |
---|---|
private PDFont |
AppearanceStyle.font |
Modifier and Type | Method and Description |
---|---|
(package private) PDFont |
AppearanceStyle.getFont()
Get the font used for text formatting.
|
Modifier and Type | Method and Description |
---|---|
(package private) float |
PlainText.Line.calculateWidth(PDFont font,
float fontSize) |
(package private) java.util.List<PlainText.Line> |
PlainText.Paragraph.getLines(PDFont font,
float fontSize,
float width)
Break the paragraph into individual lines.
|
void |
AppearanceStyle.setFont(PDFont font)
Set the font to be used for text formatting.
|
Modifier and Type | Field and Description |
---|---|
private PDFont |
PDDefaultAppearanceString.font |
private PDFont |
AppearanceStyle.font |
Modifier and Type | Method and Description |
---|---|
(package private) PDFont |
PDDefaultAppearanceString.getFont()
Returns the font.
|
(package private) PDFont |
AppearanceStyle.getFont()
Get the font used for text formatting.
|
Modifier and Type | Method and Description |
---|---|
private float |
AppearanceGeneratorHelper.calculateFontSize(PDFont font,
PDRectangle contentRect)
My "not so great" method for calculating the fontsize.
|
(package private) float |
PlainText.Line.calculateWidth(PDFont font,
float fontSize) |
(package private) java.util.List<PlainText.Line> |
PlainText.Paragraph.getLines(PDFont font,
float fontSize,
float width)
Break the paragraph into individual lines.
|
private void |
AppearanceGeneratorHelper.insertGeneratedCombAppearance(PDPageContentStream contents,
PDAppearanceStream appearanceStream,
PDFont font,
float fontSize)
Generate the appearance for comb fields.
|
private void |
AppearanceGeneratorHelper.insertGeneratedListboxAppearance(PDPageContentStream contents,
PDAppearanceStream appearanceStream,
PDRectangle contentRect,
PDFont font,
float fontSize) |
private void |
AppearanceGeneratorHelper.insertGeneratedListboxSelectionHighlight(PDPageContentStream contents,
PDAppearanceStream appearanceStream,
PDFont font,
float fontSize) |
(package private) void |
PDDefaultAppearanceString.setFont(PDFont font)
Set the font.
|
(package private) void |
AppearanceStyle.setFont(PDFont font)
Set the font to be used for text formatting.
|
Modifier and Type | Field and Description |
---|---|
protected PDFont |
Type0FontValidator.font |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.lang.Float> |
Type3FontValidator.getWidths(PDFont font) |
Constructor and Description |
---|
Type0FontValidator(PreflightContext context,
PDFont font) |
Constructor and Description |
---|
Type0Container(PDFont font) |
Modifier and Type | Method and Description |
---|---|
private java.util.Map<java.lang.String,PDFont> |
ResourcesValidationProcess.getFonts(COSDictionary resources,
PreflightContext context)
This will get the map of fonts.
|
protected FontValidator<? extends FontContainer<? extends PDFont>> |
FontValidationProcess.getFontValidator(PreflightContext context,
PDFont font)
Create the right "Validator" object for the given font type
|
Modifier and Type | Method and Description |
---|---|
protected FontValidator<? extends FontContainer<? extends PDFont>> |
FontValidationProcess.getFontValidator(PreflightContext context,
PDFont font)
Create the right "Validator" object for the given font type
|
Modifier and Type | Field and Description |
---|---|
private PDFont |
TTFGlyph2D.font |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<PDFont,Glyph2D> |
PageDrawer.fontGlyph2D |
Modifier and Type | Method and Description |
---|---|
private Glyph2D |
PageDrawer.createGlyph2D(PDFont font)
Provide a Glyph2D for the given font.
|
private void |
PageDrawer.drawGlyph2D(Glyph2D glyph2D,
PDFont font,
int code,
Vector displacement,
java.awt.geom.AffineTransform at)
Render the font using the Glyph2D interface.
|
protected void |
PageDrawer.showFontGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
java.lang.String unicode,
Vector displacement) |
Constructor and Description |
---|
TTFGlyph2D(TrueTypeFont ttf,
PDFont font,
boolean isCIDFont) |
Modifier and Type | Field and Description |
---|---|
private PDFont |
TextPosition.font |
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 |
LegacyPDFStreamEngine.showGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
java.lang.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,
java.lang.String unicode,
int[] charCodes,
PDFont font,
float fontSize,
int fontSizeInPt)
Constructor.
|
Modifier and Type | Field and Description |
---|---|
private PDFont |
TextToPDF.font |
Modifier and Type | Method and Description |
---|---|
PDFont |
TextToPDF.getFont() |
Modifier and Type | Method and Description |
---|---|
void |
TextToPDF.setFont(PDFont aFont) |
protected void |
ExtractImages.ImageGraphicsEngine.showGlyph(Matrix textRenderingMatrix,
PDFont font,
int code,
java.lang.String unicode,
Vector displacement) |