I created a diagram in draw.io that I'd like to include in my LaTeX file. Draw.io has the option to export as svg, png or pdf.
When the svg is included LaTeX re-renders the fonts inside the svg with its own style (font size and font family) which results in a bad looking diagram.
The png can be included and looks nice but I read that including a vector graphic usually gives better results in printing.
The pdf export of draw.io gives me a full A4 page around the diagram and lots of whitespace. I can include it in my LaTeX file but it the whitespace makes it look aweful.
Do you have a solution on including a draw.io image?
Let's say:
- How to crop a PDF to its content.
- How to stop rerendering an SVG so it looks the same in draw.io and LaTeX.