<?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 : DeleteOptionalContentGroup problem not save ?</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 : DeleteOptionalContentGroup problem not save ?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sun, 05 Apr 2026 06:15:28 +0000</pubDate>
  <lastBuildDate>Mon, 16 Oct 2017 22:31:41 +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=3515</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[DeleteOptionalContentGroup problem not save ? : Hi :)here are two links with similar...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13998.html#13998</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 10:31PM<br /><br />Hi :)<br><br>here are two links with similar problems.<br>The second one was the interesting one for you.<br>Rowan is telling there something about the meaning of these OptionalContentGroups and why the content is still there obviously you've deleted the OCG ;-)<br>http://www.quickpdf.org/forum/delete-optionalcontentgroup_topic3253.html<br>http://www.quickpdf.org/forum/help-with-detecting-visible-ocgs-and-removing-ocgs_topic3153.html<br><br>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 22:31:41 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13998.html#13998</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : @ukobsaI have used your example...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13997.html#13997</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 9:51PM<br /><br />@ukobsa<div>I have used your example in AutoIt and I have such example:</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Func _Example2()</div><div><span style="white-space:pre">	</span>Local $oQP</div><div><span style="white-space:pre">	</span>If _QPDF_CreateObjectAndUnlock($oQP) = $QPDF_RET_VALID_COMMERCIAL Then</div><div><span style="white-space:pre">		</span>$oQP.SetOrigin(1) ;</div><div><span style="white-space:pre">		</span>$oQP.AddStandardFont(1) ;</div><div><span style="white-space:pre">		</span>$oQP.DrawText(100, 50, 'Regulärer Text') ;</div><div><br></div><div><span style="white-space:pre">		</span>$oQP.NewContentStream ;</div><div><span style="white-space:pre">		</span>$oQP.DrawText(100, 100, '1. Layer DUMMY added') ;</div><div><br></div><div><span style="white-space:pre">		</span>Local $iOC = $oQP.NewOptionalContentGroup('DUMMY') ;</div><div><span style="white-space:pre">		</span>$oQP.SetContentStreamOptional($iOC) ;</div><div><span style="white-space:pre">		</span>$oQP.SetOptionalContentGroupVisible($iOC, 0) ;</div><div><br></div><div><span style="white-space:pre">		</span>$oQP.SaveToFile(@ScriptDir &amp; '\test_oc_dummy.pdf') ;</div><div><br></div><div><span style="white-space:pre">		</span>Local $iRes = $oQP.DeleteOptionalContentGroup($iOC) ;</div><div><span style="white-space:pre">		</span>MsgBox(0, '$iRes', $iRes)</div><div>;~&nbsp; &nbsp; &nbsp;// $iRes is set to 1 when executing</div><div><br></div><div><span style="white-space:pre">		</span>$oQP.SaveToFile(@ScriptDir &amp; '\test_oc_dummy_del.pdf') ;</div><div><span style="white-space:pre">	</span>EndIf</div><div>EndFunc&nbsp; &nbsp;;==&gt;_Example2</div></div><div></pre></td></tr></table></div><div><br></div><div>The results are here:<br>http://lipok.pl/Debenu/test_oc_dummy.pdf</div><div>http://lipok.pl/Debenu/test_oc_dummy_del.pdf</div><div><br></div><div><b>REMARK:&nbsp;</b><div>Downlad this two files, and open in AcrobatReader not in GoogleChrome or in any other WebBrowser.</div></div><div><br></div><div><br></div><div>You should notice that:<br>test_oc_dummy_del.pdf</div><div><br></div><div>still contains "1. Layer DUMMY added" text .<br><br></div><div><br></div><div>I expected that deleting OCG would also remove all content inside this OCG.</div><div><br></div><div>But that did not happen.<br><b>Question is :</b>&nbsp; Why that did not happen ?</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 21:51:49 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13997.html#13997</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : Your example is like this: ...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13996.html#13996</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 7:36PM<br /><br />Your example is like this:<div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div></div><div><div><div>&nbsp; &nbsp; ......</div><div>&nbsp; &nbsp; lPDF.NewContentStream;</div><div>&nbsp; &nbsp; lPDF.DrawText(100, 100, '1. Layer DUMMY added');</div><div><br></div><div>&nbsp; &nbsp; nOC := lPDF.NewOptionalContentGroup('DUMMY');</div><div>&nbsp; &nbsp; lPDF.SetContentStreamOptional(nOC);</div><div>&nbsp; &nbsp; lPDF.SetOptionalContentGroupVisible(nOC, 0)</div><div>&nbsp; &nbsp; .......</div></div><div></pre></td></tr></table></div></div><div><br></div><div>My is like this:<br><br></div><div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><div>&nbsp; &nbsp; ......</div><div>&nbsp; &nbsp; nOC := lPDF.NewOptionalContentGroup('DUMMY');</div><div>&nbsp; &nbsp; lPDF.NewContentStream;</div><div>&nbsp; &nbsp; lPDF.DrawText(100, 100, '1. Layer DUMMY added');</div><div><br></div><div>&nbsp; &nbsp; lPDF.SetContentStreamOptional(nOC);</div><div>&nbsp; &nbsp; lPDF.SetOptionalContentGroupVisible(nOC, 0)</div><div>&nbsp; &nbsp; .......</div></div><div></pre></td></tr></table></div></div><div><br></div></div><div>I'm wondering if I doing this wrong ?</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 19:36:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13996.html#13996</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : Thanks.I will give it a try. And...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13995.html#13995</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 7:16PM<br /><br />Thanks.&nbsp;I will give it a try. And back with results.<span style="font-size:10px"><br /><br />Edited by mLipok - 16 Oct 17 at 7:17PM</span>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 19:16:35 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13995.html#13995</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : Hi,just tested it with this code...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13994.html#13994</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=370">ukobsa</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 3:59PM<br /><br />Hi,<br><br>just tested it with this code (14.11): and here the second PDF do no longer have the OCG layer (just the layer; content is still visible)<br><br><table width="99%"><tr><td><pre class="BBcode"><br>&nbsp; lPDF&nbsp; := TDebenuPDFLibrary.Create;<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; lPDF.SetOrigin(1);<br>&nbsp;&nbsp;&nbsp; lPDF.AddStandardFont(1);<br>&nbsp;&nbsp;&nbsp; lPDF.DrawText(100, 50, 'Regulärer Text');<br><br>&nbsp;&nbsp;&nbsp; lPDF.NewContentStream;<br>&nbsp;&nbsp;&nbsp; lPDF.DrawText(100, 100, '1. Layer DUMMY added');<br><br>&nbsp;&nbsp;&nbsp; nOC := lPDF.NewOptionalContentGroup('DUMMY');<br>&nbsp;&nbsp;&nbsp; lPDF.SetContentStreamOptional(nOC);<br>&nbsp;&nbsp;&nbsp; lPDF.SetOptionalContentGroupVisible(nOC, 0);<br><br>&nbsp;&nbsp;&nbsp; lPDF.SaveToFile('.\test_oc_dummy.pdf');<br><br>&nbsp;&nbsp;&nbsp; nRes := lPDF.DeleteOptionalContentGroup(nOC);<br>&nbsp;&nbsp;&nbsp; // nRes is set to 1 when executing<br><br>&nbsp;&nbsp;&nbsp; lPDF.SaveToFile('.\test_oc_dummy_del.pdf');<br>&nbsp; finally<br>&nbsp;&nbsp;&nbsp; lPDF.Free;<br>&nbsp; end;<br></pre></td></tr></table><br><br>Does this help?<br>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 15:59:01 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13994.html#13994</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : QUESTION:Do you know any way to...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13993.html#13993</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 8:28AM<br /><br /><div><b>QUESTION:</b></div><div>Do you know any way to find on which page is located specyfic OCG ?</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 08:28:11 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13993.html#13993</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? :   mLipok wrote:The other question...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13992.html#13992</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 8:06AM<br /><br /><table width="99%"><tr><td class="BBquote"><img src="forum_images/quote_box.png" title="Originally posted by mLipok" alt="Originally posted by mLipok" style="vertical-align: text-bottom;" /> <strong>mLipok wrote:</strong><br /><br />The other question is why&nbsp;<div><table width="99%"><tr><td><pre class="BBcode"></div><div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">	$oQP.SelectContentStream(1)</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">	MsgBox(0, 'Save ?', $oQP.ContentStreamSafe())</div></div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;"><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"></pre></td></tr></table></div><div><br></div><div>is saying 0 </div><div><br></div><div>??</div><div><br></div><div><br></div><div>As I showed before I used QPDF to create this OCG</div><div><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"></div></div></td></tr></table><div><br></div><div>Now I figured it out.<br><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">$oQP.ContentStreamSafe() was saing 0 as I need also select Page </span></div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div><font face="Courier New, Courier, mono"><span style="white-space: pre;">$oQP.SelectPage(2)MsgBox(0, 'Select Result', $oQP.SelectContentStream(1))MsgBox(0, 'Save ?', $oQP.ContentStreamSafe())</span></font><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"></span></div><div></pre></td></tr></table></div><div><br></div><div>I figured it out when I was trying to use:<br><div><table width="99%"><tr><td><pre class="BBcode"></div><div>$oQP.SetOptionalContentGroupVisible($iGroupID, 0)</div><div>$oQP.SetOptionalContentGroupPrintable($iGroupID, 0)&nbsp;</div></div><div><div></pre></td></tr></table></div></div><div><br></div><div>Which was not working until I use&nbsp;<span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">$oQP.SelectPage(2)</span></div><div><br></div><div>But .DeleteOptionalContentGroup is still not working even if I select proper page.</div><div><br></div><span style="font-size:10px"><br /><br />Edited by mLipok - 16 Oct 17 at 8:16AM</span>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 08:06:46 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13992.html#13992</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : The other question is why 	$o...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13991.html#13991</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 7:45AM<br /><br />The other question is why&nbsp;<div><table width="99%"><tr><td><pre class="BBcode"></div><div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">	$oQP.SelectContentStream(1)</div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;">	MsgBox(0, 'Save ?', $oQP.ContentStreamSafe())</div></div><div style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre; : rgb251, 251, 253;"><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"></pre></td></tr></table></div><div><br></div><div>is saying 0 </div><div><br></div><div>??</div><div><br></div><div><br></div><div>As I showed before I used QPDF to create this OCG</div><div><br></div><div style="font-family: Verdana, Arial, Helvetica, sans-serif; white-space: normal;"></div></div>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 07:45:31 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13991.html#13991</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : btw.Foxit Quick PDF Library 14.11...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13990.html#13990</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 7:43AM<br /><br />btw.<div>Foxit Quick PDF Library 14.11 Reference Guide.pdf</div><div><br></div><div>in description for&nbsp;<span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">.DeleteOptionalContentGroup</span></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><br></span></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">is not specyfing that return value are 0 or 1 but it is.</span></div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><br></span></div><div><span style="font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">The return value is exactly like mentioned in </span><font face="Courier New, Courier, mono"><span style="white-space: pre;">Foxit Quick PDF Library 14 Developer Guide.pdf</span></font></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><table width="99%"><tr><td><pre class="BBcode"></span></div><div><span style=": rgb251, 251, 253; white-space: pre;"><font face="Courier New, Courier, mono">If a function is not documented as having a return value then you can assume that a returnvalue of one (1) indicates success. A returning value of zero (0) indicates failure. Other returnedvalues indicate valid handle or ID and what this ID is for can be determined by the functionname.</font></span></div><div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"></pre></td></tr></table></span></div></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><br></span></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">so the return Value for </span><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;">.DeleteOptionalContentGroup is showing properly 1 and 0 for example when I select non existen OCG.</span></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><br></span></div><div><span style=": rgb251, 251, 253; font-family: &quot;Courier New&quot;, Courier, mono; white-space: pre;"><br></span></div><span style="font-size:10px"><br /><br />Edited by mLipok - 16 Oct 17 at 7:43AM</span>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 07:43:03 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13990.html#13990</guid>
  </item> 
  <item>
   <title><![CDATA[DeleteOptionalContentGroup problem not save ? : I was using this snippet to add...]]></title>
   <link>http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13989.html#13989</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2557">mLipok</a><br /><strong>Subject:</strong> 3515<br /><strong>Posted:</strong> 16 Oct 17 at 7:32AM<br /><br />I was using this snippet to add OptionalContentGroup:<div><table width="99%"><tr><td><pre class="BBcode"></div><div><br></div><div><div><span style="white-space:pre">	</span>Local $iOCG1 = $oQP.NewOptionalContentGroup("POUCZENIE")</div><div><span style="white-space:pre">	</span>Local $iCS_Id = $oQP.NewContentStream()</div><div><span style="white-space:pre">	</span>$oQP.SelectContentStream($iCS_Id)</div><div><span style="white-space:pre">	</span>$oQP.SaveState()</div><div><br></div><div><span style="white-space:pre">	</span>$oQP.SetTransparency(0) ; no transparency</div><div><br></div><div><span style="white-space:pre">	</span>Local $iIDFont = $oQP.AddTrueTypeFont('Arial {1250}', 0)</div><div><span style="white-space:pre">	</span>$oQP.SelectFont($iIDFont)</div><div><span style="white-space:pre">	</span>$oQP.SetBreakString(@CRLF)</div><div><br></div><div><span style="white-space: pre;">	</span>$oQP.SetLineWidth(1)</div><div><span style="white-space:pre">	</span>$oQP.SetTextColor(1, 0, 0)</div><div><span style="white-space:pre">	</span>$oQP.SetLineColor(1, 0, 0)</div><div><br></div><div><span style="white-space:pre">	</span>$oQP.DrawLine( _</div><div><span style="white-space:pre">			</span>$aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_X4LD&#093;, _</div><div><span style="white-space:pre">			</span>$aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_Y4LD&#093; + 10, _</div><div><span style="white-space:pre">			</span>$aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_X3RD&#093;, _</div><div><span style="white-space:pre">			</span>$aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_Y3RD&#093; + 10 _</div><div><span style="white-space:pre">			</span>)</div><div><br></div><div><span style="white-space:pre">	</span>If Not @Compiled Then _ArrayDisplay($aMaxBoundaries, '$aMaxBoundaries')</div><div><br></div><div><span style="white-space:pre">	</span>Local $iIDFont = $oQP.AddTrueTypeFont('Arial {1250}', 0)</div><div><span style="white-space:pre">	</span>$oQP.SelectFont($iIDFont)</div><div><span style="white-space:pre">	</span>$oQP.SetBreakString(@CRLF)</div><div><span style="white-space:pre">	</span>$oQP.SetTextSize(8)</div><div><span style="white-space:pre">	</span>$oQP.SetTextAlign($__eQPDF_TEXTALIGN_Justified)</div><div><br></div><div><span style="white-space:pre">	</span>Local $iPouczenieWidth = $aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_X3RD&#093; - $aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_X4LD&#093;</div><div><span style="white-space:pre">	</span>Local $iLeft = $aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_X4LD&#093;</div><div><span style="white-space:pre">	</span>Local $iTop = $aMaxBoundaries&#091;$QPDF_CSVTEXTCOL_Y4LD&#093; + 20</div><div><br></div><div><span style="white-space:pre">	</span>_QPDF_SetDefaultCoordinates($oQP)</div><div><span style="white-space:pre">	</span>$oQP.DrawWrappedText($iLeft, $iTop, $iPouczenieWidth, $sPouczenie_Text)</div><div><br></div><div><span style="white-space:pre">	</span>$oQP.SetContentStreamOptional($iOCG1)</div><div><span style="white-space:pre">	</span>$oQP.SetOptionalContentGroupVisible($iOCG1, 1)</div><div><span style="white-space:pre">	</span>$oQP.SetOptionalContentGroupPrintable($iOCG1, 1)</div><div><span style="white-space:pre">	</span>$oQP.LoadState()</div></div><div><br></div><div></pre></td></tr></table></div><div><br></div><div><br></div><div>My problem is that currently I can not delete this OCG</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div><span style="white-space:pre">	</span>$oQP.SelectContentStream(1)</div><div><span style="white-space:pre">	</span>MsgBox(0, 'Save ?', $oQP.ContentStreamSafe())</div><div><span style="white-space:pre">	</span>MsgBox(0, 'Delete Result:', $oQP.DeleteOptionalContentGroup($oQP.GetOptionalContentGroupID(1)))</div><div></pre></td></tr></table></div></div><div><br></div><div>So First MsgBox is saying 0 and second MsgBox is saying 1</div><div><br></div><div>But when I use&nbsp;</div><div><div>$oQP.SaveToFile($sPDF_FileFullPath &amp; '__Deleted_Pouczenie.pdf')</div></div><div><br></div><div>I still have this OCG visible in this PDF file.</div><div><br></div><div>Do I'm doing something wrong ?</div><div><br></div><span style="font-size:10px"><br /><br />Edited by mLipok - 16 Oct 17 at 10:18AM</span>]]>
   </description>
   <pubDate>Mon, 16 Oct 2017 07:32:47 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/deleteoptionalcontentgroup-problem-not-save_topic3515_post13989.html#13989</guid>
  </item> 
 </channel>
</rss>