-
-
Notifications
You must be signed in to change notification settings - Fork 152
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
Can't convert svg to pdf #425
Comments
Hi! With #include <cairo.h>
#include <stdio.h>
int main()
{
cairo_surface_t *surface = cairo_image_surface_create_from_png ("/tmp/image.png");
if (cairo_surface_status(surface) == CAIRO_STATUS_READ_ERROR)
{
printf("read error\n");
}
return 0;
} It prints Maybe this PNG is broken? Otherwise, you should report a bug to Cairo, there’s not much we can do for you here. |
Yes, this png is broken... At the same time, cairosvg is capable of dealing with this broken file if it goes along another branch) |
This file can't covert to pdf.
test.svg.zip
If remove image, then convert work success
Command:
cairosvg test.svg -o test.pdf
Result:
OSError: [Errno cairo returned CAIRO_STATUS_READ_ERROR: b'error while reading from input stream'] 10
OS: macos
Version: 2.7.1
The text was updated successfully, but these errors were encountered: