<?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 : Removing Layer Based on Content Group</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 : Removing Layer Based on Content Group]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 11:51:55 +0000</pubDate>
  <lastBuildDate>Thu, 26 Aug 2010 15:31: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=1549</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[Removing Layer Based on Content Group : I&amp;#039;m sorry if I am not explaining...]]></title>
   <link>http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6911.html#6911</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1370">Luke</a><br /><strong>Subject:</strong> 1549<br /><strong>Posted:</strong> 26 Aug 10 at 3:31PM<br /><br />I'm sorry if I am not explaining myself well. This is my first time working with PDF's in code.<img src="http://www.quickpdf.org/forum/smileys/smiley9.gif" border="0" alt="Embarrassed" title="Embarrassed" />&nbsp;<div><br></div><div>Since I already know the name of the Content Group, I can find the Content Group ID. &nbsp;I have enough control over the PDF's so don't really need to worry about someone else adding a content group with the same name.<div><br></div><div>My problem is after I get the contentgroup-id, either from a custom field or by searching all the Content Groups for a specific name. How do I find the layers that I associated with content group? When I originally added my watermark, I associated that layer with the code:</div></div><div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><div><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif"><span apple-style-span="Apple-style-span" style="font-size: x-small; ">&nbsp;iContentGroup := FPDF.NewOptionalContentGroup( 'WaterMark' );</span></font></div><div><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif"><span apple-style-span="Apple-style-span" style="font-size: x-small; ">&nbsp;FPDF.SetLayerOptional( iContentGroup );</span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="line-height: 14px; font-size: x-small;"><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; -webkit-border-horiz&#111;ntal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; ">So, now I need to go backwords and find&nbsp;&nbsp;Layer(s) that I associated with that group.</span></span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="line-height: 14px; font-size: x-small;"><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; -webkit-border-horiz&#111;ntal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; "><br></span></span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="line-height: 14px; font-size: x-small;"><span ="Apple-style-span" style="font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; -webkit-border-horiz&#111;ntal-spacing: 0px; -webkit-border-vertical-spacing: 0px; font-size: 12px; ">Hope I explained it better this time.<img src="http://www.quickpdf.org/forum/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" /></span></span></font></div><div><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif"><span apple-style-span="Apple-style-span" style="font-size: x-small; "><br></span></font></div></span></div>]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 15:31:53 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6911.html#6911</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Layer Based on Content Group : Hi!Do it this way and you have...]]></title>
   <link>http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6910.html#6910</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1549<br /><strong>Posted:</strong> 26 Aug 10 at 6:36AM<br /><br />Hi!<br><br>Do it this way and you have the id:<br>...<br>The problem could be that later after new loading you don't know the contentgroup-id anymore.<br>Myidea: With QuickPDF you can create own custom fields in the pdf. Thereyou could save the contentgroup-id to be read out later.<br>...<br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Thu, 26 Aug 2010 06:36:54 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6910.html#6910</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Layer Based on Content Group : Thanks though I&amp;#039;m not sure...]]></title>
   <link>http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6909.html#6909</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1370">Luke</a><br /><strong>Subject:</strong> 1549<br /><strong>Posted:</strong> 25 Aug 10 at 4:53PM<br /><br />Thanks though I'm not sure I understand. After new loading can't I figure out what the content group id by looping through the content groups checking for &nbsp;the Group Name that matches.&nbsp;<div><span ="Apple-style-span" style="-webkit-border-horiz&#111;ntal-spacing: 1px; -webkit-border-vertical-spacing: 1px; "><div><span apple-style-span="Apple-style-span" style="font-size: x-small; "><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif"><br></font></span></div><div><span apple-style-span="Apple-style-span" style="font-size: x-small; "><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;if&nbsp;&nbsp;FPDF.GetOptionalContentGroupName( FPDF.GetOptionalContentGroupID( i ) ) ) = 'WaterMark' then begin</font></span></div><div><span apple-style-span="Apple-style-span" style="font-size: x-small; "><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp; &nbsp;// Find Layers associated with this Content Group</font></span></div><div><span apple-style-span="Apple-style-span" style="font-size: x-small; "><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp;end;</font></span></div><div><span apple-style-span="Apple-style-span" style="font-size: x-small; "><font apple-style-span="Apple-style-span" face="Arial, Helvetica, sans-serif"><br></font></span></div></span></div><div>To help me understand, what's the point of assigning a layer to a content group if you cannot then find the all the layers of a particular content group?</div>]]>
   </description>
   <pubDate>Wed, 25 Aug 2010 16:53:17 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6909.html#6909</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Layer Based on Content Group : Hi Luke!Only in very general terms...]]></title>
   <link>http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6905.html#6905</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 1549<br /><strong>Posted:</strong> 25 Aug 10 at 6:38AM<br /><br />Hi Luke!<br><br>Only in very general terms ...<br>1. NewOptionalContentGroup...<br>2. GetOptionalContentGroup...<br>3. You have to set a new layer.<br>4. You have to select this layer.<br>5. Make your drawings (perhaps with transparency... looks better)...<br>6. Save...<br>7. ...<br>The problem could be that later after new loading you don't know the contentgroup-id anymore.<br>My idea: With QuickPDF you can create own custom fields in the pdf. There you could save the contentgroup-id to be read out later.<br><br>Only thoughts...<br><br>Cheers, Ingo<br><br>]]>
   </description>
   <pubDate>Wed, 25 Aug 2010 06:38:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6905.html#6905</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Layer Based on Content Group : Any thoughts? ]]></title>
   <link>http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6904.html#6904</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1370">Luke</a><br /><strong>Subject:</strong> 1549<br /><strong>Posted:</strong> 25 Aug 10 at 5:17AM<br /><br />Any thoughts?]]>
   </description>
   <pubDate>Wed, 25 Aug 2010 05:17:08 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6904.html#6904</guid>
  </item> 
  <item>
   <title><![CDATA[Removing Layer Based on Content Group : I am trying to be able to Add...]]></title>
   <link>http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6878.html#6878</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1370">Luke</a><br /><strong>Subject:</strong> 1549<br /><strong>Posted:</strong> 22 Aug 10 at 1:21AM<br /><br />I am trying to be able to Add and Remove Watermarks.<div><br></div><div>Currently I can add a Watermark with the following code:</div><div><div><br></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="font-size: x-small;">&nbsp;&nbsp;Result := FPDF.NewLayer;</span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="font-size: x-small;">&nbsp;&nbsp;FPDF.DrawText( 100, 400, AWaterMark );</span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="font-size: x-small;">&nbsp;&nbsp;iContentGroup := FPDF.NewOptionalContentGroup( 'WaterMark' );</span></font></div><div><font ="Apple-style-span" face="Arial, Helvetica, sans-serif"><span ="Apple-style-span" style="font-size: x-small;">&nbsp;&nbsp;FPDF.SetLayerOptional( iContentGroup );</span></font></div><div><br></div></div><div>Now I want to be able to remove all Layers associated with the ContentGroup 'WaterMark'. I see how to find that group with&nbsp;</div><div><div><span ="Apple-style-span" style="font-size: x-small;"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp; &nbsp;for i := 1 to FPDF.GetOptionalContentConfigCount do begin</font></span></div><div><span ="Apple-style-span" style="font-size: x-small;"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp; &nbsp; &nbsp;if&nbsp;&nbsp;FPDF.GetOptionalContentGroupName( FPDF.GetOptionalContentGroupID( i ) ) ) = 'WaterMark' then begin</font></span></div><div><span ="Apple-style-span" style="font-size: x-small;"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; // Find Layers associated with this Content Group</font></span></div><div><span ="Apple-style-span" style="font-size: x-small;"><font ="Apple-style-span" face="Arial, Helvetica, sans-serif">&nbsp;&nbsp; &nbsp; &nbsp;end;</font></span></div><div><span ="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; line-height: 14px; font-size: x-small; ">&nbsp;&nbsp; &nbsp;end;</span></div></div><div><br></div><div>How do I find all the layers linked to that Content Group? TIA.</div>]]>
   </description>
   <pubDate>Sun, 22 Aug 2010 01:21:42 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/removing-layer-based-on-content-group_topic1549_post6878.html#6878</guid>
  </item> 
 </channel>
</rss>