<?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 : SetOptionalContentVisible</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 : SetOptionalContentVisible]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 04 Apr 2026 19:56:26 +0000</pubDate>
  <lastBuildDate>Wed, 08 May 2013 14:03:14 +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=2606</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[SetOptionalContentVisible : Hi Andrew,I have already created...]]></title>
   <link>http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10829.html#10829</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2344">ChrisMorgan</a><br /><strong>Subject:</strong> 2606<br /><strong>Posted:</strong> 08 May 13 at 2:03PM<br /><br />Hi Andrew,<div>I have already created a support case - 18739. On 1/5/2013 I sent a sample PDF and a source code for a simple Delphi 2006 console program that illustrates my problem.</div><div>I can send it again if needed.</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div>]]>
   </description>
   <pubDate>Wed, 08 May 2013 14:03:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10829.html#10829</guid>
  </item> 
  <item>
   <title><![CDATA[SetOptionalContentVisible : Chris, There has been some recent...]]></title>
   <link>http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10827.html#10827</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1483">AndrewC</a><br /><strong>Subject:</strong> 2606<br /><strong>Posted:</strong> 08 May 13 at 1:53PM<br /><br />Chris, &nbsp;<div><br></div><div>There has been some recent work done in this area of the library but these changes should be in 9.13 already. &nbsp;Can you create an official support case and send me the problem PDF file and I will see what is going on.</div><div><br></div><div><a href="http://www.debenu.com/support/c&#111;ntact/" target="_blank">http://www.debenu.com/support/contact/</a></div><div><br></div><div>Andrew.</div>]]>
   </description>
   <pubDate>Wed, 08 May 2013 13:53:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10827.html#10827</guid>
  </item> 
  <item>
   <title><![CDATA[SetOptionalContentVisible : Hi Rowan,I am afraid this makes...]]></title>
   <link>http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10817.html#10817</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2344">ChrisMorgan</a><br /><strong>Subject:</strong> 2606<br /><strong>Posted:</strong> 07 May 13 at 9:34AM<br /><br />Hi Rowan,<div><br></div><div>I am afraid this makes no difference.</div><div>I have tried various combinations of SaveToString/LoadFromString and even SaveToFile/LoadFromFile. The reloaded PDF does have the layer visibility that I set, but the image that is created by RenderPageToFile either shows all of the layers or none of the layers - a blank image.</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Tue, 07 May 2013 09:34:18 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10817.html#10817</guid>
  </item> 
  <item>
   <title><![CDATA[SetOptionalContentVisible : Hi Chris,Some changes that you...]]></title>
   <link>http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10804.html#10804</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1000">Rowan</a><br /><strong>Subject:</strong> 2606<br /><strong>Posted:</strong> 01 May 13 at 5:31AM<br /><br />Hi Chris,<div><br></div><div>Some changes that you make to a PDF won't be applied until the PDF is saved. So try adding SaveToString and then LoadFromString prior to rendering the page.</div><div><br></div><div>I hope this helps.</div><div><br></div><div>Cheers,</div><div>- Rowan.</div>]]>
   </description>
   <pubDate>Wed, 01 May 2013 05:31:24 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10804.html#10804</guid>
  </item> 
  <item>
   <title><![CDATA[SetOptionalContentVisible : An update to my previous post.If...]]></title>
   <link>http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10762.html#10762</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2344">ChrisMorgan</a><br /><strong>Subject:</strong> 2606<br /><strong>Posted:</strong> 24 Apr 13 at 3:48PM<br /><br />An update to my previous post.<div>If I add</div><div><br></div><div>pdf.SaveToFile('c:\temp.pdf');</div><div><br></div><div>after calling SetOptionalContentGroupVisible, then the temp.pdf has the specified layer correctly turned off.</div><div>It is just the RenderPageToFile function which seems to be ignoring my layer visibility preferences.</div><div><br></div><div>Any help? Thanks,</div><div><br></div><div>Chris</div>]]>
   </description>
   <pubDate>Wed, 24 Apr 2013 15:48:07 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10762.html#10762</guid>
  </item> 
  <item>
   <title><![CDATA[SetOptionalContentVisible : Hi group,I am trying to use SetOptionalContentGroupVisible...]]></title>
   <link>http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10752.html#10752</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2344">ChrisMorgan</a><br /><strong>Subject:</strong> 2606<br /><strong>Posted:</strong> 23 Apr 13 at 5:47PM<br /><br />Hi group,<div>I am trying to use SetOptionalContentGroupVisible to hide some PDF layers in an existing PDF,</div><div>and then use the RenderPageToFile option to save a page as a new image file.</div><div>The image file always comes out blank.</div><div><br></div><div>Using Debenu 9.13, Delphi 2006</div><div><br></div><div>Here is my code:</div><div><br></div><div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i := pdf.UnlockKey(&lt;REGISTRATIONKEY&gt;); // single developer licence code</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if i&lt;&gt;1 then raiseError;</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i := pdf.LoadFromFile(FPDFfilename,'');</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if i&lt;&gt;1 then raiseError;</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><span style="line-height: 1.4;"><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// get PDF layer names</font></span></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pdf.UseUnsafeContentStreams(1);</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;imax := pdf.OptionalContentGroupCount;</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;OutputDebugString(pchar(Format('PDF Layer Count: %d',&#091;imax&#093;)));</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;for i:=1 to imax do begin</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; id := pdf.GetOptionalContentGroupID(i);</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; s := pdf.GetOptionalContentGroupName(id);</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; OutputDebugString(pchar(Format('PDF Layer: %d Name: %s',&#091;id,s&#093;)));</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;end;</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// turn off anno layer?</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pdf.SetOptionalContentGroupVisible(1476395013,Ord(false));</font></div><div><font face="Courier New, Courier, mono"><br></font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;i := pdf.RenderPageToFile(FRes,FPageNum,FImageFmt,FPDFTempImage);</font></div><div><font face="Courier New, Courier, mono">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;if i&lt;&gt;1 then raiseError;</font></div><div><br></div></div><div>The image created by RenderPageToFile always comes out blank if I try to use SetOptionalContentGroupVisible to hide any of the layers in the PDF file.</div><div>Am I calling the functions in the right order?</div><div>Anything else I am doing wrong?</div><div><br></div><div>Thanks,</div><div><br></div><div>Chris</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 23 Apr 2013 17:47:30 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/setoptionalcontentvisible_topic2606_post10752.html#10752</guid>
  </item> 
 </channel>
</rss>