<?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 : CopyPageRanges very slowly!</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 : CopyPageRanges very slowly!]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 20 Apr 2026 17:27:04 +0000</pubDate>
  <lastBuildDate>Thu, 16 Feb 2012 21:16:53 +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=2148</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[CopyPageRanges very slowly! :  Hi,working with capture is only...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9159.html#9159</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1569">edvoigt</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 16 Feb 12 at 9:16PM<br /><br />Hi,<br><br>working with capture is only possible in one document, so you need merge in any form before.<br><br>As Ingo said, explain please more accurate what you want. I assume you want to build a new PDF and your source is another (bigger) PDF from which you need only a few pages?<br><br>Remember about the difference between your PDF on disk and the document in QP, which is a construct in memory. First you should use the "normal" way loadfromfile without going a way over a string. This string needs memory, QP-&gt;document needs memory. So you help QP to be slow.<br><br>If you have one PDF from which you need some pages, so the easiest way is to take it and delte the unneeded pages. So you have only one document in memory. After deleting process it is to save and you are ready.<br><br>If the PDF is very big, it may be better to use DA..., but try first easy<br><br><font face="Courier New, Courier, mono">QP.Loadfromfile('name.pdf', '');<br>QP.DeletePage(12, 6); // example: without 12,13,..17<br>QP.SaveToFile('name_new.pdf');</font><br>&nbsp;<br>to get a feeling for the possibilities of QP. More as this kernel operations is not needed.<br><br>Werner<br><br>]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 21:16:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9159.html#9159</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! : I&amp;#039;ve seen copy and then delete...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9158.html#9158</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 16 Feb 12 at 7:50PM<br /><br />I've seen copy and then delete - so i thought it was better to capture ;-)]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 19:50:09 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9158.html#9158</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! : But I need copy pages from one...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9156.html#9156</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1851">AlexCasual</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 16 Feb 12 at 7:06PM<br /><br />But I need copy pages from one document to another,can I use capture functions in this case? &nbsp;]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 19:06:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9156.html#9156</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! : Capture functions will be working...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9155.html#9155</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1851">AlexCasual</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 16 Feb 12 at 6:56PM<br /><br />Capture functions will be working better?]]>
   </description>
   <pubDate>Thu, 16 Feb 2012 18:56:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9155.html#9155</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! :  Hi!At other parts you can save...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9132.html#9132</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 15 Feb 12 at 7:20PM<br /><br />Hi!<br><br>At other parts you can save time.<br>First you load into string and then the string into QP.<br>At least you save to string and then from string via QP to file.<br>Why?<br>In your case i would remove the load/save to string?<br>If you want to copy pages from one document to the other<br>and want to delete them later in the original document<br>you should better use the capture functions (so one step less ;-).<br>To save further performance you can use the DA-functionalities.<br><br>Cheers, Ingo<br><span style="font-size:10px"><br /><br />Edited by Ingo - 15 Feb 12 at 7:27PM</span>]]>
   </description>
   <pubDate>Wed, 15 Feb 2012 19:20:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9132.html#9132</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! : Part of C++ code :..........int...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9121.html#9121</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1851">AlexCasual</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 14 Feb 12 at 2:53PM<br /><br /><span style="color: rgb34, 34, 34; font-family: arial, sans-serif; font-size: 13px; line-height: normal; : rgba255, 255, 255, 0.917969; ">Part of C++ code :</span><div style="color: rgb34, 34, 34; font-family: arial, sans-serif; font-size: 13px; line-height: normal; : rgba255, 255, 255, 0.917969; "><br></div><div style="color: rgb34, 34, 34; font-family: arial, sans-serif; font-size: 13px; line-height: normal; : rgba255, 255, 255, 0.917969; ">..........</div><div style="color: rgb34, 34, 34; font-family: arial, sans-serif; font-size: 13px; line-height: normal; : rgba255, 255, 255, 0.917969; "><div>int pdf_id = m_QP-&gt;NewDocument();</div><div><br></div><div>for (SIZE_T i = 0; i &lt; this-&gt;count_; ++i)</div><div>{</div><div>&nbsp; &nbsp;m_QP-&gt;SetOrigin(1);</div><div><br></div><div>&nbsp; &nbsp;std::string pdf_source;</div><div>&nbsp; &nbsp;this-&gt;GetDataPdf(i,pdf_<wbr>source); // &lt;- Read pdf files from disk</div><div><br></div><div>&nbsp; &nbsp;load_result = m_QP-&gt;LoadFromString(pdf_<wbr>source,L"");</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp;int curr_id = m_QP-&gt;SelectedDocument();</div><div><br></div><div>&nbsp; &nbsp;m_QP-&gt;SelectDocument(pdf_id);</div><div><br></div><div>&nbsp; &nbsp;m_QP-&gt;CopyPageRanges(curr_id,<wbr>L"1"); // &lt;- VERY SLOWLY!!!</div><div><br></div><div>&nbsp; &nbsp;m_QP-&gt;RemoveDocument(curr_id)<wbr>;</div></div><div style="color: rgb34, 34, 34; font-family: arial, sans-serif; font-size: 13px; line-height: normal; : rgba255, 255, 255, 0.917969; ">}</div><div style="color: rgb34, 34, 34; font-family: arial, sans-serif; font-size: 13px; line-height: normal; : rgba255, 255, 255, 0.917969; "><div>std::string pdf_source;</div><div>try</div><div>{</div><div>&nbsp; &nbsp; m_QP-&gt;DeletePages(1,1);</div><div><br></div><div>&nbsp; &nbsp; pdf_source = m_QP-&gt;SaveToString();</div><div><br></div><div>&nbsp; &nbsp;m_QP-&gt;SaveToFile(L"c:\\Z.pdf"<wbr>);</div><div><br></div><div>&nbsp; &nbsp;m_QP-&gt;RemoveDocument(pdf_id);</div><div>}</div><div>catch(...){}</div></div>]]>
   </description>
   <pubDate>Tue, 14 Feb 2012 14:53:57 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9121.html#9121</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! : Hi Alex!   This could depend...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9118.html#9118</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 14 Feb 12 at 9:37AM<br /><br />Hi Alex! <DIV>&nbsp;</DIV><DIV>This could depend on the type of your pdfs (where's a sample?).</DIV><DIV>Perhaps it have to do with your code (where's a sample?).</DIV><DIV>You should deliver more infos if you need help.</DIV><DIV>And don't forget: It's a user-user-forum here - not the official support pages ;-)</DIV><DIV>&nbsp;</DIV><DIV>Cheers, Ingo</DIV><span style="font-size:10px"><br /><br />Edited by Ingo - 14 Feb 12 at 9:37AM</span>]]>
   </description>
   <pubDate>Tue, 14 Feb 2012 09:37:02 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9118.html#9118</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges very slowly! : I want to create multipage pdf...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9117.html#9117</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1851">AlexCasual</a><br /><strong>Subject:</strong> 2148<br /><strong>Posted:</strong> 14 Feb 12 at 8:12AM<br /><br />I want to create multipage pdf with function&nbsp;LoadFromString()...And if I use&nbsp;CopyPageRanges() from document created by&nbsp;LoadFromString() to my multipage document it's VERY slowly!<div>Please help!</div>]]>
   </description>
   <pubDate>Tue, 14 Feb 2012 08:12:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-very-slowly_topic2148_post9117.html#9117</guid>
  </item> 
 </channel>
</rss>