<?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 : About the ContentStream</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 : About the ContentStream]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 19 May 2026 04:28:05 +0000</pubDate>
  <lastBuildDate>Tue, 12 Jan 2016 02:30:37 +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=3244</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[About the ContentStream : Hi professional:	I find that the...]]></title>
   <link>http://www.quickpdf.org/forum/about-the-contentstream_topic3244_post12912.html#12912</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2820">nieguizhi</a><br /><strong>Subject:</strong> 3244<br /><strong>Posted:</strong> 12 Jan 16 at 2:30AM<br /><br />Hi professional:<div><br></div><div><span ="Apple-tab-span" style="white-space:pre">	</span>I find that the below two pieces of code get the same results when I open the pdf file by the software of &nbsp;AI. why? &nbsp;I also get one layer, what is the function NewOptionalContentGroup means?</div><div>thank you. &nbsp;look forward to your reply.</div><div><br></div><div><div>int OCG1 = DPL.NewOptionalContentGroup(L"group1");</div><div><br></div><div>DPL.SelectPage(1);</div><div>DPL.SetOrigin(1);</div><div><br></div><div>int cs1 = DPL.NewContentStream();</div><div>DPL.SelectContentStream(cs1);</div><div>DPL.DrawText(100,100,L"CS1");</div><div>DPL.SetContentStreamOptional(OCG1);</div><div>DPL.SetOptionalContentGroupVisible(OCG1, 1);</div><div><br></div><div>int OCG2 = DPL.NewOptionalContentGroup(L"group2");</div><div><br></div><div>int cs2 = DPL.NewContentStream();</div><div>DPL.SelectContentStream(cs2);</div><div>DPL.DrawText(100, 200, L"CS2");</div><div>DPL.SetContentStreamOptional(OCG2);</div><div>DPL.SetOptionalContentGroupVisible(OCG2, 1);</div><div><br></div><div>DPL.SaveToFile(L"newLayer.pdf");</div></div><div><br></div><div><br></div><div><br></div><div>////////////////////////////////////////////////////////////////////////////////</div><div><div>int OCG1 = DPL.NewOptionalContentGroup(L"group1");</div><div><br></div><div>DPL.SelectPage(1);</div><div>DPL.SetOrigin(1);</div><div><br></div><div>int cs1 = DPL.NewContentStream();</div><div>DPL.SelectContentStream(cs1);</div><div>DPL.DrawText(100,100,L"CS1");</div><div>DPL.SetContentStreamOptional(OCG1);</div><div>DPL.SetOptionalContentGroupVisible(OCG1, 1);</div><div><br></div><div><br></div><div>int cs2 = DPL.NewContentStream();</div><div>DPL.SelectContentStream(cs2);</div><div>DPL.DrawText(100, 200, L"CS2");</div><div>DPL.SetContentStreamOptional(OCG1);</div><div>DPL.SetOptionalContentGroupVisible(OCG1, 1);</div><div><br></div><div>DPL.SaveToFile(L"newLayer.pdf");</div></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 12 Jan 2016 02:30:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/about-the-contentstream_topic3244_post12912.html#12912</guid>
  </item> 
 </channel>
</rss>