Search code examples
phphtml2pdf

HTML2PDF has blurry pdf output


I need some help, why is it that the resolution of my html2pdf is blurry? How can I adjust the resolution?.


Solution

  • There are some parameters like ImageQuality and DisablePdfCompression you have to pass which is defining the image quality, pdf compression and pdf size. Here is some details of it.

    ImageQuality

    Integer: Values from 1 to 100 resp. 101. Default is 101 (lossless compression) Can be used to decrease PDF files size. The smaller the value the smaller the PDF file size. A reasonable value is 75.

    DisablePdfCompression

    Integer: 0 (Standard), 1 do not use lossless compression on pdf objects

    For more details : http://www.html2pdf.solutions/en/Support/Parameters_for_html2pdf.htm