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

svg2pdf export turns transparent background in black #395

Closed
anuj-scanova opened this issue Aug 4, 2023 · 3 comments
Closed

svg2pdf export turns transparent background in black #395

anuj-scanova opened this issue Aug 4, 2023 · 3 comments

Comments

@anuj-scanova
Copy link

Using this library to convert svg to pdf file using the following function

data = str(unquote(data, encoding='utf-8'))
data = cairosvg.svg2pdf(bytestring=data, unsafe=True)

and the data content is sent via API (edit file to view content)
 file

However, it generates black background

Screenshot 2023-08-04 at 2 04 49 PM

while the expected output is

Screenshot 2023-08-04 at 2 05 50 PM
@liZe liZe closed this as completed in 0d02afd Aug 4, 2023
@liZe
Copy link
Member

liZe commented Aug 4, 2023

Thanks for the bug report, it should be fixed now!

@anuj-scanova
Copy link
Author

Thanks for looking into this. By when this change will be released? I need to use in my application.

@liZe
Copy link
Member

liZe commented Aug 5, 2023

By when this change will be released?

It’s been released right now.

I need to use in my application.

Don’t hesitate to support us if CairoSVG is useful for your application!

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

No branches or pull requests

2 participants