Not working with domPDF

Created on 30 May 2024, 24 days ago
Updated 20 June 2024, 3 days ago

Problem/Motivation

I use dompdf to print node body values to pdf. On the one hand with entity print pdf but also by custom code.

The problem is that blazy is not generating the image correct to pdf. The result of the image is a very blury image. Maybe the first loading of the image. On a webpageperfect but not to PDF.

a) Currently i call $html = check_markup($node->get('body')->value, $node->get('body')->format);
to get the markup of the complete html. Should I do this different?

b) Is there a function to process the blazy filter to a final markup with custom code

Steps to reproduce

Proposed resolution

Data model changes

💬 Support request
Status

Fixed

Version

2.26

Component

Documentation

Created by

🇳🇱Netherlands myDrupal2014_846824658246

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Status changed to Postponed: needs info 24 days ago
  • 🇮🇩Indonesia gausarts

    Thank you.

    Any screenshots of Blazy formatter form, please?

    > blazy is not generating the image correct to pdf. The result of the image is a very blury image.
    Blazy does not generate any image. It picks up what is given. Please follow the steps:

    • At your Media types > Document > Edit/manage fields.
    • Add an existing, not new, Image field, named field_media_image, exactly as what core Media already provided.
    • Upload your hi-res image preview for PDF with this Image field.
    • At Blazy formatter, choose this Image under Main stage option. Please read its description, it explains what you need.

    Be sure to repeat the same procedure for (Remote| local) Video, Audio, etc.

    That way Blazy will display this preview whenever needed.

    Let me know if still an issue?

  • 🇳🇱Netherlands myDrupal2014_846824658246

    Thxs, I followed the steps you gave and some other things and now it is working !
    Thxs again !

  • Status changed to Fixed 3 days ago
  • 🇮🇩Indonesia gausarts

    Glad you did it :)

    Thanks for the follow up.

Production build 0.69.0 2024