<?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 : Problem Splitting a File</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 : Problem Splitting a File]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:35:17 +0000</pubDate>
  <lastBuildDate>Wed, 04 Jul 2012 11:44:44 +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=2320</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[Problem Splitting a File : Thank you. It works perfectly...]]></title>
   <link>http://www.quickpdf.org/forum/problem-splitting-a-file_topic2320_post9863.html#9863</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1354">Thahn</a><br /><strong>Subject:</strong> 2320<br /><strong>Posted:</strong> 04 Jul 12 at 11:44AM<br /><br />Thank you. It works perfectly and is more faster by a factor of at least 4:1 on larger files.<div><br></div><div>Tom</div>]]>
   </description>
   <pubDate>Wed, 04 Jul 2012 11:44:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-splitting-a-file_topic2320_post9863.html#9863</guid>
  </item> 
  <item>
   <title><![CDATA[Problem Splitting a File : Here is a link to some sample...]]></title>
   <link>http://www.quickpdf.org/forum/problem-splitting-a-file_topic2320_post9856.html#9856</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2320<br /><strong>Posted:</strong> 02 Jul 12 at 1:35PM<br /><br />Here is a link to some sample code that will do what you need.<div><br></div><div><a href="http://www.quickpdf.org/forum/c-extract-pages-based-&#111;n-a-keyword-match_topic2325.html" target="_blank">http://www.quickpdf.org/forum/c-extract-pages-based-on-a-keyword-match_topic2325.html</a></div><div><br></div><div>Andrew.</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 02 Jul 2012 13:35:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-splitting-a-file_topic2320_post9856.html#9856</guid>
  </item> 
  <item>
   <title><![CDATA[Problem Splitting a File : I have only used QuickPDF once...]]></title>
   <link>http://www.quickpdf.org/forum/problem-splitting-a-file_topic2320_post9839.html#9839</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1354">Thahn</a><br /><strong>Subject:</strong> 2320<br /><strong>Posted:</strong> 28 Jun 12 at 2:00PM<br /><br /><div>I have only used QuickPDF once and that was several years ago so I am a newbie. Be kind!&nbsp;</div><div><br></div>I hope someone can help me correct my thinking on how to split a file. I have spent hours on this and despite &nbsp;the code being similar (and simple) to every example I can find, my results are not correct. The task is to examine the input file, page by page, and output&nbsp;to a new file&nbsp;each page that matches a &nbsp;key. The key can be located anywhere on the page.&nbsp;<div><br></div><div>My code outputs the correct number of pages but only the first page is correct, all others are blank. Obviously, I have something wrong in the "merge" code but I can't see it. &nbsp;I would also appreciate any suggestions on how to make the code more efficient. I have included the entire code snippet in case the problem is different than I think it is.<div name="popUpDiv" id="popUpDiv" ismouseover="false" ="popUpDivOff" =":.Name='popUpDivOff';" =":.Name='popUpDiv&#079;n';" style="display: n&#111;ne; "> <div name="popupMenu" id="popupMenu" style="display:n&#111;ne" ="popupMenu">         <div id="div1">            <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/fb.png" height="32" width="32" border="0" title="Upload Photo to Facebook" alt="Upload Photo to Facebook" />        </div>        <div id="div2">          <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/fblike.png" height="32" width="32" border="0" title="Like" alt="Like" />        </div>		        <div id="div3">          <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/twitter.png" height="32" width="32" border="0" title="Twitt" alt="Twitt" />        </div>				        <div id="div4">          <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/gmail.png" height="32" width="32" border="0" title="Send by Gmail" alt="Send by Gmail" />        </div>									  	</div>		 <div name="popupMenuVideo" id="popupMenuVideo" style="display:n&#111;ne" ="popupMenuVideo">         <div id="div1">            <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/mgsplusvideo.png" height="30" width="30" border="0" title="Search" alt="Search" />        </div>        <div id="div2">          <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/fblike.png" height="32" width="32" border="0" title="Like" alt="Like" />        </div>		        <div id="div3">          <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/twitter.png" height="32" width="32" border="0" title="Twitt" alt="Twitt" />        </div>				        <div id="div4">          <img src="chrome-extensi&#111;n://amfclgbdpgndipgoegfpkkgobahigbcl/images/gmail.png" height="32" width="32" border="0" title="Send by Gmail" alt="Send by Gmail" />        </div>									  	</div>	</div></div><div><br></div><div>QuickPDF 7.19</div><div><br></div><div><div><font size="4">{CODE}</font></div><div><font size="4">const</font></div><div><font size="4">&nbsp; eBillIdentifier = 'EBILL';</font></div><div><font size="4">var</font></div><div><font size="4">&nbsp; NewID :integer;</font></div><div><font size="4">&nbsp; DocID : integer;</font></div><div><font size="4">&nbsp; x : integer;</font></div><div><font size="4">&nbsp; TextContent : AnsiString;</font></div><div><font size="4">&nbsp; PageOut : boolean;</font></div><div><font size="4">begin</font></div><div><font size="4">&nbsp; PageOut := false;</font></div><div><font size="4">&nbsp; // get total page count</font></div><div><font size="4">&nbsp; QP.LoadFromFile(FileIn);</font></div><div><font size="4">&nbsp; DocID := QP.SelectedDocument;</font></div><div><font size="4">&nbsp; PageCount := QP.PageCount;</font></div><div><font size="4">&nbsp; // Iterate through each page in the document</font></div><div><font size="4">&nbsp; x := 1;</font></div><div><font size="4">&nbsp; while x &lt;= PageCount do</font></div><div><font size="4">&nbsp; &nbsp; begin</font></div><div><font size="4">&nbsp; &nbsp; // look for pages that match</font></div><div><font size="4">&nbsp; &nbsp; TextContent := QP.ExtractFilePageText(FileIn, '', x, 0);</font></div><div><font size="4">&nbsp; &nbsp; if pos(eBillIdentifier, TextContent) &lt;&gt; 0 then</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; begin</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; // found one</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; QP.ExtractPageRanges(IntToStr(x));</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; // save ID of input page</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; DocID := QP.SelectedDocument;</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; // is it the first output page?</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; if not PageOut then</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; begin</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; // yes, start output document&nbsp;</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; NewID := QP.SelectedDocument;</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; PageOut := true;</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; end</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; else</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; begin</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; // merge with previous result</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; QP.SelectDocument(NewID);</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; QP.MergeDocument(DocID);</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; &nbsp; end;</font></div><div><font size="4">&nbsp; &nbsp; &nbsp; end; // page wanted&nbsp;</font></div><div><font size="4">&nbsp; &nbsp; inc(x);</font></div><div><font size="4">&nbsp; &nbsp; end; //loop</font></div><div><font size="4">&nbsp; QP.SelectDocument(NewID);</font></div><div><font size="4">&nbsp; QP.SaveToFile(FileOut);</font></div><div><font size="4">&nbsp; QP.RemoveDocument(NewID);</font></div><div><font size="4">{CODE} &nbsp;</font></div></div><div><font size="4"><br></font></div><div><font size="4">TIA for your help,</font></div><div><font size="4">Tom</font></div><div><br></div>]]>
   </description>
   <pubDate>Thu, 28 Jun 2012 14:00:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-splitting-a-file_topic2320_post9839.html#9839</guid>
  </item> 
 </channel>
</rss>