Spire.PDF is a professional PDF library applied to creating, writing, editing, handling and reading PDF files without any external dependencies. Get free and professional technical support for Spire.PDF for .NET, Java, Android, C++, Python.

Thu Apr 13, 2023 4:04 am

I have 2 table in pdf, but can't extract table has not border:
Code: Select all
string strTargetPage = @"D:\t1.pdf";
            Spire.Pdf.PdfDocument doc = new Spire.Pdf.PdfDocument();
            doc.LoadFromFile(strTargetPage);
            PdfTableExtractor extractor = new PdfTableExtractor(doc);
            PdfTable[] tableLists = null;
            tableLists = extractor.ExtractTable(0);


Sample data: https://drive.google.com/file/d/1E9Oawu ... sp=sharing

daitranthanhhoa
 
Posts: 51
Joined: Mon Sep 19, 2016 3:04 am

Thu Apr 13, 2023 7:20 am

Hi

Thanks for your feedback.
Please note that our Spire.PDF uses the presence of borders to determine whether a section of text constitutes a table. Therefore, if a table does not have any borders, our Spire.PDF may not be able to recognize it as such.
We appreciate your understanding and apologize for any inconvenience this may cause. Please let us know if you have any further questions or concerns.

Best regards,
Triste
E-iceblue support team
User avatar

Triste.Dai
 
Posts: 1000
Joined: Tue Nov 15, 2022 3:59 am

Return to Spire.PDF

cron