<?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 : DPL.ExtractFilePageText&#039;s error</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 : DPL.ExtractFilePageText&#039;s error]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:09:59 +0000</pubDate>
  <lastBuildDate>Mon, 18 Feb 2019 08:02:08 +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=3679</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[DPL.ExtractFilePageText&#039;s error : I can&amp;#039;t read your post -...]]></title>
   <link>http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14657.html#14657</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3679<br /><strong>Posted:</strong> 18 Feb 19 at 8:02AM<br /><br /><div>I can't read your post - seams to be asian character set...</div><div>But i know what you're meaning.</div><div>The extraction works the other way round like inserted.</div><div>What's inserted last will be extracted first.</div><div>And if there was a short insertion after complete textcreation these last insertion will be extracted first.</div><div>There are several options using textextraction try option 0, 7 or 8 to get a human readable result.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 18 Feb 2019 08:02:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14657.html#14657</guid>
  </item> 
  <item>
   <title><![CDATA[DPL.ExtractFilePageText&#039;s error :  Yes,just encrypt error,that&amp;#039;s...]]></title>
   <link>http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14656.html#14656</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3103">Jimmy Wu.</a><br /><strong>Subject:</strong> 3679<br /><strong>Posted:</strong> 18 Feb 19 at 7:26AM<br /><br />Yes,just encrypt error,that's not problem now !<div></div><font color="#cc0033" size="2">The problem is&nbsp; one string:"聖品脂肪抹醬(16KG 彩鐵 金黃蓋"</font><div></div><font color="#cc0033" size="2">&nbsp;&nbsp;&nbsp;&nbsp; that is splited into 4 string fields by DPL.ExtractFilePageText </font><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp; as :&nbsp; <font color="#cc0000">聖品脂肪抹醬(統清)G 彩鐵 金黃蓋</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color="#cc0000"> 1</font><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; <font color="#cc0000">6&nbsp;</font>&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color="#cc0000"> K</font></div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp;&nbsp; are there any ways to solove it?&nbsp; </div><div>&nbsp; </div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Thanks!</div><div>&nbsp;</div><div>&nbsp;&nbsp; &lt;PS&gt;: After ExtractFilePageText ,the string should still be one field:</div><div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; as::"聖品脂肪抹醬(16KG 彩鐵 金黃蓋"</div>]]>
   </description>
   <pubDate>Mon, 18 Feb 2019 07:26:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14656.html#14656</guid>
  </item> 
  <item>
   <title><![CDATA[DPL.ExtractFilePageText&#039;s error : Hi Jimmy,you should read the description...]]></title>
   <link>http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14655.html#14655</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3679<br /><strong>Posted:</strong> 16 Feb 19 at 2:54PM<br /><br />Hi Jimmy,<br><br>you should read the description about ExtractFilePageText:<br>https://www.debenu.com/docs/pdf_library_reference/ExtractFilePageText.php<br>"...internally use of DAfunctionality..."<br>LoadFromFile needs a lot memory - ExtractFilePageText not.<br>You destroy the advantages of ExtractFilePageText while using LoadFromFile.<br>Please read more about DA functionalities using QuickPDF:<br>https://www.debenu.com/docs/pdf_library_reference/DirectAccessFunctionality.php<br><br>The reason for your issue could be an encrypted pdf-file.<br>Before loading and processing a pdf document you should decrypted it.<br>Here's a sample-code. You should use it directly after LoadFromFile:<br>// . . .<br>&nbsp;&nbsp; QP := TDebenuPDFLibrary1611.Create;<br>&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.UnlockKey('my_reg_key_i_have_to_insert_here');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(fnew, '');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If ( QP.EncryptionStatus &gt; 0 ) Then<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Decrypt;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SaveToFile(fnew + '.save.pdf');<br>&nbsp;&nbsp; finally<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free;<br>&nbsp;&nbsp; end;<br>// . . .<br><br>For extracting text from pdf you can use code like this as well:<br>// . . .<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i := 1 to QP.PageCount Do<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SelectPage(i);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOrigin(1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.CombineContentStreams;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; STR := STR + Trim(QP.GetPageText(8));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br>// . . .<br><br>Cheers and welcome here,<br>Ingo<br><br><br>]]>
   </description>
   <pubDate>Sat, 16 Feb 2019 14:54:43 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14655.html#14655</guid>
  </item> 
  <item>
   <title><![CDATA[DPL.ExtractFilePageText&#039;s error :  Dear Sir :I&amp;#039;m coding using...]]></title>
   <link>http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14654.html#14654</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3103">Jimmy Wu.</a><br /><strong>Subject:</strong> 3679<br /><strong>Posted:</strong> 16 Feb 19 at 9:04AM<br /><br /><img src="http://www.quickpdf.org/forum/smileys/smiley1.gif" height="17" width="17" border="0" alt="Smile" title="Smile" />&nbsp;Dear Sir :<div>&nbsp;</div><div>I'm coding using Delphi,I need to convert PDF to Text file using cmd " DPL.<font color="#cc0000"><strong>ExtractFilePageText</strong></font>"</div><div>,<strong>and just get an empty&nbsp;text file</strong> ,please kindly help me, source are as follows:</div><div>&nbsp;</div><div>//INITIAL DPL<br>&nbsp;&nbsp; DPL := TDebenuPDFLibrary1411.Create;<br>&nbsp;&nbsp; //check authority<br>&nbsp;&nbsp; if NOT DPL.UnlockKey(edtLicenseKey.Text) = 1 then<br>&nbsp;&nbsp; begin<br>&nbsp;&nbsp;&nbsp;&nbsp; showmessage('The key is invalid,exit now!');<br>&nbsp;&nbsp;&nbsp;&nbsp; EXIT;<br>&nbsp;&nbsp; end;</div><div>&nbsp;&nbsp; DPL.LoadFromFile(PDF_File,'');<br>&nbsp;&nbsp; iNumPages := DPL.PageCount;<br>&nbsp;&nbsp; strText&nbsp;&nbsp; := '';</div><div>&nbsp;&nbsp; getdir(0,Cur_Path);<br>&nbsp;&nbsp; TextF:=Cur_Path+'\'+'PDF2TextF.txt';<br>&nbsp;&nbsp; AssignFile(f,TextF);<br>&nbsp;&nbsp; if FileExists(TextF) then Erase(f);</div><div>&nbsp;&nbsp; Rewrite(f);<br>&nbsp;&nbsp; <br>&nbsp;&nbsp; For nPage := 1 to iNumPages do<br>&nbsp;&nbsp; Begin<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; strText:= strText + DPL.<font color="#cc0000"><strong>ExtractFilePageTex</strong>t</font>(PDF_File, '', nPage, 3);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Write all the data to a file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Writeln(f,strText);<br>&nbsp;&nbsp; End;<br>&nbsp;&nbsp; CloseFile(f);<br></div><div>&nbsp;</div><div>&nbsp;</div>]]>
   </description>
   <pubDate>Sat, 16 Feb 2019 09:04:52 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/dplextractfilepagetexts-error_topic3679_post14654.html#14654</guid>
  </item> 
 </channel>
</rss>