Package | Description |
---|---|
org.apache.pdfbox.pdmodel |
The PDModel package represents a high level API for creating and manipulating PDF documents.
|
org.apache.pdfbox.pdmodel.edit |
The PDModel edit package will be used to store classes for creating page content.
|
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.text |
The PDModel text package deals with text states, operations, and parameters within the PDF document.
|
org.apache.pdfbox.util |
This package contains utility classes that are used by the PDFBox project.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,PDFont> |
PDResources.getFonts() |
This will get the map of fonts.
|
java.util.Map<java.lang.String,PDFont> |
PDResources.getFonts(java.util.Map<java.lang.String,PDFont> fontCache) |
Deprecated.
due to some side effects font caching is no longer supported, use
PDResources.getFonts() instead |
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
PDResources.addFont(PDFont font) |
Adds the given font to the resources of the current page.
|
java.lang.String |
PDResources.addFont(PDFont font,
java.lang.String fontKey) |
Adds the given font to the resources of the current page using the given font key.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,PDFont> |
PDResources.getFonts(java.util.Map<java.lang.String,PDFont> fontCache) |
Deprecated.
due to some side effects font caching is no longer supported, use
PDResources.getFonts() instead |
void |
PDResources.setFonts(java.util.Map<java.lang.String,PDFont> fontsValue) |
This will set the map of fonts.
|
Modifier and Type | Method | Description |
---|---|---|
void |
PDPageContentStream.setFont(PDFont font,
float fontSize) |
Set the font to draw text with.
|
Modifier and Type | Class | Description |
---|---|---|
class |
PDCIDFont |
This is implementation for the CIDFontType0/CIDFontType2 Fonts.
|
class |
PDCIDFontType0Font |
This is implementation of the CIDFontType0 Font.
|
class |
PDCIDFontType2Font |
This is implementation of the CIDFontType2 Font.
|
class |
PDMMType1Font |
This is implementation of the Multiple Master Type1 Font.
|
class |
PDSimpleFont |
This class contains implementation details of the simple pdf fonts.
|
class |
PDTrueTypeFont |
This is the TrueType implementation of fonts.
|
class |
PDType0Font |
This is implementation of the Type0 Font.
|
class |
PDType1AfmPfbFont |
This is implementation of the Type1 Font with a afm and a pfb file.
|
class |
PDType1CFont |
This class represents a CFF/Type2 Font (aka Type1C Font).
|
class |
PDType1Font |
This is implementation of the Type1 Font.
|
class |
PDType3Font |
This is implementation of the Type3 Font.
|
Modifier and Type | Method | Description |
---|---|---|
static PDFont |
PDFontFactory.createDefaultFont() |
Create a default font
|
static PDFont |
PDFontFactory.createFont(COSDictionary dic) |
This will create the correct font based on information in the dictionary.
|
static PDFont |
PDFontFactory.createFont(COSDictionary dic,
java.util.Map fontCache) |
Deprecated.
due to some side effects font caching is no longer supported,
use
PDFontFactory.createFont(COSDictionary) instead |
PDFont |
PDType0Font.getDescendantFont() |
Provides the descendant font.
|
Modifier and Type | Method | Description |
---|---|---|
PDFont |
PDFontSetting.getFont() |
This will get the font for this font setting.
|
Modifier and Type | Method | Description |
---|---|---|
void |
PDFontSetting.setFont(PDFont font) |
This will set the font for this font setting.
|
Modifier and Type | Method | Description |
---|---|---|
PDFont |
PDTextState.getFont() |
Get the value of the font.
|
Modifier and Type | Method | Description |
---|---|---|
void |
PDTextState.setFont(PDFont value) |
Set the value of the font.
|
Modifier and Type | Method | Description |
---|---|---|
PDFont |
TextPosition.getFont() |
This will get the font for the text being drawn.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.Map<java.lang.String,PDFont> |
PDFStreamEngine.getFonts() |
Modifier and Type | Method | Description |
---|---|---|
void |
PDFStreamEngine.setFonts(java.util.Map<java.lang.String,PDFont> value) |
Constructor | Description |
---|---|
TextPosition(int pageRotation,
float pageWidthValue,
float pageHeightValue,
Matrix textPositionSt,
float endXValue,
float endYValue,
float maxFontH,
float individualWidth,
float spaceWidth,
java.lang.String string,
int[] codePoints,
PDFont currentFont,
float fontSizeValue,
int fontSizeInPt) |
Constructor.
|
TextPosition(int pageRotation,
float pageWidthValue,
float pageHeightValue,
Matrix textPositionSt,
float endXValue,
float endYValue,
float maxFontH,
float individualWidth,
float spaceWidth,
java.lang.String string,
PDFont currentFont,
float fontSizeValue,
int fontSizeInPt) |
|
TextPosition(int pageRotation,
float pageWidthValue,
float pageHeightValue,
Matrix textPositionSt,
Matrix textPositionEnd,
float maxFontH,
float individualWidth,
float spaceWidth,
java.lang.String string,
PDFont currentFont,
float fontSizeValue,
int fontSizeInPt) |
|
TextPosition(PDPage page,
Matrix textPositionSt,
Matrix textPositionEnd,
float maxFontH,
float[] individualWidths,
float spaceWidth,
java.lang.String string,
PDFont currentFont,
float fontSizeValue,
int fontSizeInPt,
float ws) |
Constructor.
|