title: How to reduce the PDF file size of MPDF
body: <p>I am creating a 15 to 20 pages PDF using MPDF on Form Submission. PDF file size comes around 2.5MB. Is there a way to reduce the file size below 1 MB?</p>
  
  <p>Since the SetCompression() default value is True, I tried setting this to False and checked the file size of PDF. There is no change in file size.
  I tried SetCompression() and still no luck.
  I even reduced the PDF to 3 pages, size sill comes around 1.5MB. 
  Is there any other way to reduce the file size?</p>
  
  <p>Can someone help me with this?</p>
  
  <p>Below is the link for the code which I used.</p>
  
  <pre><code>[https://pastebin.com/fvvADjxh][1]
  </code></pre>
  
  <p><a href="https://pastebin.com/fvvADjxh" rel="nofollow noreferrer">https://pastebin.com/fvvADjxh</a></p>