clip with large extents is unreliable, changes with zoom
Submitted by Jason Crain
Assigned to Chris Wilson @ickle
Description
Created attachment 124391 cairo-test.c
Forwarding from https://bugs.debian.org/728358
The PDF at https://bugs.debian.org/cgi-bin/bugreport.cgi?filename=D.pdf;bug=728358;att=1;msg=5 does not always render correctly in evince or pdftocairo. The drawing in the middle of the page disappears at some zoom levels. The PDF contains drawing commands with large numbers like:
0 0 m
0 2147483647 l
1098 2147483647 l
1098 0 l
W* n
Which means clip to a very large box. I can reproduce this behavior in cairo with the attached C program. Clipping to a large rectangle will sometimes cause any further drawing to not happen, though depending on the scaling (set by calling cairo_scale) it will sometimes work.
Attachment 124391, "cairo-test.c":
cairo-test.c