Question
after place svg and pdf export file do not look like it shoud
- May 10, 2022
- 7 replies
- 4078 views
Der community,
i create an .svg File by script. In the end it will be placed automatically. If i open it in browser, it is looking fine. If i place it in InDesign, my preview is not correct, because it is rotated. If I export an PDF it looks more damage then the InDesign preview. It is an bug in InDesign, or it is my code not correkt for interpreting for indesign correct? There is no documentation for that by adobe.
I use svg in more grafics, and svg is usualy working in InDesign
thanks.
Here is my svg Code:
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1"
xmlns="http://www.w3.org/2000/svg"
viewBox="-318.309886183791 -318.309886183791 636.619772367581 636.619772367581"
width="636.619772367581" height="636.619772367581">
<style>
circle {
stroke-width: 318.3098861837907;
fill-opacity: 0;
}
text {
text-anchor: middle;
stroke: black;
stroke-width: 1px;
alignment-baseline: middle;
}
.d {
stroke: #F20039;
}
.i {
stroke: #FDC400;
}
.sg {
stroke: #23BC92;
}
</style>
<circle class="d" cx="0.0" cy="0.0" r="159.15494309189535" stroke-dashoffset="250" stroke-dasharray="500 500" />
<text x="200.0" y="0.0">50%</text>
<circle class="sg" cx="0.0" cy="0.0" r="159.15494309189535" stroke-dashoffset="750" stroke-dasharray="400 600" />
<text x="-200.0" y="2.4492935982947064E-14">50%</text>
<circle class="i" cx="0.0" cy="0.0" r="159.15494309189535" stroke-dashoffset="350" stroke-dasharray="100 900" />
<text x="-50.0" y="-120.0">10%</text>
</svg>
