KoolReport's Forum

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

Phantomjs PDF Options ? #3062

Open Long opened this topic on on May 31, 2023 - 3 comments

Long commented on May 31, 2023

I don't find any Phantomjs PDF Options example or documentation ? Please help and provide example.

KoolReport commented on May 31, 2023

Hi Long,

If you are using the CloudExport package then the Chromeheadless engine will be used. PhantomJs is used in Export package only.

Here is example of CloudExport

Let us know if you need further information.

Regards,

Long commented on May 31, 2023

Yeah, i know that. I'm using CloudExport package like example on GitHub

$report->run()
->cloudExport("MyReportPDF")
->phantomjs("token-key")
->pdf($phantomjsPDFOption)
->toBrowser("myreport.pdf");

And it's work. But i don't know what $phantomjsPDFOption contain or example. Can you provide some example of Phantomjs PDF Options ?

Sebastian Morales commented on May 31, 2023

To answer your question, CloudExport's phantomjs engine applies the same PDF options as the one in Export package does:

https://www.koolreport.com/docs/export/get_started/#export-to-pdf

If there's any issue let us know. Cheers,

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

CloudExport