HTML Drawing Control

Use SymbolsHandler.java for Enhanced MetaFile PDF reports

The core provides a mechanism to allow application developers to implement their own print logic for EMF or Enhanced MetaFile-based PDF reports. The mechanism is SymbolsHandler.java , which has one method:

draw(final java.awt.Graphics emfGraphics, final ReportPropertiesDef reportPropertiesDef, final double emfScale, final JSONObject publishedJSONHeader)

Developers can implement the draw() method for their PDF. For example, if developers create their own symbols handler as com.archibus.app.solution.common.report.mySymbolsHandler , they set up the following in their javaScript:

pdfParameters.symbolsHandler = 'com.archibus.app.solution.common.report.mySymbolsHandler';

The core invokes the draw() function defined in mySymbolsHandler.java after drawing highlights, but before drawing labels.

Example outputs are:

pdf_emf.png

print_svg_pdf.png

Examples:

To implement this feature in your views, review the following examples. Consult your Archibus Business Partner or Archibus Professional Services for more details.