Feeding SVG into a View

Started by FredFlintstone, February 10, 2025, 22:21:12 PM

Previous topic - Next topic

FredFlintstone

I'l like to compile a SVG table using JArchi and have it rendered within a view, is this possible?

The part where data has to go into a SVG stream I can get working, but the part where the resulting stream has to go into the view I cannot, and maybe it's not doable at all :-(

If the later, any suggestions as how to include a predefined set of properties and related data for elements on a single selected view within the same view?

Thanks for a awesome suite of tools :-D

Phil Beauvoir

#1
Hi, I don't quite understand what you're asking here. Do you want to add an SVG image to an element in a VIew?

You can export Views as SGV images. However, SVG is not supported as a format when adding an image to an element (Eclipse only supports PNG, JPG, BMP and GIF).

If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

FredFlintstone

Looking for a solution where I can have a view populated with aditional property data from specific elements. The data should be displayed in a table like style as part of the view when being exported to PDF. In short round tripping data from elements witihin the view back into the view before calling the renderViewToPDF function.

The export to PDF should be done on a selected view basis and not on a full model like what seems to be the Jasper report aproach.

Challenge is that I cannot use MD as intermediate format and then use Pandadoc :-(, like some of the solutions that I have found so far.

Phil Beauvoir

If I understand you correctly, you want to generate an image of a table and display that image in a View? If so, the generation of the table image will have to be done using a JS library based on the data you provide from the model, saved as a PNG and then the resulting PNG image set to a Note in the View.
If you value and use Archi, please consider making a donation.
Ask your ArchiMate related questions to the ArchiMate Community's Discussion Board.

FredFlintstone

Thanks Phil,

kind of what I was worried about, would have been great if SVG rendering was possible. Well I'll see if I can make that work.