Package com.orsonpdf
Class PDFFont
java.lang.Object
com.orsonpdf.PDFObject
com.orsonpdf.PDFFont
A
PDFObject representing a PDF font.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifier for the standard PDF font 'Courier'.static final StringIdentifier for the standard PDF font 'Courier-Bold'.static final StringIdentifier for the standard PDF font 'Courier-BoldItalic'.static final StringIdentifier for the standard PDF font 'Courier-Italic'.static final StringIdentifier for the standard PDF font 'Helvetica'.static final StringIdentifier for the standard PDF font 'Helvetica-Bold'.static final StringIdentifier for the standard PDF font 'Helvetica-BoldOblique'.static final StringIdentifier for the standard PDF font 'Helvetica-Oblique'.static final StringIdentifier for the standard PDF font 'Times-Bold'.static final StringIdentifier for the standard PDF font 'Times-BoldItalic'.static final StringIdentifier for the standard PDF font 'Times-Italic'.static final StringIdentifier for the standard PDF font 'Times-Roman'. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of the font within the PDF document (this is not the same as the font name).byte[]Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.Methods inherited from class com.orsonpdf.PDFObject
getGeneration, getNumber, getReference, toPDFBytes
-
Field Details
-
HELVETICA
Identifier for the standard PDF font 'Helvetica'.- See Also:
-
HELVETICA_BOLD
Identifier for the standard PDF font 'Helvetica-Bold'.- See Also:
-
HELVETICA_OBLIQUE
Identifier for the standard PDF font 'Helvetica-Oblique'.- See Also:
-
HELVETICA_BOLDOBLIQUE
Identifier for the standard PDF font 'Helvetica-BoldOblique'.- See Also:
-
TIMES_ROMAN
Identifier for the standard PDF font 'Times-Roman'.- See Also:
-
TIMES_BOLD
Identifier for the standard PDF font 'Times-Bold'.- See Also:
-
TIMES_ITALIC
Identifier for the standard PDF font 'Times-Italic'.- See Also:
-
TIMES_BOLDITALIC
Identifier for the standard PDF font 'Times-BoldItalic'.- See Also:
-
COURIER
Identifier for the standard PDF font 'Courier'.- See Also:
-
COURIER_BOLD
Identifier for the standard PDF font 'Courier-Bold'.- See Also:
-
COURIER_ITALIC
Identifier for the standard PDF font 'Courier-Italic'.- See Also:
-
COURIER_BOLDITALIC
Identifier for the standard PDF font 'Courier-BoldItalic'.- See Also:
-
-
Method Details
-
getName
Returns the name of the font within the PDF document (this is not the same as the font name).- Returns:
- The font name.
-
getObjectBytes
public byte[] getObjectBytes()Returns the bytes that go between the 'obj' and 'endobj' in the PDF output for this object.- Specified by:
getObjectBytesin classPDFObject- Returns:
- A byte array.
-