Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Workspace Image SVG conversion - compatibility issue with PDF
Workspace Image SVG conversion - compatibility issue with PDF [message #1860649] Wed, 23 August 2023 17:32 Go to next message
Jonathan Menzies is currently offline Jonathan MenziesFriend
Messages: 60
Registered: May 2020
Location: California
Member
Hey there,

We have a diagram that is created in the odesign using a node, with a workspace image inside. The image used is an SVG .

We have extend the image export dialog from the diagram editor in order to allow generation of PDF's, this uses xmlgraphics.fop to take the diagram after it's converted to an SVG and then transcode that into a PDF.

Sometime between Sirius 6.2.2 and 7.0.5 the export to SVG changed and is now including the image used by the workspace image into the generated SVG with the symbol tags. Unfortunately this is doing so in a way that is incompatible with the xmlgraphics.fop in the org.apache.batik.bridge.SVGPatternElementBridge.
(may be related to https://issues.apache.org/jira/browse/BATIK-1051)

As far as I can see it's related to SiriusDiagramSVGGenerator line 276, where it adds the symbol tags for referenced SVG images.

I've attached the before and after just so you can see the difference.

Wondering if there is anything we can do here to get this working?

Cheers
Jonathan
Re: Workspace Image SVG conversion - compatibility issue with PDF [message #1860719 is a reply to message #1860649] Tue, 29 August 2023 06:50 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 300
Registered: July 2009
Senior Member
Hi,
The mentioned line, SiriusDiagramSVGGenerator line 276, has been added for bugzilla 578509 to improve quality of exported SVG. As workaround, I think you can disable this "new" behavior (added in Sirius 7.0.1) by setting the system property "org.eclipse.sirius.diagram.ui.enableEmbeddedSVGInSVGExport" to false :
System.setProperty(SiriusDiagramSVGGenerator.ENABLE_EMBEDDED_SVG_IN_SVG_EXPORT, "false");


Could you check in your context and give us some feedback?

Regards,

Laurent


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Workspace Image SVG conversion - compatibility issue with PDF [message #1860764 is a reply to message #1860719] Fri, 01 September 2023 17:08 Go to previous message
Jonathan Menzies is currently offline Jonathan MenziesFriend
Messages: 60
Registered: May 2020
Location: California
Member
Hi Laurent,

Thanks for your response. Ahh that makes sense.

Disabling that system property does indeed stop it from embedding the SVG into the SVG and allows us to export to PDF again. This will work well for us for now.

Is there any chance of Sirius adding in PDF export functionality in the future? Obviously we would like to be able to reap the benefits of 578509 whilst still being able to export to pdf.

Cheers
Jonathan


Previous Topic:Multiple auto-arrange
Next Topic:Bundled image shape could not be found
Goto Forum:
  


Current Time: Thu Dec 12 04:56:40 GMT 2024

Powered by FUDForum. Page generated in 0.03263 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top