Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG as vectorial graphics #65

Open
rapto opened this issue Jun 10, 2019 · 3 comments
Open

SVG as vectorial graphics #65

rapto opened this issue Jun 10, 2019 · 3 comments

Comments

@rapto
Copy link
Contributor

rapto commented Jun 10, 2019

SVG images are parsed and translated into rlg (reportlab graphics). It is a pity that the result is then rasterized instead of embedded in the PDF result. I have used a trivial plugin to achieve this result by pre-processing the rml file, but someone more experienced would find it easy to get this result "in the core". I would happily help in the coding and testing.

@strichter
Copy link
Contributor

@rapto I will happily accept a pull request.

@strichter
Copy link
Contributor

I just looked at the code and trying to make that happen in the <image> tag is probably not the right solution. I think that a new <vectorImage> or <vImage> tag should be implemented that knows how to draw a graphic.

@rapto
Copy link
Contributor Author

rapto commented Dec 8, 2020

It is a common case using the <image> to insert user logos, that can be png, jpeg or svg... Why would not it be the right solution? Maybe the detection could be made early in order to create the object with a different factory. I have not had time to understand the source code, sorry. Are there some docs I can look at?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants