php - DOMPDF background image looks sharp sometimes -


I am using DOMPDF to create a certificate so that people can print it. The problem is that the background image sometimes looks sharp and sometimes it looks good, sometimes it does not and I can not believe why.

My PDF is the HTML code:

    

Image

and can be found on my PDF generator code:

    

Anyone running in the same problem? It looks like a terrible error and I can tell the reason for all your help in advance thanks

You can do the resolution by using the following variable: def ("DOMPDF_DPI", 96); Dompdf_config.inc.php

  / ** * Image DPI setting in * 

This setting determines the default DPI setting for images and fonts. * DPI can be overridden for inline images, from which the width of images & amp; Height style attributes (i.e. if the image's original * width is 600 pixels and you specify the width of the image as 72 digits, then the PDF in the image will have 600 DPI in the image. * DPI of the background images can not be overridden And for the purposes of DMPDF, pixels per inch (ppi) = dots per inch (dpi) * if a px in the html (or as an image size without unit) d , Then it * shows the related size in PT. * This context adjusts the relative size of the html page rendering in the browser. * * In PDF, always 1 pt = 1/7 inches * * Rendering resolution in various browsers PX per inch: * Windows Firefox and Internet Explorer: * System control-> Display Properties-> FontSolution: Default: 96, Large fonts: 120, Custom: * About Inks Firefox: * Configure * Resolution: default: 96 * is ignored Aksog screen dimensions mm and desktop font DPI settings) * Note About the Browser additional font / image zoom factor. * * In images, & lt; Img & gt; The size in the pixel specialty, the IMG CSS style, the real image dimensions in PX for rendering * are overridden. * /

Comments