KoolReport's Forum

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

Export to PDF - Fit content onto single Page #440

Open Justin opened this topic on on Aug 30, 2018 - 2 comments

Justin commented on Aug 30, 2018

I am exporting html to PDF - everything outputs great, but I was wondering if there is any setting or way to set the contents to fit onto a single page (even if it scales really small, that's fine)? Or, if I am using CSS like page-break-after: always to create multiple pages, have each set of content scale to an individual page?

KoolReport commented on Sep 2, 2018

The manual solution is to use the "zoom" property:

->pdf(array(
    "zoom"=>3
))

The higher the value, the small text on the page will be. Currently Export could not able to set a automatic zoom to fit output into single page, it will require package to estimate the length of the page. I will record your interesting idea for dev.team to work on a solution.

Justin commented on Sep 3, 2018

great, sounds good! What package/function do I use to estimate the length of the page?

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
suggestion

Export