Select to view content in your preferred language

The element selection is not shown in the exported PDF layout.

269
0
01-20-2025 02:52 AM
SumitMishra_016
Frequent Contributor

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);
     }
});

 

0 Kudos
0 Replies