KoolReport's Forum

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

Margin on a Export to pdf? #2675

Open Richb201 opened this topic on on May 15, 2022 - 2 comments

Richb201 commented on May 15, 2022

I have managed to get the export to pdf working. Unfortunately the text is now running off the page (see below)

I tried changing the margin by using: ->pdf(array( "format"=>"A4", "margin" => ".2in", ))->to Browser($szFilename,FALSE);

But that doesn't seem to fix the margin issue. How can I get the entire width to print to pdf?

Sebastian Morales commented on May 16, 2022

Are you using Export or CloudExport package? Pls try this margin option instead:

            "margin" => [
                "top" => "0.2in",
                "bottom" => "0.2in",
                "left" => "0.2in",
                "right" => "0.2in",
            ],

or using CSS margin like this:

https://www.koolreport.com/docs/export/get_started/#export-to-pdf-set-paper-margin-on-the-view

Richb201 commented on May 16, 2022

works great. thx

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
solved

None