I have C# MapScript code running under IIS7 64bit which allows users to print a map as a PNG or PDF. My code configures a mapfile based on client permissions and then sets the appropriate OUTPUTFORMAT option.
Below are the resulting PNG and PDF - the only difference in the mapfile is the OUTPUTFORMAT:
One of the layers was incorrectly configured with a symbol size of 0 as seen in this mapfile snippet:
When the offending style section is removed from the mapfile, the PDF exactly matches the PNG image:
I am concerned that the CAIRO pdf library simply returns the incomplete PDF image rather than throwing an error. Is it possible for the CAIRO library to throw an error in this instance so that I can catch it from within my C# code?
which mapserver version?
6.2.1 - I downloaded the latest C# version from Tamas (http://www.gisinternals.com/sdk/) yesterday in hope of fixing this issue and the issue still exists.
avoid rendering symbols with 0 scale (#4654)
sending in symbols with a 0 zero scale seems to mess up cairo, even
though our use of cairo_save/cairo_restore should have taken care
fix stupid issue with gd renderer
applied to branch-6-2 in e3bd202 , closing