Issue - one of the feature class is using a custom font . The custom font may have a problem, or it may be that esri is failing to export it properly for some reason. When exporting manually (using the 'Export Map...' command on the File menu) in ArcMap, there is a check box on the Export dialog -> Format tab labeled 'Convert Marker Symbols to Polygons. Having this checked will output the feature classes.
We need to be able to programmatically set the option that is represented by that check box.
I created one base command application and able to set this option is true and also seeing the output PDF is exported with the feature class with custom font.
here referring the I Application from hook as below and getting the map document and opening my stored display and setting the Export Map options inside this map document.
if (hook == null)
return;
_application = hook as IApplication;
But the problem is we need to implement this in existing application in the project. When we tried to set this option is true, it is setting as true (could see it through debug mode) but in exported pdf was not showing the custom fonts.
In existing solution - referring the application as below and opening map document and trying to set the option is true, but it is not exporting the custom fonts.
var document = (IDocument) new ESRI.ArcGIS.ArcMapUI.MxDocumentClass();
_application = document.Parent;
Please provide suggestions.
Issue - one of the feature class is using a custom font . The custom font may have a problem, or it may be that esri is failing to export it properly for some reason. When exporting manually (using the 'Export Map...' command on the File menu) in ArcMap, there is a check box on the Export dialog - Format tab labeled 'Convert Marker Symbols to Polygons. Having this checked will output the feature classes.
We need to be able to programmatically set the option that is represented by that check box.
I created one base command application and able to set this option is true and also seeing the output PDF is exported with the feature class with custom font.
here referring the I Application from hook as below and getting the map document and opening my stored display and setting the Export Map options inside this map document.
if (hook == null)
return;
_application = hook as IApplication;
But the problem is we need to implement this in existing application in the project. When we tried to set this option is true, it is setting as true (could see it through debug mode) but in exported pdf was not showing the custom fonts.
In existing solution - referring the application as below and opening map document and trying to set the option is true, but it is not exporting the custom fonts.
var document = (IDocument) new ESRI.ArcGIS.ArcMapUI.MxDocumentClass();
_application = document.Parent;
Please provide suggestions.
"stored display" ... are you running arcfm?
Yes, The project based out of ARCFM.
The IExportPDF interface has a EmbedFonts option. Have you tried that?
Brent
Yes, I used that option it is working in active map, but here in this case, we are opening mao document at backend and trying to set that option is true , but it was not able to export the custom fonts.