question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

When exporting large ER diagram to SVG the result is cropped

See original GitHub issue

I had a look and I found this related issue: #3099 and I also found a comment explaining a workaround (see https://github.com/dbeaver/dbeaver/issues/3099#issuecomment-490088699), but I couldn’t get it to work.

Please find attached the SVG as produced by DBeaver. When I open it with my system viewer (I have Chrom and Edge for Windows), it only shows one small part of the diagram. Zooming out doesn’t help. However, I was able to manually add the width and height attributes to the top-level <svg> element to get the whole diagram to show (in my case I used <svg width="2400" height="6700">). Possibly there are better ways to achieve the same thing, but I have as good as no knowledge about SVG, so I wouldn’t really know.

Possibly this is a limitation of the viewer (like Chrome), but somehow I doubt that and rather suspect that some attribute is missing in the XML.

System information:

  • Operating system (distribution) and version: Windows 10
  • DBeaver version: 7.3.5
  • Additional extensions: SVG Extension 1.0.87

Connection specification:

  • Database name and version
  • Driver name
  • Do you use tunnels or proxies (SSH, SOCKS, etc)?

Describe the problem you’re observing:

Steps to reproduce, if exist:

Include any warning/errors/backtraces from the logs

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
knutwannhedencommented, Mar 23, 2021

Yes! With the Early Access it now works as expected. The version of the SVG extension is now also updated: 1.0.89.202103211229. I was assuming I would only have to update the existing plug-in.

0reactions
ShadelessFoxcommented, Mar 23, 2021

To be really sure, can you install the Early Access version? https://dbeaver.io/files/ea/

Thanks again.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Export a diagram to various file formats : draw.io is becoming ...
Export your diagram to an image · Select File > Export as then choose the image format you want to generate - PNG,...
Read more >
MySQL WorkBench EER diagram dimensions are terrible
Several options are possible: 1) Export as png and simply cut off the unwanted parts. Depending on the further usage this might be...
Read more >
How can I make fit the diagram in the page? - Super User
Show activity on this post. 1 export file as SVG. 2 open SVG in Inkscape and save copy as PDF. Save this answer....
Read more >
ER Diagrams in Dia - Exporting Your Diagram - YouTube
This tutorial explains how to export your ER diagram from the Dia Diagram Software into a PNG format that can be imported and...
Read more >
How to ER Diagram export as PNG, SVG or PDF file - YouTube
How to ER Diagram export as PNG, SVG or PDF file | MySQL Workbench Tutorial (2020). In this video I will show you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found