@niverajkumar,
Yes, you are right. It looks like the issue was resolved by mistake. We apologize for any inconvenience caused.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.
Issue ID(s): SLIDESNET-44442
You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.
@niverajkumar,
The class PdfImportOptions and two methods
public ISlide[] AddFromPdf(string path, PdfImportOptions pdfImportOptions)
and
public ISlide[] AddFromPdf(Stream pdfStream, PdfImportOptions pdfImportOptions)
have been added.
These two methods take as an argument an object of the PdfImportOptions
class, which specifies whether the presence of tables in the imported document should be determined.
In your case, the following code should be used to import tables while preserving their styles:
string pdfFileName = "Single page Example.pdf";
string pptxFileName = "output.pptx";
PdfImportOptions pdfOptions = new PdfImportOptions
{
DetectTables = true
};
using (Presentation presentation = new Presentation())
{
presentation.Slides.RemoveAt(0);
presentation.Slides.AddFromPdf(pdfFileName, pdfOptions);
presentation.Save(pptxFileName, SaveFormat.Pptx);
}