Technical discuss

Solve Mini image in dompdf

More
09 Oct 2024 20:36 #201 by bluetooth
New Topic
Request: DomPDF update to latest version | Fabrik Forum
  • Joomla! 5.4

    You must update to Fabrik4.5.6 (available since August) if you are running Joomla!5.4

    See Announcements

  • Fabrik 4.6.2 for J!4 and J!5 is out

    For details (especially if you already updated to F4.6 or F4.6.1) see Announcements

Request: DomPDF update to latest version

  • Thread starter Thread starter sunnyjey
  • Start date
    I can see these mini images, too.
    It's ok with mPDF, so domPDF seems to miss something.

    The image size is ok (in details PDF) if you set "PDF Bootstrap"=no in form [Layout] settings.

    But I assume then some other CSS may be missing.
    So we have to find which CSS rule must be added to get the image size correctly in DomPDF...

    Edit:
    For fileupload images:
    Modify (or override) plugins\fabrik_element\fileupload\layouts\fabrik-element-fileupload-image.php, line 5 (set style= instead of HTML4 height=)
    Code:
    $height = empty($d->height) ? '' : ' style="height:' . $d->height . 'px;width:auto;" ';

    Please Log in or Create an account to join the conversation.