Class RMTextShapePdfr<T extends RMTextShape>
- java.lang.Object
-
- com.inductiveautomation.rm.pdf.writer.RMObjectPdfr<T>
-
- com.inductiveautomation.rm.pdf.writer.RMShapePdfr<T>
-
- com.inductiveautomation.rm.pdf.writer.RMTextShapePdfr<T>
-
public class RMTextShapePdfr<T extends RMTextShape> extends RMShapePdfr<T>
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.).
-
-
Constructor Summary
Constructors Constructor Description RMTextShapePdfr()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
writeRun(RMTextShape aText, RMTextRun aRun, RMTextRun aLastRun, RMPDFWriter aWriter)
Writes the given text run.protected void
writeShape(T aTextShape, RMPDFWriter aWriter)
Writes a given RMShape hierarchy to a PDF file (recursively).-
Methods inherited from class com.inductiveautomation.rm.pdf.writer.RMShapePdfr
getPdfr, writePDF, writeShapeAfter, writeShapeAll, writeShapeBefore, writeShapeChildren
-
Methods inherited from class com.inductiveautomation.rm.pdf.writer.RMObjectPdfr
getPdfr
-
-
-
-
Method Detail
-
writeShape
protected void writeShape(T aTextShape, RMPDFWriter aWriter)
Writes a given RMShape hierarchy to a PDF file (recursively).- Overrides:
writeShape
in classRMShapePdfr<T extends RMTextShape>
-
writeRun
public void writeRun(RMTextShape aText, RMTextRun aRun, RMTextRun aLastRun, RMPDFWriter aWriter)
Writes the given text run.
-
-