Hi,
I tried to export the layout created by my tool with the element selection, but when I export the PDF, the element selection does not appear in the PDF.
Below is the code.
MapSeriesExportOptions MSExportOptions = new MapSeriesExportOptions()
{
ExportPages = ExportPages.All,
ExportFileOptions = ExportFileOptions.ExportAsSinglePDF,
ShowSelectedSymbology = true
};
PDFFormat pdfFormat = new PDFFormat
{
OutputFileName = pdfPath,
Resolution = 300,
DoCompressVectorGraphics = true,
DoEmbedFonts = true,
HasGeoRefInfo = true,
ImageCompression = ImageCompression.Adaptive,
ImageQuality = ImageQuality.Best,
LayersAndAttributes = LayersAndAttributes.LayersAndAttributes
};
await QueuedTask.Run(() =>
{
if (pdfFormat.ValidateOutputFilePath())
{
layout.Export(pdfFormat, MSExportOptions);
}
});