As I said, I have modification similar to TextMarginFinder
In RenderText I remember all rectangles from RenderInfo
(in the example you talk about, in RenderText, only one rectangle exists,
formed by union)

I am attaching more colorful pdf, where I expect 4 rectangles, (they should
be drawn in the order: Cyan, Magenta, Yellow, Black) but the first 3 are
stacked on the starting coordinates of the word (see the txt file with debug
info)
in the pdf I am attaching there is only the separate rectangles, which as
you can assume also, if you add them in union you will get the complete
correct rectangle, as in the pdf you sent me.

On Thu, Dec 9, 2010 at 18:43, 1T3XT BVBA <[email protected]> wrote:

> Op 9/12/2010 15:00, Apostol Karovski schreef:
>
>  Hello,
>> I use iTextSharp SVN trunk version and I see a problem with some pdf
>> files. What I want to do is to highlight text.
>>
> I tried the example from the book with your test.pdf and you can find the
> result in attachment. As you can see, a rectangle is drawn at the correct
> position. In other words: I can't reproduce the problem.
>
          X              Y                Width          Height     text 
<
<[   71,956080] x [  706,455000] - [    0,043922] x [   13,604190]:те>
<[   71,978040] x [  706,455000] - [    0,021957] x [   13,604190]:с>
<[   72,021970] x [  706,455000] - [    2,195999] x [   13,604190]:т >
<[   95,156820] x [  706,455000] - [    2,217957] x [   13,604190]: >
>

Attachment: test3.pdf
Description: Adobe PDF document

------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

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

Reply via email to