KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

HTML to PDF, Text is incomplete when starting a new page. #2376

Closed sawit opened this topic on on Oct 7, 2021 - 1 comments

sawit commented on Oct 7, 2021

How do I fix the issue of text being cut off when starting a new page?

This text is in a table and an image is inserted within the text.

/ include bootstrap3.css / Set font-family

$report->run()
->export('SakilaRentalPdf')
->pdf(array(
    "format"=>"A4",
    "orientation"=>"portrait",
    //"zoom"=>2,
    "margin"=>array(
        "top"=>"0.2in",
        "bottom"=>"0.5in",
        "left"=>"0.4in",
        "right"=>"0.4in;"
    ),
))
->toBrowser("sakila_rental.pdf",true);

KoolReport commented on Oct 8, 2021

This is a known issue with phantomjs which is used by export package. Probably you should try the cloudexport which use chromeheadless engine.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

Export