<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>Debenu Quick PDF Library - PDF SDK Community Forum : Word’s bounds</title>
  <link>http://www.quickpdf.org/forum/</link>
  <description><![CDATA[This is an XML content feed of; Debenu Quick PDF Library - PDF SDK Community Forum : I need help - I can help : Word’s bounds]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 06:38:20 +0000</pubDate>
  <lastBuildDate>Sat, 18 Nov 2006 14:19:05 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 11.01</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.quickpdf.org/forum/RSS_post_feed.asp?TID=565</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Debenu Quick PDF Library - PDF SDK Community Forum]]></title>
   <url>http://www.quickpdf.org/forum/forum_images/QPDF_Forum_Title.png</url>
   <link>http://www.quickpdf.org/forum/</link>
  </image>
  <item>
   <title><![CDATA[Word’s bounds : Hi Dimitry!  I don&amp;#039;t know...]]></title>
   <link>http://www.quickpdf.org/forum/words-bounds_topic565_post2535.html#2535</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 565<br /><strong>Posted:</strong> 18 Nov 06 at 2:19PM<br /><br />Hi Dimitry!<br /><br />I don't know much enough about pdf ;-)<br />My thoughts are: You have the beginning point (pixel) of the string and you have the ending point (pixel) of the string... and you can get the length of the string... i think with a bit maths it should be possible to get the position of a special word you're searching for...?<br /><br />Best regards,<br />Ingo<br /><span style="font-size:10px"><br /><br />Edited by Ingo</span>]]>
   </description>
   <pubDate>Sat, 18 Nov 2006 14:19:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/words-bounds_topic565_post2535.html#2535</guid>
  </item> 
  <item>
   <title><![CDATA[Word’s bounds : BTW, I just develope the next...]]></title>
   <link>http://www.quickpdf.org/forum/words-bounds_topic565_post2533.html#2533</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=460">Dmitry</a><br /><strong>Subject:</strong> 565<br /><strong>Posted:</strong> 18 Nov 06 at 4:32AM<br /><br />BTW, I just develope the next algorithm<br /><br /><font color="blue"><br />ASentence := Text; //Sentence<br />AWord := ErrorWord; // The word that needs to be underlined<br />WPos := Pos(AWord, ASentence);<br />BefWord := Copy(ASentence, 1, WPos-1);<br />AfWord := Copy(ASentence, 1, WPos+Length(AWord)); <br /><br />BM:= TBitmap.Create; // Creating bitmap<br />BM.Canvas.Font.Name:=FontName; <br />BM.Canvas.Font.Size:=FontSize;<br /><br />WordBeginPos:=(BM.Canvas.TextWidth(BefWord));<br />WordEndPos:=(BM.Canvas.TextWidth(AfWord));<br />Afword:=IntToStr(WordEndPos);<br /><br />LTop := LineBounds.LeftTop.Y;<br />LLeft := LineBounds.LeftTop.X+4;<br /><br />Qp.SetLineColor(1,0,0); // red<br />Qp.DrawLine(LLeft+WordBeginPos,LTop,LLeft+WordEndPos,LTop);<br /></font><br /><br />But this method defines the wrong begin and end positions  of the AWord. <img border="0" src="http://www.quickpdf.org/forum/smileys/smiley19.gif" border="0"> <span style="font-size:10px"><br /><br />Edited by Dmitry</span>]]>
   </description>
   <pubDate>Sat, 18 Nov 2006 04:32:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/words-bounds_topic565_post2533.html#2533</guid>
  </item> 
  <item>
   <title><![CDATA[Word’s bounds : Thanks to all. But what will say...]]></title>
   <link>http://www.quickpdf.org/forum/words-bounds_topic565_post2530.html#2530</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=460">Dmitry</a><br /><strong>Subject:</strong> 565<br /><strong>Posted:</strong> 18 Nov 06 at 12:13AM<br /><br />Thanks to all. But what will say Ingo? <img border="0" src="http://www.quickpdf.org/forum/smileys/smiley2.gif" border="0"> ]]>
   </description>
   <pubDate>Sat, 18 Nov 2006 00:13:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/words-bounds_topic565_post2530.html#2530</guid>
  </item> 
  <item>
   <title><![CDATA[Word’s bounds :  The PDF Specification allows...]]></title>
   <link>http://www.quickpdf.org/forum/words-bounds_topic565_post2529.html#2529</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=173">swb1</a><br /><strong>Subject:</strong> 565<br /><strong>Posted:</strong> 17 Nov 06 at 10:43AM<br /><br /><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">The PDF Specification allows for a virtually unlimited number of ways in which text can be laid out in a document all the way from one character at time to a paragraph wrapped down an entire page. This means that is nearly impossible to know for certain where a word is or <B style="mso-bidi-font-weight: normal">that it even is a word</B> using text extraction methods. <?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><o:p>&nbsp;</o:p></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">The easiest solution to your problem lies in controlling how the document is created. If you have no control over that you are probably out of luck.<o:p></o:p></SPAN></P><P class=Ms&#111;normal style="MARGIN: 0in 0in 0pt"></SPAN></P>]]>
   </description>
   <pubDate>Fri, 17 Nov 2006 10:43:55 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/words-bounds_topic565_post2529.html#2529</guid>
  </item> 
  <item>
   <title><![CDATA[Word’s bounds : Hi Dmitry,  As far as I know:...]]></title>
   <link>http://www.quickpdf.org/forum/words-bounds_topic565_post2528.html#2528</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=370">ukobsa</a><br /><strong>Subject:</strong> 565<br /><strong>Posted:</strong> 17 Nov 06 at 10:22AM<br /><br />Hi Dmitry,<br /><br />As far as I know: If GetPageText cannot split the text to single words then you can't. Maybe you can make the pdf available so that someone can debug it in source to see, why it can't splitt into single words and if there is a solution.<br /><br />best regards,<br />Uli]]>
   </description>
   <pubDate>Fri, 17 Nov 2006 10:22:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/words-bounds_topic565_post2528.html#2528</guid>
  </item> 
  <item>
   <title><![CDATA[Word’s bounds : Hi! Please tell me how to define...]]></title>
   <link>http://www.quickpdf.org/forum/words-bounds_topic565_post2522.html#2522</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=460">Dmitry</a><br /><strong>Subject:</strong> 565<br /><strong>Posted:</strong> 17 Nov 06 at 5:28AM<br /><br />Hi!<br />Please tell me how to define bounds(in pixels) of exact word.<br /><br />For example.<br />I could get the bounds of exact line using function GetPageText(4):<br /><font color="blue"><br />"PDMFNG+CMR10", {Font}<br />#000000, {Color}<br />10.90, {Font Size}<br />72.0009,628.7132,512.1819,628.7132,512.1819,639.6223,72.0009,639.6223, {Bounds}<br />"Although there is a long <strong>history</strong> of empirical research into the deformation behaviour of" {Text line}<br /></font><br /> But how can I define the bounds of word 'history' for example?<span style="font-size:10px"><br /><br />Edited by Dmitry</span>]]>
   </description>
   <pubDate>Fri, 17 Nov 2006 05:28:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/words-bounds_topic565_post2522.html#2522</guid>
  </item> 
 </channel>
</rss>