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
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
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
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
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
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
//
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.
--
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