title: Not generating PDF/ image file from HTML
body: <p>I am using <a href="https://mpdf.github.io/" rel="nofollow noreferrer">mPDF</a> and other library for generating PDF/ Image from HTML code or file. below I have mentioned my HTML code from which need to generate .JPG or .PNG or .PDF</p>
  <pre><code>&lt;HTML&gt;
  &lt;head&gt;
  &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;http://codeclippers.xyz/320x50/app.min.css&quot; /&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div id=&quot;addsp320x50&quot;&gt;&lt;/div&gt;
  &lt;/body&gt;
  &lt;script src=&quot;http://codeclippers.xyz/320x50/app.min.js&quot;&gt;&lt;/script&gt;
  &lt;script type=&quot;text/javascript&quot;&gt;
  var availbleTitles = [&quot;title1&quot;, &quot;title2&quot;, &quot;title3&quot;, &quot;title&quot;];
  var availableVsprite =[&quot;https:\/\/dspbanners.s3.amazonaws.com\/creatives\/user_creatives_5f843d6b40d48_1602501995.jpeg&quot;, &quot;https:\/\/dspbanners.s3.amazonaws.com\/creatives\/user_creatives_5f843d6b7e2b0_1602501995.jpeg&quot;];
  var availableVicons = [&quot;&quot;];
  var availbleBasicOptions = [&quot;&quot;];
  var availbleDescription = [&quot;&quot;];
  var selectedVsprite = availableVsprite[Math.floor(Math.random() * availableVsprite.length)];
  var selectedVicons = availableVicons[Math.floor(Math.random() * availableVicons.length)];
  var selectedTitles = availbleTitles[Math.floor(Math.random() * availbleTitles.length)];
  var selectedDescription = availbleDescription[Math.floor(Math.random() * availbleDescription.length)];
  var selectedBasicOpt = availbleBasicOptions[Math.floor(Math.random() * availbleBasicOptions.length)];
  cOptions.isAnimated = true;
  cOptions.animatedVariation = &quot;vinfinite-scroll&quot;;
  cOptions.titleText = selectedTitles;
  cOptions.animationOptions[0].verticalInfiniteAnimation[0].backgroundSpriteURL = selectedVsprite;
  if(selectedVicons != &quot;&quot;) {
  cOptions.animationOptions[0].verticalInfiniteAnimation[0].showIcon = true;
  cOptions.animationOptions[0].verticalInfiniteAnimation[0].actionIconImage = selectedVicons;
  }
  cOptions.descrptionText = selectedDescription;
  for(const [key, value] of Object.entries(selectedBasicOpt)) {
  if(typeof value === 'boolean') {
  cOptions[key] = value;
  } else {
  cOptions[key] = value.replace(/&quot;/g, &quot;&quot;).trim()
  }
  }
  renderCreative();
  &lt;/script&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Thanks in advance</p>