title: SVG in mPDF (PHP library )
body: <p>In php code I use <strong>mPDF</strong> library for generating PDF.
  I am facing a problem with insert svg into PDF
  The svg file I catch via POST:</p>
  
  <pre><code>   $svg = $_POST['structureSVG'];
     $svg_pdf = str_replace('"', '\'', $svg); //change " to '
  </code></pre>
  
  <p>proof what is inside:</p>
  
  <pre><code>   var_dump($svg_pdf);
      //shows string which contains: 
  &lt;svg&gt;...&lt;/svg&gt;
  </code></pre>
  
  <p>here I can be sure, that the SVG was captured correctly. So I put the SVG:</p>
  
  <pre><code>$html = " &lt;div&gt; $svg_pdf &lt;/div&gt; ";
  $mpdf -&gt; WriteHTML($html);
  $mpdf -&gt; Output('pdf/test_svg.pdf', 'I');
  </code></pre>
  
  <p>but unfortunately the SVG picture is not rendered in PDF</p>
  
  <p>thank You for any help</p>