Many reports must contain charts for business purposes. Instead of adding charting capabilities, it would be nice to accepts charts generated by other creates, like the Charts, which generates charts in SVG format. Therefore Genpdf should allow to embed SVG images. Support for SVG or other vector graphics formats is useful also to have optimal rendering with small memory use.
This would be a very nice feature. According to its readme,
printpdf
(that is used internally bygenpdf
) does not support SVG yet, but there is aSvg
struct that looks like it could work.
On 10/12/22 14:08, ~ireas wrote:
This would be a very nice feature. According to its readme,
printpdf
(that is used internally bygenpdf
) does not support SVG yet, but there is aSvg
struct that looks like it could work.#I am writing a book for Manning. It will describe Genpdf, but it will not not describe Printpdf. I don't have time to discover how to insert a non-documented Printpdf object inside a Genpdf document. So, I am going to write that Genpdf cannot create documents containing charts.
Carlo Milanesi
Potentially, for very simple graphs,
Area::draw_line
could be used. But other than that, it is currently not possible to do it only with genpdf.