<?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 : ExtractFilePageText extracts question mark!</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 : ExtractFilePageText extracts question mark!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Jul 2026 21:50:25 +0000</pubDate>
  <lastBuildDate>Mon, 09 Sep 2019 19:10:12 +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=3740</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[ExtractFilePageText extracts question mark! : Hi again,i have few code snippets...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14922.html#14922</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3740<br /><strong>Posted:</strong> 09 Sep 19 at 7:10PM<br /><br />Hi again,<br><br><br>i have few code snippets for you how to deal with unicode- and integer-values using vb6:<br><br>module1.bas<br>-----------<br><br>Attribute VB_Name = "Module1"<br><br>Public Declare Function functionname1 Lib "function.dll" (ByVal parameter As String) As Integer&nbsp; <br>Public Declare Function functionname2 Lib "function.dll" (ByVal parameter1 As String, ByVal parameter2 As Integer) As Long ' The returned string content<br><br>Public Declare Function apiLStrCopyW Lib "kernel32.dll" Alias "lstrcpyW" (ByVal lpString1 As Long, ByVal lpString2 As Long) As Long<br>Public Declare Function apiLStrLenW Lib "kernel32.dll" Alias "lstrlenW" (ByVal lpString As Long) As Long<br><br>Public Function GetStringFromPtrW(ByVal ptr As Long) As String<br>&nbsp; 'create a matching buffer<br>&nbsp; GetStringFromPtrW = String$(apiLStrLenW(ptr), 0)<br>&nbsp; 'copying the string into the buffer<br>&nbsp; apiLStrCopyW StrPtr(GetStringFromPtrW), ptr<br>End Function<br><br>form1.frm<br>---------<br><br>VERSION 5.00<br>Begin VB.Form Form1 <br>&nbsp;&nbsp; Caption&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; "vb6-sample - ..."<br>&nbsp;&nbsp; ClientHeight&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; 5475<br>&nbsp;&nbsp; ClientLeft&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; 45<br>&nbsp;&nbsp; ClientTop&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; 435<br>&nbsp;&nbsp; ClientWidth&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; 7365<br>&nbsp;&nbsp; LinkTopic&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; "Form1"<br>&nbsp;&nbsp; ScaleHeight&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; 5475<br>&nbsp;&nbsp; ScaleWidth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp;&nbsp; 7365<br>&nbsp;&nbsp; StartUpPosition =&nbsp;&nbsp; 3&nbsp; 'Windows-Standard<br>&nbsp;&nbsp; Begin VB.CheckBox Check7 <br><br>"&nbsp; . . .<br><br>Public r As String<br><br>Private Sub Command1_Click()<br>&nbsp; Dim sPfad() As Byte<br><br>&nbsp;&nbsp;&nbsp; sPfad = StrConv(Text1.Text, vbUnicode)<br>&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; Text7.Text = Str(functionsname1(sPfad))<br><br>End Sub<br><br>Private Sub option1_Click()<br>&nbsp; Dim sPfad() As Byte<br>&nbsp; Dim tPfad() As Byte<br>&nbsp; Dim title() As Byte<br>&nbsp; Dim sp As Integer<br>" . . .<br>&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; If Check1.Value = 1 Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sp = 1<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sp = 0<br>&nbsp;&nbsp;&nbsp; End If<br>"&nbsp;&nbsp; . . .<br><br>]]>
   </description>
   <pubDate>Mon, 09 Sep 2019 19:10:12 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14922.html#14922</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePageText extracts question mark! : great. option 4 is a better solution...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14921.html#14921</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3145">rezabb</a><br /><strong>Subject:</strong> 3740<br /><strong>Posted:</strong> 09 Sep 19 at 5:45PM<br /><br />great. option 4 is a better solution so to deal with the text, word by word and post-processing extracted words later using vb code.<br>in my PDF I have a few half-space character which acts like a space but in this case, the two connecting words are assumed to be a one word rather than two separated words. (just like the character "-" in English; sample word: "non-destructive" which is considered 1 word not 2 words).&nbsp;<div><br></div><div>I see that Quickpdf considers words which have a half-space character in the middle, as two separated words and extracts them separately. is there any way to extract them as one word? ... maybe define the separating character. because ascii code for space and half-space are not the same.</div>]]>
   </description>
   <pubDate>Mon, 09 Sep 2019 17:45:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14921.html#14921</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePageText extracts question mark! : try extract option 0 or 7 to have...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14920.html#14920</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3740<br /><strong>Posted:</strong> 09 Sep 19 at 4:56PM<br /><br />try extract option 0 or 7 to have a normal readable content or option 4 to get word by word.<br>This should make it easier for you.<br>https://www.debenu.com/docs/pdf_library_reference/ExtractFilePageText.php<br><br>]]>
   </description>
   <pubDate>Mon, 09 Sep 2019 16:56:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14920.html#14920</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePageText extracts question mark! : Dear Ingo,Many Thanks for your...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14919.html#14919</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3145">rezabb</a><br /><strong>Subject:</strong> 3740<br /><strong>Posted:</strong> 09 Sep 19 at 1:39PM<br /><br />Dear Ingo,<div>Many Thanks for your answer and for your warm welcoming me in the forum,</div><div>Using your exact keyword and using the exact conversion you mentioned, I could find the proper vb code. and now I have extracted texts in Persian language. it worked like a charm.</div><div><br></div><div>Another question: in Persian, Texts are written from Right to left.... Quickpdf seems to extract texts (characters) from "Top Left" side of the page. is there any option to reverse this process lets say from "Top Right" side of the page. because my words are extracted in reveres character order and it does not make sense, making it unreadable. (for example consider the word "google", it is extracted like "elgoog" )<br><br></div><div>when I copy text from Persian PDF and paste it in MSWord, the text is correct. I want to have my extracted texts similar to what MSWord is doing.</div><div><br></div><div>Thanks again,</div><div>Reza</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 09 Sep 2019 13:39:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14919.html#14919</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePageText extracts question mark! : Hi Reza,if you look into the online...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14918.html#14918</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3740<br /><strong>Posted:</strong> 09 Sep 19 at 10:46AM<br /><br /><div>Hi Reza,</div><div><br></div><div>if you look into the online reference you'll see that all string content is handled as <span ="highlight">unicode</span> (wchar). Your vb6 doesn't support unicode with normal vb6-code - you have to convert the content first from unicode to string or the other way round (depending if you want to get or put).</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 09 Sep 2019 10:46:06 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14918.html#14918</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePageText extracts question mark! : Hi,I have problem in extracting...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14917.html#14917</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3145">rezabb</a><br /><strong>Subject:</strong> 3740<br /><strong>Posted:</strong> 09 Sep 19 at 3:05AM<br /><br />Hi,<div><br><div>I have problem in extracting words inside my PDF file. the PDF content is in Persian or Farsi language.&nbsp;</div><div><br></div><div>after using&nbsp;ExtractFilePageText function in vb6, I receive question marks (??? ??) instead of actual text. How can I get the real Persian Texts and not a series of question marks?</div><div><br></div><div>Thanks,</div><div>Reza</div><div><br></div><div>p.s. this is my code in vb6:</div><div><br></div></div><div><div>Dim ClassName</div><div>Dim LicenseKey</div><div><br></div><div>ClassName = "DebenuPDFLibraryAX1613.PDFLibrary"</div><div>LicenseKey = "***"</div><div><br></div><div>Dim DPL</div><div>Dim Result</div><div>&nbsp;</div><div>Set DPL = CreateObject(ClassName)</div><div>Result = DPL.UnlockKey(LicenseKey)</div><div><br></div><div>DPL.LoadFromFile strInputFilePath, ""</div><div><br></div><div><br></div><div>iNumPages = DPL.PageCount() '// Calculate the number of pages</div><div><br></div><div>strText = ""</div><div>nPage = 0</div><div><br></div><div>For nPage = 1 To iNumPages</div><div><br></div><div><span style="white-space:pre">	</span>strText = DPL.ExtractFilePageText(strInputFilePath, "", nPage, 0)</div><div><span style="white-space: pre;">	</span>Clipboard.Clear</div><div><span style="white-space:pre">	</span>Clipboard.SetText strText</div><div><span style="white-space:pre">	</span>text1.text = strText</div><div><br></div><div>Next</div></div>]]>
   </description>
   <pubDate>Mon, 09 Sep 2019 03:05:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepagetext-extracts-question-mark_topic3740_post14917.html#14917</guid>
  </item> 
 </channel>
</rss>