We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving a presentation with text highlight in Pdf format

I'm using .NET Aspose.Slides to create a presentation and trying to save in PDF format. The problem is the presentation has text highlight that do not appear in the saved pdf file.

In MS Powerpoint there is an option to make sure the highlight is available in the exported pdf. This would be done by checking the checkbox under Export->Create PDF/XPS->Options->Publish Options.

Is there an option with Aspose where this could be done?! PDF Options doesn't have any option corresponding to this.

Hi Sarath,

I have observed your comments and like to share that ideally the highlighted text should be appearing in generated PDF. Please share the presentation file with us along with generated PDF so that I may investigate the issue on my end to help you further. Please also try using Aspose.Slides for .NET 15.10.0 on your end first as well before sharing requested information with us.

Many Thanks,


I see the bug only when I highlight text in chart shape. Here is the code. When saved in PPTX it works fine whereas when saved as PDF the highlight is missing.

//Instantiate Presentation class that represents PPTX file//Instantiate Presentation class that represents PPTX file
Presentation pres = new Presentation();

//Access first slide
ISlide sld = pres.Slides[0];

// Add chart with default data
IChart chart = sld.Shapes.AddChart(ChartType.ClusteredColumn, 0, 0, 500, 500);

//Setting chart Title
// chart.ChartTitle.TextFrameForOverriding.Text = “Sample Title”;
chart.ChartTitle.AddTextFrameForOverriding(“Sample Title”);
chart.ChartTitle.TextFrameForOverriding.TextFrameFormat.CenterText = NullableBool.True;
chart.ChartTitle.Height = 20;
chart.HasTitle = true;

//Set first series to Show Values
chart.ChartData.Series[0].Labels.DefaultDataLabelFormat.ShowValue = true;

//Setting the index of chart data sheet
int defaultWorksheetIndex = 0;

//Getting the chart data worksheet
IChartDataWorkbook fact = chart.ChartData.ChartDataWorkbook;

//Delete default generated series and categories
int s = chart.ChartData.Series.Count;
s = chart.ChartData.Categories.Count;

//Adding new series
chart.ChartData.Series.Add(fact.GetCell(defaultWorksheetIndex, 0, 1, “Series 1”), chart.Type);

//Adding new categories
chart.ChartData.Categories.Add(fact.GetCell(defaultWorksheetIndex, 1, 0, “Category 1”));

//Take first chart series
IChartSeries series = chart.ChartData.Series[0];

//Now populating series data
series.DataPoints.AddDataPointForBarSeries(fact.GetCell(defaultWorksheetIndex, 1, 1, 20));

//Setting fill color for series
series.Format.Fill.FillType = FillType.Solid;
series.Format.Fill.SolidFillColor.Color = Color.Red;

//create custom labels for each of categories for new series

//first label will be show Category name
IDataLabel lbl = series.DataPoints[0].Label;
IParagraphCollection paras = lbl.TextFrameForOverriding.Paragraphs;
Paragraph para = new Paragraph();
// Make all new paragraph have same alignment as the first paragraph
Portion portion = new Portion();
portion.Text = “Custom Text”;

//Set font color
portion.PortionFormat.FillFormat.FillType = FillType.Solid;
portion.PortionFormat.FillFormat.SolidFillColor.Color = Color.Black;

//Set Fill Color
portion.PortionFormat.HighlightColor.Color = Color.Green;

//Save the presentation to disk
pres.Save(“Chart.pptx”, SaveFormat.Pptx);
// pres.Save(“Chart.pdf”, SaveFormat.Pdf);

Hi Sarath,

Thank you for posting.

I have observed your comments and worked with the presentation file shared by you. I have been able to reproduce the specified issue. A ticket with ID SLIDESNET-37081 has been logged in our issue tracking system to further investigate and resolve the issue.This thread has been linked with the issue so that you may be automatically notified once the issue will be resolved.

We are sorry for your inconvenience,

The issues you have found earlier (filed as SLIDESNET-37081) have been fixed in this update.

This message was posted using Notification2Forum from Downloads module by Aspose Notifier.