I tried to extract table like structure data from PDF using syncfusion PDF library. When the data is extracted using ExtractText method, the data are trimmed with no space in between if there is more than 2 spaces. when dealing with structured data like tables where spacing is significant. Are there any alternate way to handle this scenario?
Code:
byte[]? pdfData = CONTENT;
PdfLoadedDocument document = new PdfLoadedDocument(pdfData);
TextLineCollection textLineCollection = new();
string pageText = document.Pages[pageIndex].ExtractText(out textLineCollection);