title: Dompdf not generating pdf properly from SVG
body: <p>I am having trouble generating pdf keeping design with SVG content. SVG is linked inside html, and using html to generate pdf. But not working properly.</p>
  
  <p>This is the code:</p>
  
  <pre><code>$dompdf = new DOMPDF();
  
  //HTML Content
  $html = &lt;&lt;&lt;EOD
  &lt;html&gt;
      &lt;head&gt;
          &lt;style type="text/css"&gt;
              html {
                  margin: 1%;
                  padding: 0;
              }
              .header,
              .footer {
                  width: 100%;
                  text-align: center;
                  position: fixed;
                  font-size: 26px;
              }
              .header {
                  top: 0px;
              }
              .footer {
                  bottom: 18px;
              }
              .center {
                  margin: 0 auto;
              }
              .divTable{
                  display: table;
                  width: 100px;
                  text-align: center;
                  margin: 0 auto;
              }
              .divTableRow {
                  display: table-row;
              }
              .divTableHeading {
                  margin: 0 auto;
              }
              .divTableCell, .divTableHead {
                  display: table-cell;
                  padding: 0 33px;
              }
              .bottom .divTableCell {
                  padding-top: 30px;
              }
              .divTableHeading {
                  display: table-header-group;
                  font-weight: bold;
              }
              .divTableFoot {
                  display: table-footer-group;
                  font-weight: bold;
              }
              .divTableBody {
                  display: table-row-group;
              }
              div.img-border img {
                  border: 2px solid #eb0089;
              }
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="center"&gt;
              &lt;div class="divTable top"&gt;
                  &lt;div class="divTableBody"&gt;
                      &lt;div class="divTableRow"&gt;
                          &lt;div class="divTableCell" style="padding-left:0px;"&gt;&lt;div class="img-border"&gt;&lt;img src="$small_image"&gt;&lt;/div&gt;&lt;/div&gt;
                          &lt;div class="divTableCell"&gt;&lt;div class="img-border"&gt;&lt;img src="$small_image"&gt;&lt;/div&gt;&lt;/div&gt;
                          &lt;div class="divTableCell" style="padding-right:0px;"&gt;&lt;div class="img-border"&gt;&lt;img src="$small_image"&gt;&lt;/div&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="divTable bottom"&gt;
                  &lt;div class="divTableBody"&gt;
                      &lt;div class="divTableRow"&gt;
                          &lt;div class="divTableCell" style="padding-left:0px;"&gt;&lt;div class="img-border"&gt;&lt;img src="$large_image"&gt;&lt;/div&gt;&lt;/div&gt;
                          &lt;div class="divTableCell" style="padding-right:0px;"&gt;&lt;div class="img-border"&gt;&lt;img src="$large_image"&gt;&lt;/div&gt;&lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="footer"&gt;
              $customer_title - $customer_order_number
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  EOD;
  
  //PDF Options
  $dompdf-&gt;set_option( 'dpi' , '300' );
  $dompdf-&gt;load_html($html);
  $dompdf-&gt;setPaper('A4', 'portrait');
  $dompdf-&gt;set_option( 'isRemoteEnabled', true );
  $dompdf-&gt;render();
  
  $output = $dompdf-&gt;output();
  file_put_contents('path-to-pdf/new.pdf);
  </code></pre>
  
  <p>Here is the html view (including svg): <a href="https://nayemsu.fi/pdftest/index.html" rel="noreferrer">view here</a></p>
  
  <p>This is how the generated pdf looks like: <a href="https://i.stack.imgur.com/Qolbl.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Qolbl.png" alt="enter image description here"></a></p>
  
  <p>However, when I use PNG image, it works fine.
  This is how the generated pdf looks like (using png): <a href="https://i.stack.imgur.com/Y0rFc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Y0rFc.png" alt="enter image description here"></a></p>
  
  <p>Not sure what I am doing wrong!</p>