Re: [iText-questions] parse tabular data in PDF using iTextSharp

2012-11-30 Thread anand035
Michael would be able to give more elegant approach. Though one solution of your problem I see is this U dont need rectangle. What u do is get start and end values of x cordinates of "columnA" and "columnB" so forth Like this Float x1 = renderinfo.getbaseline.getstartpoint.get(0); Float x2 = rend

Re: [iText-questions] parse tabular data in PDF using iTextSharp

2012-11-28 Thread anand035
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

Re: [iText-questions] renderInfo.getText() gives empty String

2012-10-26 Thread anand035
Well I tried again and again (and again ), *** PdfStamper stamper = new PdfStamper(reader, new FileOutputStream(dest)); PdfContentByte canvas = stamper.getOverContent(1); Image image = Image.getInstance("pin3.png"); image.setAbsolutePositio

Re: [iText-questions] renderInfo.getText() gives empty String

2012-10-25 Thread anand035
Here is what I observe, // Java Code render listener public void renderText(TextRenderInfo renderInfo) { float startX = renderInfo.getBaseline().getStartPoint().get(0); float startY = renderInfo.getBaseline().getStartPoint().get(1); float endX = rend

Re: [iText-questions] renderInfo.getText() gives empty String

2012-10-24 Thread anand035
You are right Kevin. Image is placed accurately in regular PDFs. The one I am working is a massive one, created in autocad with. 20 layers. I need to study chapter 14 in detail. I will work on coordinate scaling and get back to you with my findings. Once again thanks for your time.. -- View th

Re: [iText-questions] renderInfo.getText() gives empty String

2012-10-24 Thread anand035
thanks all for your prompt reply. I was using 5.1.3 and then I tried using 5.3.3, now I am getting the most texts from the map pdf. I guess only the those that I can select on Acrobat. Though, I am not sure whether it is identifying location correctly. For example, I get the location like this //

[iText-questions] I am using version 5.1.2 : renderInfo.getText() gives empty String

2012-10-23 Thread anand035
I am using version 5.1.2 -- View this message in context: http://itext-general.2136553.n4.nabble.com/renderInfo-getText-gives-empty-String-tp4656702p4656703.html Sent from the iText - General mailing list archive at Nabble.com. --

[iText-questions] renderInfo.getText() gives empty String

2012-10-23 Thread anand035
Hi I am new user of this library. I am trying to read a pdf file possibly created from AutoCad. I am using extractText method from http://itextpdf.com/examples/iia.php?id=275 example. Below is my RenderText method looks like. Problem is renderInfo.getText() returns empty string, though it gives it