• Resolved gvh

    (@gvh)


    Hello

    I can’t seem to get the position of images and the text wrap to reproduce from the HTML page/post. I’ve tried various ideas in the index.php with no luck. The image always stays aligned left, and unfortunately the text wrap is rather jumbled.

    Any ideas?

    thanks,
    george

    https://wordpress.org/plugins/wp-pdf-templates/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter gvh

    (@gvh)

    Here’s the solution to proper text wraping.

    Uncomment define(“DOMPDF_ENABLE_CSS_FLOAT”, true); in /wp-content/plugins/wp-pdf-templates/dompdf/dompdf_config.custom.inc.php

    This one’s resolved for me.

    Thanks for the great plug-in.

    geo

    Brilliant! I remember facing similar issues with another app I was using DOMPDF in. This seemed to work there as well.

    Please make sure you move the line define( "DOMPDF_ENABLE_CSS_FLOAT" , true ); to your wp-config.php to retain this modification even after updating the plugin. The file wp-content/plugins/wp-pdf-templates/dompdf/dompdf_config.custom.inc.php gets rewritten when the plugin updates.

    Cheers!

    Antti

    Thread Starter gvh

    (@gvh)

    Thanks Antti. The config file never occurred to me. It’s nice to not have to worry about the updates. I moved the line to wp-config.php, and of course, it works fine from there.

    Best

    geo

    [marked topic as resolved]

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘images and text wrap’ is closed to new replies.