Replies: 1 comment 2 replies
-
PhpSpreadsheet can write spreadsheets with charts to PDF. Before writing, you need to identify a chart renderer, e.g. \PhpOffice\PhpSpreadsheet\Settings::setChartRenderer(
PhpOffice\PhpSpreadsheet\Chart\Renderer\MtJpGraphRenderer::class
); And you must tell the writer to include charts: $writer->setIncludeCharts(true); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using PHP and PhpSpreadsheet to create statistic files, now I need to add some graph/chart to the statistic.
It works fine creating the xlsx file with data and charts - but when I try to store the spreadsheet as a PDF file the chart is missing.
I have subsequently read that PhpSpreadsheet don't support storing chart to PDF but it was in some old articles. Is that still a issue?
If so, does anyone have a solution to embed chart into the xlsx files so it can be stored as a PDF file.
Thanks in advance.
/Torben
Beta Was this translation helpful? Give feedback.
All reactions