Open NolwennR opened 2 years ago
Hi @NolwennR !
For now there is no official configuration of changing the default value of "exportUsingSVG". Inside Diagram Template this property default value is set to true
and the page is not modifiable.
What you can do is to create your own Template and Template Provider
For the Template page, you should add in object mode a Diagram.DiagramClass
object and set exportUsingSVG
to the value that you want to be the default ("No" in your case). After this, while creating the new TemplateProvider, you need to select your Template and copy the rest of the configurations from the old Diagram.DiagramTemplateProvider
.
Now it will look like this when a new page is created (you can add what name and description you think it's best):
Let me know if you need more details!
When trying to export pages containing diagrams, pdf result is different using SVG or image : Diagram :![image](https://user-images.githubusercontent.com/35705805/136592600-5ed21bd0-32bd-47ab-8a8d-5d4de7452343.png)
Using SVG export![image](https://user-images.githubusercontent.com/35705805/136592368-db86cf7b-fa2f-4d43-b255-828e1afeca01.png)
Using png export:![image](https://user-images.githubusercontent.com/35705805/136592519-6db0d2ee-4f97-473b-991c-2859e354126d.png)
Is there any way to select image for pdf export by default ? Any time a new diagram is created, we have to change the DiagramClass property exportUsingSVG to No.