Open joaowick opened 5 years ago
I am also having some issues with SVG. It seems like that Rotativa can not handle all SVG elements.
For example -> I can group elements with <g>
but when i try to reuse this element using the <use>
statement, they will not appear in the PDF.
This Code...
`
<g id="test">
<circle cx="50" cy="50" r="40" stroke="green" stroke-width="4" fill="yellow" />
<circle cx="50" cy="50" r="20" stroke-width="2" fill="green" />
<circle cx="50" cy="50" r="10" stroke-width="2" fill="black" />
</g>
<use href="#test" x="100" y="100" />
<use href="#test" x="200" />
`
...will become this in browser
...but this in PDF
As you can see, the elements in <g>
are shown, but the <use>
statement is simply not rendered
Same when i try to use <clipPath>
. Instead of clipping the elements outside the <clipPath>
everything will disappear in PDF.
I am trying to convert from view that there is file svg to PDF. See image below.
See that the word "Febraban" was disappeared... Does anyone know why?
See the codes below:
CSHTML
public class PdfController : Controller { [HttpGet] public ActionResult Certificado() { return View(); }