What I would do is while exteacting the text, i would also extract their x and y coordinates using myTextrenderer class. Then group the text with same Y coordinate to collect data in same row or group the text with same X cordinate to collect data by column.
In this approach , you are not spliting anything with "\n", instead you make collection of the using their coordinates so empty string would just appear as "" string in your collection -- View this message in context: http://itext-general.2136553.n4.nabble.com/parse-tabular-data-in-PDF-using-iTextSharp-tp4657013p4657014.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: INSIGHTS What's next for parallel hardware, programming and related areas? Interviews and blogs by thought leaders keep you ahead of the curve. http://goparallel.sourceforge.net _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php
