~ireas/genpdf-rs#64: 
SVG support

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.

Status
REPORTED
Submitter
~carlomilanesi
Assigned to
No-one
Submitted
2 years ago
Updated
2 years ago
Labels
No labels applied.

~ireas 2 years ago

This would be a very nice feature. According to its readme, printpdf (that is used internally by genpdf) does not support SVG yet, but there is a Svg struct that looks like it could work.

~carlomilanesi 2 years ago

On 10/12/22 14:08, ~ireas wrote:

This would be a very nice feature. According to its readme, printpdf (that is used internally by genpdf) does not support SVG yet, but there is a Svg 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

~ireas 2 years ago

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.

Register here or Log in to comment, or comment via email.