Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDF export with SVG is rendered badly #207

Open
NolwennR opened this issue Oct 8, 2021 · 1 comment
Open

PDF export with SVG is rendered badly #207

NolwennR opened this issue Oct 8, 2021 · 1 comment

Comments

@NolwennR
Copy link

NolwennR commented Oct 8, 2021

When trying to export pages containing diagrams, pdf result is different using SVG or image :
Diagram :
image

Using SVG export
image

Using png export:
image

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.

@oanalavinia
Copy link

oanalavinia commented Oct 19, 2021

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):
image

Let me know if you need more details!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants