« Return to Thread: How to find a particular text position (x and y coordinates) in PDF File using iTextSharp ?

Re: How to find a particular text position (x and y coordinates) in PDF File using iTextSharp ?

by Kumari, Archana :: Rate this Message:

Reply to Author | View in Thread

I have the code with me to find text in PDF using iTextSharp.dll and its working fine. I was able to get my text in PDF through that code. But I am not aware of the method to get text position also. There must be some class in iTextSharp that works on it?
Kindly help if you have any solution.


-----Original Message-----
From: Paulo Soares [mailto:psoares@...]
Sent: Wednesday, June 03, 2009 3:48 PM
To: Post all your questions about iTextSharp here
Subject: Re: [itextsharp-questions] How to find a particular text position (x and y coordinates) in PDF File using iTextSharp ?

Finding text in a PDF is extremely difficult, mostly empyrichal and in some cases impossible. If you based your workflow in this you'll have a lot of problems. iTextSharp can't find text.

Paulo

> -----Original Message-----
> From: Kumari, Archana [mailto:archana.kumari@...]
> Sent: Wednesday, June 03, 2009 10:36 AM
> To: itextsharp-questions@...
> Subject: [itextsharp-questions] How to find a particular text position
> (x and y coordinates) in PDF File using iTextSharp ?
>
>  
>
> Hi,
>
> I am using iTextSharp.dll and I am coding in C# to read a PDF file. I
> want to find position of particular text (its x and y
> coordinates) in a PDF file.
>
> In detail, the text to be searched in PDF File say "ROCK" and its x,y
> coordinate values are provided to me in  excel sheet.
>  I have to verify that the text "ROCK" lies exactly at the same x,y
> coordinates as provided in the excel sheet.
>
>  
>
> 1)      Is there any method in itextsharp that takes text to
> be searched as input and return its  x,y coordinates ?
>
> 2)      Or is there any method in itextsharp that takes x,y
> coordinates value as input and return the text at that coordinate?
>
>  
>
> Kindly help me out and let me know if more information is required.
>
>  
>
> Regards,
>
> Archana  Kumari
>
>  
>
>

Aviso Legal:

Esta mensagem é destinada exclusivamente ao destinatário. Pode conter informação confidencial ou legalmente protegida. A incorrecta transmissão desta mensagem não significa a perca de confidencialidade. Se esta mensagem for recebida por engano, por favor envie-a de volta para o remetente e apague-a do seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de usar, revelar ou distribuir qualquer parte desta mensagem.



Disclaimer:

This message is destined exclusively to the intended receiver. It may contain confidential or legally protected information. The incorrect transmission of this message does not mean the loss of its confidentiality. If this message is received by mistake, please send it back to the sender and delete it from your system immediately. It is forbidden to any person who is not the intended receiver to use, distribute or copy any part of this message.




------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
itextsharp-questions mailing list
itextsharp-questions@...
https://lists.sourceforge.net/lists/listinfo/itextsharp-questions

 « Return to Thread: How to find a particular text position (x and y coordinates) in PDF File using iTextSharp ?