DetectTables

PdfImportOptions.DetectTables property

Determines whether detect tables when importing pdf file.

public bool DetectTables { get; set; }

Examples

Example:

[C#]
using (Presentation pres = new Presentation())
{
    using (Stream stream = new FileStream("document.pdf", FileMode.Open, FileAccess.Read, FileShare.Read))
    {
        // set detecting tables
        pres.Slides.AddFromPdf(stream, new PdfImportOptions { DetectTables = true });
    }
    
    pres.Save("fromPdfDocument.pptx", SaveFormat.Pptx);
}

See Also