• I have attempted to display png images in the pdf created with DK-PDF

    for some reason I have not had any success resizing images at all.
    I have trying via the element as well as attaching it to <div>, <td> and <span> as background-image … among the various css support methods found in the mPDF docs … nothing works?!

    looks perfect in the html before the pdf encapsulation begins!

    the question becomes … can DK-PDF / mPFD change the size of an image?! Anyone had any success doing so?

    any snippet of working code would be GREATLY appreciated!

    thanks

    -DJ

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello! Have you solved the problem?

    Thread Starter damelco

    (@damelco)

    of sorts … yes I found a work-around.
    mPDF completely reevaluates the style … and it handles thing in a very rigid manner most of us are unaccustomed to … it is almost like re-learning the whole html/css world. somethings you really need to think outside the box on how to achieve the effect you are after without using the obvious solutions.
    to resize images, in general, place all of the style code inline … as ugly and large as that may make your code … once it does what you want inline … then systematically you can assign classes/ids and begin consolidating some code into style sheets … but you will quick learn some style is simply ignored UNLESS it remains inline, period.
    hence was the source of my original issue … hopefully future releases of mPDF address a more friend use of style via style-sheets

    -DJ

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘displaying images … resizing broken?’ is closed to new replies.