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>
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
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
-
Constructor Details
-
RMTextShapePdfr
public RMTextShapePdfr()
-
-
Method Details
-
writeShape
Writes a given RMShape hierarchy to a PDF file (recursively).- Overrides:
writeShape
in classRMShapePdfr<T extends RMTextShape>
-
writeRun
Writes the given text run.
-