I have an issue with powerpoint files saved in ppt (format 97-2003).
When I try to detect if a slide is hidden, library always answer that the slide is visible even if i's not the case.
Please find below sample code (c#) and ppt file enclosed (slide 2 is hidden in this ppt):
- Code: Select all
byte[] fileContent = File.ReadAllBytes(@"C:\Temp\Presentation1.ppt");
using (MemoryStream ms1 = new MemoryStream(fileContent))
{
Presentation presentation = new Presentation(ms1, FileFormat.Auto);
for (int i = 0; i < presentation.Slides.Count; i++)
{
if (presentation.Slides[i].Hidden)
{
Console.WriteLine("Slide " + i + " is hidden");
}
]
}
I tried to use all possible fileformat option without success.
It works fine with pptx (ppt 2013).
Spire presentation version: 2.7.51.9041
Thanks for your help,
Best regards,
Julien