<?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 : Page extraction problem</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 : General Discussion : Page extraction problem]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 12:29:27 +0000</pubDate>
  <lastBuildDate>Mon, 22 Mar 2010 10:25:57 +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=1379</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[Page extraction problem : Here is my code:  Private Sub...]]></title>
   <link>http://www.quickpdf.org/forum/page-extraction-problem_topic1379_post6264.html#6264</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1275">SlyJay</a><br /><strong>Subject:</strong> 1379<br /><strong>Posted:</strong> 22 Mar 10 at 10:25AM<br /><br />Here is my code:<DIV><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Private</SPAN> <SPAN style="COLOR: blue">Sub</SPAN> PDFInsertPagesFromFile(<SPAN style="COLOR: blue">ByVal</SPAN> destFile <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">String</SPAN>, <SPAN style="COLOR: blue">ByVal</SPAN> insertFile <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">String</SPAN>, <SPAN style="COLOR: blue">ByVal</SPAN> position <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">Integer</SPAN>)<?: prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></DIV><DIV><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Dim</SPAN> tmpQP <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">New</SPAN> QuickPDFAX0718.PDFLibrary<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>tmpQP.UnlockKey(<SPAN style="COLOR: #a31515">"my_code"</SPAN>)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>tmpQP.LoadFromFile(destFile)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Dim</SPAN> mainDoc <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">Integer</SPAN> = tmpQP.SelectedDocument<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Dim</SPAN> LastPart <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">Integer</SPAN> = 0<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Dim</SPAN> FirstPart <SPAN style="COLOR: blue">As</SPAN> <SPAN style="COLOR: blue">Integer</SPAN> = 0<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>FirstPart = tmpQP.ExtractFilePages(destFile, <SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\1.pdf"</SPAN>, <SPAN style="COLOR: #a31515">"1-"</SPAN> &amp; position) <SPAN style="COLOR: green"><o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 9pt; mso-no-proof: yes">If</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-no-proof: yes"> FirstPart = 0 <SPAN style="COLOR: blue">Then<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Exit</SPAN> <SPAN style="COLOR: blue">Sub<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">End</SPAN> <SPAN style="COLOR: blue">If<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">If</SPAN> tmpQP.PageCount &gt; position <SPAN style="COLOR: blue">Then<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>tmpQP.DeletePages(1, position)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>tmpQP.SaveToFile(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\3.pdf"</SPAN>)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>LastPart = 1<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">End</SPAN> <SPAN style="COLOR: blue">If<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>tmpQP.MergeFiles(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\1.pdf"</SPAN>, insertFile, <SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\2.pdf"</SPAN>)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>IO.File.Delete(destFile)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">If</SPAN> LastPart &gt; 0 <SPAN style="COLOR: blue">Then<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>tmpQP.MergeFiles(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\2.pdf"</SPAN>, <SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\3.pdf"</SPAN>, destFile)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>IO.File.Delete(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\3.pdf"</SPAN>)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">Else<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</SPAN>IO.File.Move(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\2.pdf"</SPAN>, destFile)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN><SPAN style="COLOR: blue">End</SPAN> <SPAN style="COLOR: blue">If<o:p></o:p></SPAN></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>IO.File.Delete(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\1.pdf"</SPAN>)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN>IO.File.Delete(<SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\2.pdf"</SPAN>)<o:p></o:p></SPAN></P><P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: n&#111;ne" =Ms&#111;normal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: green; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><o:p>&nbsp;</o:p></SPAN></P><P style="MARGIN: 0cm 0cm 10pt" =Ms&#111;normal><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-ansi-: EN-US; mso-no-proof: yes" lang=EN-US><SPAN style="mso-spacerun: yes">&nbsp;&nbsp;&nbsp; </SPAN></SPAN><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 9pt; mso-no-proof: yes">End</SPAN><SPAN style="LINE-HEIGHT: 115%; FONT-FAMILY: 'Courier New'; FONT-SIZE: 9pt; mso-no-proof: yes"> <SPAN style="COLOR: blue">Sub</SPAN></SPAN><SPAN style="LINE-HEIGHT: 115%; FONT-SIZE: 9pt"><o:p></o:p></SPAN></P></DIV><DIV>&nbsp;</DIV><DIV>Consider that exept from the rest of the code witch is not the best due to multiple tries the problems resides in this line:</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Courier New">FirstPart = tmpQP.ExtractFilePages(destFile, <SPAN style="COLOR: blue">My</SPAN>.Application.Info.DirectoryPath &amp; <SPAN style="COLOR: #a31515">"\1.pdf"</SPAN>, <SPAN style="COLOR: #a31515">"1-"</SPAN> &amp; position) <SPAN style="COLOR: green"><o:p></o:p></SPAN></FONT></DIV><DIV>&nbsp;</DIV><DIV>when you call the SUB the secondtime the extraction process &nbsp;fails doing the problem 1,2,<strong>1,1,1....</strong></DIV><DIV><strong></strong>&nbsp;</DIV><DIV>Hope this helps.</DIV><DIV>&nbsp;</DIV><DIV>Thanks </DIV><DIV>&nbsp;</DIV><DIV>Sly</DIV>]]>
   </description>
   <pubDate>Mon, 22 Mar 2010 10:25:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-extraction-problem_topic1379_post6264.html#6264</guid>
  </item> 
  <item>
   <title><![CDATA[Page extraction problem : Hi Sly, it would be helpful if...]]></title>
   <link>http://www.quickpdf.org/forum/page-extraction-problem_topic1379_post6263.html#6263</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1379<br /><strong>Posted:</strong> 22 Mar 10 at 9:54AM<br /><br />Hi Sly, it would be helpful if you posted your code. It doesn't really mater what language it's in, the important thing is that everyone gets to see the functions that you have used and the sequence in which they were called...&nbsp;]]>
   </description>
   <pubDate>Mon, 22 Mar 2010 09:54:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-extraction-problem_topic1379_post6263.html#6263</guid>
  </item> 
  <item>
   <title><![CDATA[Page extraction problem : Hi everybody, I have a problem...]]></title>
   <link>http://www.quickpdf.org/forum/page-extraction-problem_topic1379_post6262.html#6262</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1275">SlyJay</a><br /><strong>Subject:</strong> 1379<br /><strong>Posted:</strong> 22 Mar 10 at 9:19AM<br /><br />Hi everybody,<DIV>I have a problem during extraction process.</DIV><DIV>&nbsp;</DIV><DIV>Given a source pdf file "source.pdf" if I call "QP.ExtractFilePages" for a certain range let's say 1-2 it crates a file with the 2 pages correctly, but if a call it a second time lats say with a range like 1-3 it generates a file with page 1,2,<strong>1</strong> instead of 1,2,3.&nbsp;It copies allways the first page at the end after calling it a second time. </DIV><DIV>&nbsp;</DIV><DIV>To clarify better, the forst time works correctly&nbsp;extracting the right pages but&nbsp;the second time it seems to append allways the fisrt page to the&nbsp;previous extracted range as many times as the current range exeeds the first range (1,2,<strong>1,1,1.......</strong>). </DIV><DIV>&nbsp;</DIV><DIV>I've also tried to create a new istance of quickPdf for each extraction process but the behaviour is the same.</DIV><DIV>&nbsp;</DIV><DIV>Any clue???</DIV><DIV>&nbsp;</DIV><DIV>If you need more information just ask, I didn't post the code since we all use different languages but my code is in VB.net.</DIV><DIV>&nbsp;</DIV><DIV>Thanks in advance</DIV><DIV>&nbsp;</DIV><DIV>Sly&nbsp;</DIV>]]>
   </description>
   <pubDate>Mon, 22 Mar 2010 09:19:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/page-extraction-problem_topic1379_post6262.html#6262</guid>
  </item> 
 </channel>
</rss>