Replies: 3 comments 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
-
If you can test against PR #4327, adding calls to the new methods introduced there, please do so. |
Beta Was this translation helpful? Give feedback.
0 replies
-
PR #4327 is now merged, providing a solution to this problem. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
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