Spire.Presentation 6.8.3

Spire.Presentation 6.8.3 supports loading and saving PPT in DPS/DPT format

We are happy to announce the release of Spire.Presentation 6.8.3. This version supports loading and saving PPT in DPS/DPT format, supports using regex to replace text in PPT as well as supports setting border styles of charts in PPT to right angle. In addition, it also enhances the conversion from PPT to PDF. More details are listed as follows.

Here is a list of changes made in this release

Category ID Description
New feature SPIREPPT-1622 Supports loading and saving PPT in DPS/DPT format.
ppt.SaveToFile(outputPath + filename + ".dps", FileFormat.Dps);
ppt.SaveToFile(outputPath + filename + ".dpt", FileFormat.Dpt);
New feature SPIREPPT-1635 Supports changing font sizes and the position of trend lines of the chart legend in PPT.
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
ITrendlines trendline = chart.Series[0].TrendLines[0] as ITrendlines;
foreach(TextParagraph para in trendline.TrendLineLabel.TextFrameProperties.Paragraphs)
{
    para.DefaultCharacterProperties.FontHeight = 20;
    foreach(TextRange range in para.TextRanges)
    {
        range.FontHeight = 20;
    }
}
trendline.TrendLineLabel.OffsetX = -0.1f;
trendline.TrendLineLabel.OffsetY = 0.1f;
New feature SPIREPPT-1639 Supports setting border styles of the chart in PPT to right angle.
IChart chart = ppt.Slides[0].Shapes[0] as IChart;
chart.Line.FillFormat.FillType = FillFormatType.Solid;
chart.Line.FillFormat.SolidFillColor.Color = Color.Red;
chart.BorderRoundedCorners = false;
New feature SPIREPPT-1643 Supports using regex to replace text in PPT.
Regex regex = new Regex("^[A-Za-z]+$");
string newvalue = "new string";
foreach(IShape shape in ppt.Slides[0].Shapes)
{
    shape.ReplaceTextWithRegex(regex, newvalue);
}
Bug SPIREPPT-1626 Fixes the issue that the OLE icon disappeared after converting PPT to PDF under the Linux environment.
Bug SPIREPPT-1632 Fixes the issue that the program threw an exception when deleting the trend line of the chart legend in PPT.
Bug SPIREPPT-1637 Fixes the issue that the fonts were wrong in the generated file after setting the font of the legend and axis of the chart in PPT.
Bug SPIREPPT-1644 Fixes the issue that the hyperlink was invalid after converting PPT to PDF.
Bug SPIREPPT-1648 Fixes the issue that the generated file had extra lines after converting PPT to PDF
Bug SPIREPPT-1649 Fixes the issue that the program threw an exception when highlighting the text containing")".
Click the link below to download Spire.Presentation 6.8.3:
More information of Spire.Presentation new release or hotfix: