<?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 : Delete optionalcontentgroup</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 : Delete optionalcontentgroup]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 23:28:49 +0000</pubDate>
  <lastBuildDate>Tue, 26 Jan 2016 04:10:30 +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=3253</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[Delete optionalcontentgroup : could you mean this:for (int i=optionNum;...]]></title>
   <link>http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253_post12949.html#12949</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2820">nieguizhi</a><br /><strong>Subject:</strong> 3253<br /><strong>Posted:</strong> 26 Jan 16 at 4:10AM<br /><br />could you mean this:<div>for (int i=optionNum; i&gt;=1; --i)&nbsp;</div><div>{</div><div>&nbsp;int optionID = DPL.GetOptionalContentGroupID(i);</div><div>DPL.DeleteOptionalContentGroup(optionID);</div><div>&nbsp;}</div><div><br></div><div>thanks!</div>]]>
   </description>
   <pubDate>Tue, 26 Jan 2016 04:10:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253_post12949.html#12949</guid>
  </item> 
  <item>
   <title><![CDATA[Delete optionalcontentgroup : You should first re-sequence the...]]></title>
   <link>http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253_post12945.html#12945</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1388">tfrost</a><br /><strong>Subject:</strong> 3253<br /><strong>Posted:</strong> 25 Jan 16 at 12:21PM<br /><br />You should first re-sequence the loop. You should always start with the highest value and descend from the top down when deleting, because deleting the value i makes the next item become i. &nbsp;Also the content group ID index base is documented as 1, not 0.]]>
   </description>
   <pubDate>Mon, 25 Jan 2016 12:21:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253_post12945.html#12945</guid>
  </item> 
  <item>
   <title><![CDATA[Delete optionalcontentgroup : Hi, I use the following code to...]]></title>
   <link>http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253_post12944.html#12944</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2820">nieguizhi</a><br /><strong>Subject:</strong> 3253<br /><strong>Posted:</strong> 25 Jan 16 at 8:49AM<br /><br /><div>Hi, I use the following code to delete the optionalcontentgroup, however it does not remove the optionalcontentgroup. Could somebody give me some suggestion, thanks! look forward to your replay.</div><div><br></div>DPL.LoadFromFile(L"contentstream.pdf", L"");<div>int contentNum = DPL.ContentStreamCount();</div><div><br></div><div>int optionNum = DPL.OptionalContentGroupCount();</div><div><br></div><div>for (int i=0; i&lt;=optionNum; ++i)</div><div>{</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>int optionID = DPL.GetOptionalContentGroupID(i);</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>CStringW optionalName = DPL.GetOptionalContentGroupName(optionID).c_str();</div><div><span ="Apple-tab-span" style="white-space:pre">	</span>DPL.DeleteOptionalContentGroup(optionID);</div><div>}</div><div>DPL.SaveToFile(L"no_option.pdf");</div>]]>
   </description>
   <pubDate>Mon, 25 Jan 2016 08:49:28 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253_post12944.html#12944</guid>
  </item> 
 </channel>
</rss>