title: How to add a watermark with Yii2 kartik-mpdf
body: <p>How can I add watermark image on pdf using kartik-pdf?</p>
  
  <p>Here is the line I added:</p>
  
  <pre><code>'options' =&gt; [
      'title' =&gt; 'Title',
      'showWatermarkText' =&gt; true,
      'showWatermarkImage' =&gt; true,
  ],
  // call mPDF methods on the fly
  'methods' =&gt; [ 
      'SetHeader' =&gt; ['Title'], 
      'SetFooter' =&gt; ['{PAGENO}'],
      'SetWatermarkText' =&gt; ['DRAFT'],
      'SetWatermarkImage' =&gt; $basepath . '/images/imgbox1.jpg',
  ]
  </code></pre>
  
  <p>Only the text watermark display.</p>
  
  <p>Is there something wrong on how I used watermarkImage?</p>