<?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 corrupts original document</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 corrupts original document]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 04:41:11 +0000</pubDate>
  <lastBuildDate>Tue, 03 Nov 2009 11:55:48 +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=1254</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 corrupts original document : Moin Ingo!I already chose that...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5802.html#5802</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 03 Nov 09 at 11:55AM<br /><br />Moin Ingo!<br><br>I already chose that way (support site). But Rowan asked me to continue the case here. But I'll give it another try.<br>]]>
   </description>
   <pubDate>Tue, 03 Nov 2009 11:55:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5802.html#5802</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document : Hi Jan!It depends on the point...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5801.html#5801</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 03 Nov 09 at 11:47AM<br /><br />Hi Jan!<br><br>It depends on the point of view...<br>Perhaps this kind of work isn't possible or<br>QuickPDF doesn't offer this piece of functionality you need or<br>there's a buggy QuickPDF-function.<br>If you think that the last point is the right one that you should post your problem on the official support site.<br>Rowan visited this user-user-forum from time to time but not in a regulary way.<br><br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Tue, 03 Nov 2009 11:47:05 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5801.html#5801</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document : Hi Rowan,Sorry for being impatient....]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5800.html#5800</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 03 Nov 09 at 9:48AM<br /><br />Hi Rowan,<br><br>Sorry for being impatient. But I need the CopyPageRanges function in a current project. Do you already have an idea why that happens? Can you estimate how long it will take to provide a patch (if it's a bug)?<br>]]>
   </description>
   <pubDate>Tue, 03 Nov 2009 09:48:33 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5800.html#5800</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document : Same behaviour using latest version...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5780.html#5780</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 30 Oct 09 at 8:56AM<br /><br />Same behaviour using latest version 7.17...&nbsp;<img src="http://www.quickpdf.org/forum/smileys/smiley19.gif" border="0" alt="Cry" title="Cry" />]]>
   </description>
   <pubDate>Fri, 30 Oct 2009 08:56:10 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5780.html#5780</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document :   Hi Rowan,Thanks for your reply.Be...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5746.html#5746</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 27 Oct 09 at 9:25AM<br /><br />Hi Rowan,<br><br>Thanks for your reply.<br><br>Be careful with "id1 := LoadFromFile()". That function only returns success or error. <img src="http://www.quickpdf.org/forum/smileys/smiley2.gif" border="0" alt="Wink" title="Wink" /> But the following code works.<br><br><font color="#0000ff">------<br>var<br>&nbsp; pdf: TQuickPDF0716;<br>&nbsp; id1, id2: Integer;<br>begin<br>&nbsp; pdf := TQuickPDF0716.Create;<br>&nbsp; pdf.UnlockKey(';-)');<br>&nbsp; pdf.LoadFromFile('c:\temp\x.pdf');<br>&nbsp; id1 := pdf.SelectedDocument;<br>&nbsp; pdf.SaveToFile('c:\temp\x1.pdf');<br><br>&nbsp; id2 := pdf.NewDocument;<br>&nbsp; pdf.SelectDocument(id2);<br>&nbsp; pdf.CopyPageRanges(id1, '1');<br>&nbsp; pdf.SaveToFile('c:\temp\x2.pdf');<br><br>&nbsp; pdf.Free;<br>end<br>------</font><br><br>But... I need to be able to call CopyPageRanges and afterwards work again with the original document. Something like that:<br><br><font color="#0000ff">------</font><br><font color="#0000ff">var<br>&nbsp; pdf: TQuickPDF0716;<br>&nbsp; id1, id2, id3, pc: Integer;<br>begin<br>&nbsp; pdf := TQuickPDF0716.Create;<br>&nbsp; pdf.UnlockKey('');<br>&nbsp; pdf.LoadFromFile('c:\temp\x.pdf');<br>&nbsp; pc := pdf.PageCount;<br>&nbsp; id1 := pdf.SelectedDocument;<br><br>&nbsp; // 1. saving original document is okay<br>&nbsp; pdf.SaveToFile('c:\temp\x1.pdf');<br><br>&nbsp; // 2. saving original document is okay<br>&nbsp; pdf.SaveToFile('c:\temp\x2.pdf');<br><br>&nbsp; // Saving copy 1 is okay<br>&nbsp; id2 := pdf.NewDocument;<br>&nbsp; pdf.SelectDocument(id2);<br>&nbsp; pdf.CopyPageRanges(id1, '1-' + IntToStr(pc));<br>&nbsp; pdf.DeletePages(1, 1);<br>&nbsp; pdf.SaveToFile('c:\temp\x3.pdf');<br><br>&nbsp; // Saving copy 2 is okay<br>&nbsp; id3 := pdf.NewDocument;<br>&nbsp; pdf.SelectDocument(id3);<br>&nbsp; pdf.CopyPageRanges(id1, '1-' + IntToStr(pc));<br>&nbsp; pdf.DeletePages(1, 1);<br>&nbsp; pdf.SaveToFile('c:\temp\x4.pdf');<br><br>&nbsp; // 3. Saving original document -&gt; corrupt file<br>&nbsp; pdf.SelectDocument(id1);<br>&nbsp; pdf.SaveToFile('c:\temp\x5.pdf');<br><br>&nbsp; pdf.Free;<br>end;</font><br><font color="#0000ff">------</font><br><br>Can you reproduce that error?<br><br><span style="font-size:10px"><br /><br />Edited by JanN - 27 Oct 09 at 9:27AM</span>]]>
   </description>
   <pubDate>Tue, 27 Oct 2009 09:25:40 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5746.html#5746</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document : Hi Jan,Try the code listed below,...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5745.html#5745</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 27 Oct 09 at 5:38AM<br /><br />Hi Jan,<div><br></div><div>Try the code listed below, does it work for you?</div><div><br></div><div><div><font ="Apple-style-span" color="#000099">------</font></div><div><font ="Apple-style-span" color="#000099">var</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf: TQuickPDF0716;</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;id1: Integer;</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;id2: Integer;</font></div><div><font ="Apple-style-span" color="#000099">begin</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf := TQuickPDF0716.Create;</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.UnlockKey(';-)');</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;id1 := pdf.LoadFromFile('c:\temp\x.pdf');</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.SelectDocument(id1);</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.SaveToFile('c:\temp\x1.pdf'); // this file is okay and fits the original file</font></div><div><font ="Apple-style-span" color="#000099"><br></font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;id2 := pdf.NewDocument;</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.SelectDocument(id2);</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.CopyPageRanges(id, '1');</font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.SaveToFile('c:\temp\x2.pdf'); // !!!this file is corrupt!!!</font></div><div><font ="Apple-style-span" color="#000099"><br></font></div><div><font ="Apple-style-span" color="#000099">&nbsp;&nbsp;pdf.Free;</font></div><div><font ="Apple-style-span" color="#000099">------</font></div></div><div><br></div><div>Cheers,</div><div>- Rowan.</div>]]>
   </description>
   <pubDate>Tue, 27 Oct 2009 05:38:45 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5745.html#5745</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document : Could anybody please quickly run...]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5737.html#5737</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 23 Oct 09 at 10:04AM<br /><br />Could anybody please quickly run my code with another test file and confirm my result? That would already help me a lot. Thanks in advance! :)]]>
   </description>
   <pubDate>Fri, 23 Oct 2009 10:04:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5737.html#5737</guid>
  </item> 
  <item>
   <title><![CDATA[CopyPageRanges corrupts original document : Hi,I have used the following code....]]></title>
   <link>http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5731.html#5731</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=117">JanN</a><br /><strong>Subject:</strong> 1254<br /><strong>Posted:</strong> 21 Oct 09 at 10:59AM<br /><br />Hi,<br><br>I have used the following code. Please have a look at the comments.<br><br>------<br>var<br>&nbsp; pdf: TQuickPDF0716;<br>&nbsp; id: Integer;<br>begin<br>&nbsp; pdf := TQuickPDF0716.Create;<br>&nbsp; pdf.UnlockKey(';-)');<br>&nbsp; pdf.LoadFromFile('c:\temp\x.pdf');<br>&nbsp; id := pdf.SelectedDocument;<br>&nbsp; pdf.SaveToFile('c:\temp\x1.pdf'); // this file is okay and fits the original file<br><br>&nbsp; pdf.NewDocument;<br>&nbsp; pdf.CopyPageRanges(id, '1');<br><br>&nbsp; pdf.SelectDocument(id);<br>&nbsp; pdf.SaveToFile('c:\temp\x2.pdf'); // !!!this file is corrupt!!!<br><br>&nbsp; pdf.Free;<br>------<br><br>I believe it's a bug in the library. Or have I missed something? <img src="http://www.quickpdf.org/forum/smileys/smiley5.gif" border="0" alt="C&#111;nfused" title="C&#111;nfused" /><br><br>]]>
   </description>
   <pubDate>Wed, 21 Oct 2009 10:59:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/copypageranges-corrupts-original-document_topic1254_post5731.html#5731</guid>
  </item> 
 </channel>
</rss>