<?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 : ExtractFilePages only odd number pages</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 : ExtractFilePages only odd number pages]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 00:27:28 +0000</pubDate>
  <lastBuildDate>Tue, 26 Nov 2013 08:39:46 +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=2789</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[ExtractFilePages only odd number pages :  Hi Andrew,Thanks so much for...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11359.html#11359</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2486">carmined58</a><br /><strong>Subject:</strong> 2789<br /><strong>Posted:</strong> 26 Nov 13 at 8:39AM<br /><br />Hi Andrew,<div>Thanks so much for the reply and information. I'm using VB, am not familiar enough with C#.</div><div><font size="2" face="C&#111;nsolas">Regardless, your example struck a chord and I'm now able to extract the pages as necessary.</font></div><div><font size="2" face="C&#111;nsolas">Thank you very much!</font></div>]]>
   </description>
   <pubDate>Tue, 26 Nov 2013 08:39:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11359.html#11359</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePages only odd number pages : Camine,This will be the most efficient...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11356.html#11356</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2789<br /><strong>Posted:</strong> 26 Nov 13 at 1:46AM<br /><br />Camine,<div><br></div><div>This will be the most efficient way to process the file.</div><div><br></div><div>Andrew.</div><div><br></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.LoadFromFile("100pages.pdf", "");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; int mainDocID = QP.SelectedDocument();</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for (int i = 1; i &lt;= QP.PageCount(); i += 2)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; string range = i.ToString() + "-" + (i + 1).ToString(); &nbsp;// "1-2", "3-4" ....</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.NewDocument(); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Has an empty page 1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.CopyPageRanges(mainDocID, range); &nbsp; // Append the 2 page from range.</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.DeletePages(1, 1); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// Remove the first empty page.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.SaveToFile("100_pages_" + range + ".pdf");</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.RemoveDocument(QP.SelectedDocument());</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; QP.RemoveDocument(mainDocID);</div></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 26 Nov 2013 01:46:36 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11356.html#11356</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePages only odd number pages :   Hi Ingo,  First, thank...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11355.html#11355</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2486">carmined58</a><br /><strong>Subject:</strong> 2789<br /><strong>Posted:</strong> 25 Nov 13 at 9:07AM<br /><br /><font size="3" face="Times New Roman"></font><p style="margin: 0in 2.25pt 0.75pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">HiIngo,<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">First,thank you for the quick response.<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">Second,please forgive my ignorance, but I'm not quite following you.<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">I'mgoing to try to explain in detail what I'm doing, what I need. I'm extractingpages from two separate PDFs. I've created one application that will extractpages and read text from both. Theoretically, at least. <o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">I havethe first working fine whereby each individual page is extracted and is astandalone document. The second, however, is turning out to be more difficult.<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">Forthe second type of document I'm extracting pages from a 100 page document. Thefirst and second page need to be extracted as one document, the third andfourth page need to be extracted as one document, the fifth and sixth documentneed to be extracted as one document, and so on.<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">Toextract the pages for the first document I use: <o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><font size="2"><span style='color: black; font-family: C&#111;nsolas; mso-bidi-font-size: 10.0pt; mso-fareast-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">FuncReturnResult = DPL.ExtractFilePages (strFileName,"", strPathName + "\" + strPage, CStr(intPageno))</span><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN"><o:p></o:p></span></font></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">I doan initial page count, then loop through while the page number is &lt;= thepage count:<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">DoWhile intPageno &lt;= intPageCount...For i As integer = 1 to intPageCount<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">"intPageno"is incremented as we progress through the loop. Using this variable for anExtractFilePages parameter obviously doesn't work when I need to extract twopages each time. <o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">Sothat's my first issue, how to get 2 pages extracted in each iteration throughthe loop. I'm confident that if I'm able to successfully extract 2 pages andcreate 1 document from the 2 pages that I'll be able to use theExtractFilePageText successfully to extract only the text on page 1 of eachdocument.<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">Havingexplained my issue would you please be so kind as to tell me how I could goabout extracting 2 pages from the 100 page document, extracting the next 2,then the next 2, and so on? Maybe provide an example?<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0.75pt 2.25pt 1.5pt; line-height: normal;" ="Ms&#111;normal"><span style='color: black; font-family: "Verdana","sans-serif"; font-size: 9pt; mso-fareast-font-family: "Times New Roman"; mso-bidi-font-family: "Times New Roman"; mso-ansi-: EN;' lang="EN">Thankyou, Ingo!<o:p></o:p></span></p><font size="3" face="Times New Roman"></font><p style="margin: 0in 0in 10pt;" ="Ms&#111;normal"><o:p><font size="2" face="Arial">&nbsp;</font></o:p></p><font size="3" face="Times New Roman"></font>]]>
   </description>
   <pubDate>Mon, 25 Nov 2013 09:07:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11355.html#11355</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePages only odd number pages :  With ExtractFilePages (with...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11354.html#11354</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2789<br /><strong>Posted:</strong> 25 Nov 13 at 8:15AM<br /><br />With ExtractFilePages (with page-ranges!) you can determine the ranges you want and then you can use ExtractFilePageText.<br>Another idea: Determine the pages you want... put it into a stringlist... and then using ExtractFilePageText in a loop.<br>ExtractFilePages:<br><a href="http://www.quickpdflibrary.com/help/quickpdf/ExtractFilePages.php" target="_blank" rel="nofollow">http://www.quickpdflibrary.com/help/quickpdf/ExtractFilePages.php</a><br>ExtractFilePageText:<br><a href="http://www.quickpdflibrary.com/help/quickpdf/ExtractFilePageText.php" target="_blank" rel="nofollow">http://www.quickpdflibrary.com/help/quickpdf/ExtractFilePageText.php</a><br>]]>
   </description>
   <pubDate>Mon, 25 Nov 2013 08:15:51 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11354.html#11354</guid>
  </item> 
  <item>
   <title><![CDATA[ExtractFilePages only odd number pages :  Hi,I&amp;#039;m using ExtractFilePages...]]></title>
   <link>http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11353.html#11353</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2486">carmined58</a><br /><strong>Subject:</strong> 2789<br /><strong>Posted:</strong> 25 Nov 13 at 7:20AM<br /><br />Hi,<div>&nbsp;</div><div>I'm using ExtractFilePages to extract document pages from a large PDF. The document is initially 25,000 pages, but I'm breaking it up into 100-page files.</div><div>&nbsp;</div><div>Each document to be extracted is two pages. I'm then reading the text from the extracted pages.</div><div>&nbsp;</div><div>I need to extract 2 pages, save it as one document. I then need to read the text from only page one. </div><div>&nbsp;</div><div>Does anyone know of a way I can use ExtractFilePageText to&nbsp;extract text from&nbsp;only odd numbered pages?</div><div>&nbsp;</div><div>Thank you!</div>]]>
   </description>
   <pubDate>Mon, 25 Nov 2013 07:20:58 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/extractfilepages-only-odd-number-pages_topic2789_post11353.html#11353</guid>
  </item> 
 </channel>
</rss>