Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
CAIRO PDF fails without error when symbol size is 0 #4654
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?