in our current version we print the Map by using PdfGeoCanvas. For printing we use your code suggestion where we loop through all overlays and layers and draw them on the PdfGeoCanvas.
At the moment we have 2 problems:
1,) If we compare the created pdf-document with map view we can see that raster based layers have an offset (see attached document).
I can not recreate your problem by using our HowDoI sample "UsePdfExtension", could you test it by using your data? Which version of MapSuiteCore do you use?
I will also create a custom style and try to recreate the exception, DashCap is a property of GeoPen, so the custom style should contains a pen, right?
Thanks for the sample, to solve this problem, you may need to use the newest version of DesktopEdition.dll and MapSuiteCore.dll, I have tested version 4.5.66.0 which works properly, you can download them from custom portal.
The PdfExtension doesn't support SquareAnchor of LineCap, so it throws NotSupportedException, it only supports Round, Square and Flat, we have updated the error message to let it more meaningful.
Any more questions please feel free to let me know.
thanks for Info. I have to mention that users can define their own styles in our GIS-Application. The user can set all style parameter the ThinkGeo classes support. This mean they can create new styles and use in Map but they can not print (convert) it to pdf because PdfExtension is limited.
I do not know how many limitations there are. But if there are many - I have to think about another printing solution. As I know there are printing solution with PrinterGeoCanvas-Class or GDIPlusGeoCanvas.
Can you help by pointing me in the right direction?