Package com.reportmill.pdf
Class PDFText
java.lang.Object
com.reportmill.pdf.PDFText
This class generates PDF for an RMText. This would be a simple matter of using the PDF set-font and show-text
 operators, except that we need to embed PDF type3 fonts (really char paths) for all chars printed in non-standard
 fonts. We do this by tracking used chars in the PDFText.FontEntry class. Used chars in the ASCII range (0-255)
 make up a base font "Font0", while chars beyond 255 get written out as separate PDF fonts for each block of 256
 ("Font0.1", "Font0.2", etc.).
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classAn inner class to store font info.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PDFStreamcharProcStreamForChar(RMFontFile fontFile, char aChar) Returns a pdf stream buffer with given char written as a char proc.static voidwriteExtendedFont(RMFont aFont, PDFFile pdfFile, int fontCharSet) Writes the given font char set to the given pdf file.static voidWrites the given font to the given pdf file.static voidwriteText(RMText aText, PDFFile pdfFile, PDFPageBuffer aBuffer) Writes PDF for given RMText.
- 
Field Details- 
_pdfBuiltInsHolds a list of all the PDF built in font name variants.
- 
_pdfBuiltIns2Holds a list of all the PDF build font names.
 
- 
- 
Constructor Details- 
PDFTextpublic PDFText()
 
- 
- 
Method Details- 
writeTextWrites PDF for given RMText.
- 
writeFontWrites the given font to the given pdf file.
- 
writeExtendedFontWrites the given font char set to the given pdf file.
- 
charProcStreamForCharReturns a pdf stream buffer with given char written as a char proc.
 
-