Compatibility with PlantUML
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Short summary: `style=
How to produce such a PDF?
PlantUML file:
@startuml
Bob->Alice : hello
@enduml
Execute plantuml.jar to get the SVG:
java -jar plantuml.jar -tsvg example.txt
Generated SVG:
```
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg xmlns="http://
contentScr
style=
<defs>
<filter height="300%" id="f1bh39diomyks7" width="300%" x="-1" y="-1">
<
<
<feOffset dx="4.0" dy="4.0" in="blurOut2" result="blurOut3"/>
<feBlend in="SourceGraphic" in2="blurOut3" mode="normal"/>
</filter>
</defs>
<g>
<line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="29" x2="29" y1="39.6094"
<line style="stroke: #A80036; stroke-width: 1.0; stroke-dasharray: 5.0,5.0;" x1="85" x2="85" y1="39.6094"
<rect fill="#FEFECE" filter=
<text fill="#000000" font-family=
</text>
<rect fill="#FEFECE" filter=
<text fill="#000000" font-family=
</text>
<rect fill="#FEFECE" filter=
<text fill="#000000" font-family=
</text>
<rect fill="#FEFECE" filter=
<text fill="#000000" font-family=
</text>
<polygon fill="#A80036" points=
<line style="stroke: #A80036; stroke-width: 1.0;" x1="29.5" x2="79" y1="71.6094" y2="71.6094"/>
<text fill="#000000" font-family=
x="36.5" y="67.1045">hello
</text><!--
@startuml
Bob->Alice : hello
@enduml
PlantUML version 1.2017.15(Mon Jul 03 18:45:34 CEST 2017)
(GPL source distribution)
Java Runtime: Java(TM) SE Runtime Environment
JVM: Java HotSpot(TM) 64-Bit Server VM
Java Version: 1.8.0_161-b12
Operating System: Windows 10
OS Version: 10.0
Default Encoding: Cp1252
Language: de
Country: DE
-->
</g>
</svg>
```
Now use inkscape to convert it to PDF:
inkscape -z -D --file=example.svg --export-
Expected result: PDF with the correct page size
Got result: PDF with huge white border and following output:
```
** (inkscape.
** (inkscape.
```
Same issue when exporting to png.
Inkscape seems to ignore the drawing size when encountering this issue.
I checked, the code generated by Plantuml seems perfectly valid SVG 1.1