With Salt the only available output format is PNG, one can request for EPS or whatever but the result will always be a PNG image even if file will be named .eps, see PSystemSalt.exportDiagram() .
After a little investigation a solution could be an ImageBuilder in PSystemSalt then one can use:
builder.addUDrawable(new UDrawable() {
@Override
public void drawU(UGraphic ug) {
salt.drawU(ug, 0, new Dimension2DDouble(size.getWidth(), size.getHeight()));
salt.drawU(ug, 1, new Dimension2DDouble(size.getWidth(), size.getHeight()));
}
});
or
builder.addUDrawable(new UDrawable() {
@Override
public void drawU(UGraphic ug) {
ug.draw(new UImage(im));
}
});
Or may be you guys have some better solution.
With the above solution there is a NPE in EpsGraphics and the result is not as high-quality as expected.
Minimal eps/pdf support is required to use PlantUML with Sphinx.
Regards,
Mar