<?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 : Access violation while using ExtractFilePageText</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 : Access violation while using ExtractFilePageText]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 15:19:08 +0000</pubDate>
  <lastBuildDate>Tue, 21 Apr 2009 01:35:03 +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=1065</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[Access violation while using ExtractFilePageText : Hi Fred!If your samples are not...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4998.html#4998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1065<br /><strong>Posted:</strong> 21 Apr 09 at 1:35AM<br /><br />Hi Fred!<br><br>If your samples are not too big, you can send them to me directly at<br>ingo -dot- schmoekel -at- ewetel -dot- net<br><br>I'll check them, making a complete error description and if i can't help you i'll send all to the Debenu support. Or you can do this immediately at:<br>technical support form:<br>http://www.quickpdflibrary.com/support/support-query.php<br>report a bug:<br>http://www.quickpdflibrary.com/support/report-bug.php<br><br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Tue, 21 Apr 2009 01:35:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4998.html#4998</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation while using ExtractFilePageText : Hi Ingo,   I use SelectPage...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4997.html#4997</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1044">Fred</a><br /><strong>Subject:</strong> 1065<br /><strong>Posted:</strong> 20 Apr 09 at 11:01PM<br /><br />Hi Ingo, <DIV>&nbsp;</DIV><DIV>I use <EM>SelectPage</EM> along with <EM>GetPageText</EM> otherwise the <EM>ExtractFilePageText </EM>alone.&nbsp;Anyway, I tried your code and it still doesn't work.</DIV><DIV>&nbsp;</DIV><DIV>I've tested a number of pdf generated by various vendor and here are my results:</DIV><UL><LI><strong>Acrobat Distiller</strong> (Windows and Mac versions): no problem at all <LI><strong>Ghost Script</strong> (all Windows versions): no problem at all <LI><strong>Target Stream</strong>: <EM>RenderPageToStream</EM> works <EM>ExtractFilePageText</EM> raises the infamous access violation <LI><strong>Amyuni Pdf Converter</strong>: <EM>ExtractFilePageText</EM> returns empty strings with valid positions and other properties. The doc is mainly tables. <LI><strong>Pdf Lib</strong>: Same issue as above but this is mainly plain text <LI><strong>iText</strong>: this is the worse, except <EM>SecurityInfo</EM>, this is the one that made me post in this forum.</LI></UL><P>I'll send all these pdf files to QP suport if you want to take a look. Isn't the PDF format supposed to conform to strict rules (ISO 32000) so that one can expect where to retreive information ?</P><DIV>I also have image embedded into a pdf but except doing ocr, I don't expect to extract anything from that of course.</DIV><DIV>&nbsp;</DIV><DIV></DIV><DIV>By the way, is there a Quick Pdf table reading function ?</DIV><DIV>Thanks for your time</DIV><DIV>Frederic</DIV><span style="font-size:10px"><br /><br />Edited by Fred - 20 Apr 09 at 11:03PM</span>]]>
   </description>
   <pubDate>Mon, 20 Apr 2009 23:01:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4997.html#4997</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation while using ExtractFilePageText : Hi Fred!I think it&amp;#039;s a problem...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4996.html#4996</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1065<br /><strong>Posted:</strong> 20 Apr 09 at 3:32PM<br /><br />Hi Fred!<br><br>I think it's a problem with the pdf.<br>What's the returning value after LoadFromFile?<br>Does all your pdf-files have the same problem with the routine?<br>Does the other extract options (mainly 3 and 4) working?<br><br>Oh... Now i've seen it ... It's your ExtractFilePageText!<br>That's a standalone function ... You shouldn't mix standalone and the "normal" functions! Try the "normal" GetPageText and it will working.<br><br>This structure should work:<br>&nbsp;&nbsp; QP := TQuickPDF0712.Create;<br>&nbsp;&nbsp; try<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.UnlockKey('MyKey');<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.LoadFromFile(the_pdf_file);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; x := QP.PageCount;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetOrigin(1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.CombineLayers;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; for i := 1 to x 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; STR := STR + QP.GetPageText(0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<br>&nbsp;&nbsp;&nbsp; finally<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.Free;<br>&nbsp;&nbsp;&nbsp; end;<br>//&nbsp; At this moment the text from all pages <br>//&nbsp; should be in string STR.<br><br>Cheers, Ingo<br><br><br>]]>
   </description>
   <pubDate>Mon, 20 Apr 2009 15:32:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4996.html#4996</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation while using ExtractFilePageText : Hi Ingo, Thanks for your reply....]]></title>
   <link>http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4995.html#4995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1044">Fred</a><br /><strong>Subject:</strong> 1065<br /><strong>Posted:</strong> 20 Apr 09 at 11:06AM<br /><br />Hi Ingo,<DIV>Thanks for your reply. </DIV><DIV>I had tried it before, and tried again (qp.SelectPage(1);) but&nbsp;calling ExtractFilePageText failed as well.</DIV><DIV>Maybe an issue with Delphi project option for the compiler ?</DIV>]]>
   </description>
   <pubDate>Mon, 20 Apr 2009 11:06:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4995.html#4995</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation while using ExtractFilePageText : Hi Fred!Before extracting you...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4994.html#4994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1065<br /><strong>Posted:</strong> 19 Apr 09 at 7:42AM<br /><br />Hi Fred!<br><br>Before extracting you have to do a <br>SelectPage or DAFindPage (if you're using the DA-functions).<br>The best is to do first PageCount and then put the extraction in a for-loop.<br><br>Cheers, Ingo<br>]]>
   </description>
   <pubDate>Sun, 19 Apr 2009 07:42:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4994.html#4994</guid>
  </item> 
  <item>
   <title><![CDATA[Access violation while using ExtractFilePageText : Here belowis my code, in Delphi7,...]]></title>
   <link>http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4993.html#4993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1044">Fred</a><br /><strong>Subject:</strong> 1065<br /><strong>Posted:</strong> 18 Apr 09 at 6:09PM<br /><br />Here below&nbsp;is my code, in Delphi7, QuickPdf v7.12. <DIV>The pdf file is 1 page long. You can put 0 or 1 as page #, none work.</DIV><DIV>The library doesn't return any error, I just get <FONT color=#ff0000><strong>an ugly access violation while calling <EM>ExtractFilePageText.</EM></strong></FONT> I think this is a pretty straight foward process so I must miss something obvious but I don't see what.</DIV><DIV>&nbsp;</DIV><DIV>Some clue maybe: <EM>RenderPageToStream</EM> behaves the same way (ie doesn't work) whereas <EM>SecurityInfo</EM> works. Looks like accessing the page content is causing the pb...</DIV><DIV>&nbsp;</DIV><DIV>procedure Debug;<BR>var qp: TQuickPDF0712 ;<BR>&nbsp;&nbsp;&nbsp; s: string;<BR>begin<BR>&nbsp; qp := TQuickPDF0712.Create ;<BR>&nbsp; try<BR>&nbsp;&nbsp;&nbsp; if qp.Unlocked = 0 then qp.UnlockKey(<img src="http://www.quickpdf.org/forum/smileys/smiley2.gif" height="17" width="17" border="0" align="absmiddle" alt="Wink" />);<BR>&nbsp;&nbsp;&nbsp; try<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT color=#ff0000>s := qp.ExtractFilePageText('D:\PDF\Test\BillCingularFeb09.pdf','', 0, 0);</FONT><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ShowMessage(s) ;<BR>&nbsp;&nbsp;&nbsp; except on e: exception do<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; begin<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if qp.LastErrorCode &gt; 0 then<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageDlg('Error: '+ e.Message + #13#10 + IntToStr(qp.LastErrorCode)+': '+qp.LastRenderError, mtWarning,&#091;mbOK&#093;,0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MessageDlg('Error: '+ e.Message + #13#10 + 'No error message returned by the library', mtError,&#091;mbOK&#093;,0)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end;<BR>&nbsp;&nbsp;&nbsp; end;<BR>&nbsp; finally<BR>&nbsp;&nbsp;&nbsp; qp.Free ;<BR>&nbsp; end;<BR>end;</DIV><DIV>&nbsp;</DIV><DIV>Pdf file info is as followed:</DIV><DIV><BR>User Password: No<BR>Master Password: No<BR>Printing: Fully Allowed<BR>Changing the Document: Allowed<BR>Content Copying or Extraction: Allowed<BR>Authoring Comments and Form Fields: Allowed<BR>Form Field Fill-in or Signing: Allowed<BR>Content Accessibility Enabled: Allowed<BR>Document Assembly: Allowed<BR>Encryption Level: Blank</DIV><span style="font-size:10px"><br /><br />Edited by Fred - 18 Apr 09 at 8:59PM</span>]]>
   </description>
   <pubDate>Sat, 18 Apr 2009 18:09:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/access-violation-while-using-extractfilepagetext_topic1065_post4993.html#4993</guid>
  </item> 
 </channel>
</rss>