public class PDFFont extends PDFObject implements Serializable
Constructor and Description |
---|
PDFFont(String name,
String type,
Typeface typeface)
Constructs a PDFFont.
|
Modifier and Type | Method and Description |
---|---|
String |
getFont() |
String |
getName()
This is the most common method to use.
|
int |
getStyle() |
String |
getType()
Returns the PDF Type of this object
|
void |
write(OutputStream os)
Writes the object to the output stream.
|
getGeneration, getPDFDocument, getSerialID, setName, toArray, toString, writeEnd, writeStart
public PDFFont(String name, String type, Typeface typeface)
name
- The name for the font to be used in the document, ie /F1type
- The pdf type, ie /Type1pdfName
- The font name, ie Helveticastyle
- The android.graphics.Typeface style, e.g., Typeface.NORMALpublic String getName()
public String getType()
PDFObject
public String getFont()
public int getStyle()
java.awt.Font
public void write(OutputStream os) throws IOException
PDFObject
Writes the object to the output stream. This method must be overidden.
Note: It should not write any other objects, even if they are it's Kids, as they will be written by the calling routine.
write
in class PDFObject
os
- OutputStream to send the object toIOException
- on error