Convert dot's svg output to pdf is incorrectly.
Versio:
rsvg-convert -v
rsvg-convert version 2.46.4
My dot code is:
digraph {
node[shape=record]
rankdir = LR
H[label="temp_user_authorize_his | id | <user_id>user_id | parent_id | start_date | end_date ",color=blue]
}
The out put of dot command is :
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Generated by graphviz version 2.43.0 (0)
-->
<!-- Title: %3 Pages: 1 -->
<svg width="165pt" height="141pt"
viewBox="0.00 0.00 164.74 141.00" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<g id="graph0" class="graph" transform="scale(1 1) rotate(0) translate(4 137)">
<title>%3</title>
<polygon fill="white" stroke="transparent" points="-4,4 -4,-137 160.74,-137 160.74,4 -4,4"/>
<!-- H -->
<g id="node1" class="node">
<title>H</title>
<polygon fill="none" stroke="blue" points="0,-0.5 0,-132.5 156.74,-132.5 156.74,-0.5 0,-0.5"/>
<text text-anchor="middle" x="78.37" y="-117.3" font-family="Times,serif" font-size="14.00">temp_user_authorize_his</text>
<polyline fill="none" stroke="blue" points="0,-110.5 156.74,-110.5 "/>
<text text-anchor="middle" x="78.37" y="-95.3" font-family="Times,serif" font-size="14.00">id</text>
<polyline fill="none" stroke="blue" points="0,-88.5 156.74,-88.5 "/>
<text text-anchor="middle" x="78.37" y="-73.3" font-family="Times,serif" font-size="14.00">user_id</text>
<polyline fill="none" stroke="blue" points="0,-66.5 156.74,-66.5 "/>
<text text-anchor="middle" x="78.37" y="-51.3" font-family="Times,serif" font-size="14.00">parent_id</text>
<polyline fill="none" stroke="blue" points="0,-44.5 156.74,-44.5 "/>
<text text-anchor="middle" x="78.37" y="-29.3" font-family="Times,serif" font-size="14.00">start_date</text>
<polyline fill="none" stroke="blue" points="0,-22.5 156.74,-22.5 "/>
<text text-anchor="middle" x="78.37" y="-7.3" font-family="Times,serif" font-size="14.00">end_date</text>
</g>
</g>
</svg>
The I use rsvg-convert to convert the out to pdf: The text in node is outside of the node. Why?
Next I use svg2pdf to convert, the result is:
I don't know Why?
I found the letter spacing in rsvg-convert 's out put is so bigger, does this is the reason?Some solution to solve it?
Edited by Gowa2017