<?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 : Render Checkbox Stream</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 : Render Checkbox Stream]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 25 May 2026 00:13:46 +0000</pubDate>
  <lastBuildDate>Wed, 12 Feb 2020 07:19:21 +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=3781</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[Render Checkbox Stream : SOLVEDthe parameterSetFormFieldCheckStyle,...]]></title>
   <link>http://www.quickpdf.org/forum/render-checkbox-stream_topic3781_post15106.html#15106</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3175">Renaud</a><br /><strong>Subject:</strong> 3781<br /><strong>Posted:</strong> 12 Feb 20 at 7:19AM<br /><br /><font color="#009900"><i><b><u>SOLVED</u></b></i></font><div><br></div><div>the parameter&nbsp;<b>SetFormFieldCheckStyle,</b> shall be the last one called.</div><div>other wise other parameters are not taken in account.</div><div><b><br></b></div><div><b><br></b></div><div><br></div><div><font color="#009900">//create the form</font></div><div><div>&nbsp; &nbsp;$ffcb_index=&nbsp; $qp-&gt;NewFormField("newcheckbox", 3);</div><div><font color="#009900">&nbsp;//asign all parameters&nbsp;</font></div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBounds($ffcb_index, 20, 60 ,30, 15);</div><div><br></div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldValue($ffcb_index, "Yes");</div><div><br></div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldPrintable($ffcb_index,1);</div><div>&nbsp; &nbsp;$qp-&gt;AddStandardFont(0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldStandardFont($ffcb_index,0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBorderColorGray($ffcb_index, 0.5);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBorderStyle($ffcb_index,2,0,0,0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBackgroundColor($ffcb_index,1.0,0.0,0.0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldAlignment($ffcb_index, 1);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldTextSize($ffcb_index, 24);</div><div><br></div><div><font color="#ff0000">// AND LAST ONE SHALL BE STYLE</font></div><div><b>&nbsp; &nbsp;$qp-&gt;SetFormFieldCheckStyle($ffcb_index, 1, 1);</b></div></div><div><br></div>]]>
   </description>
   <pubDate>Wed, 12 Feb 2020 07:19:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/render-checkbox-stream_topic3781_post15106.html#15106</guid>
  </item> 
  <item>
   <title><![CDATA[Render Checkbox Stream : Hello Everyone,First of all, thank...]]></title>
   <link>http://www.quickpdf.org/forum/render-checkbox-stream_topic3781_post15103.html#15103</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=3175">Renaud</a><br /><strong>Subject:</strong> 3781<br /><strong>Posted:</strong> 12 Feb 20 at 6:08AM<br /><br />Hello Everyone,&nbsp;<div><br></div><div>First of all, thank you for this forum, It helped me many times.</div><div><div><br></div><div>I'm using activex rev 1613 on windows 2012 R2 server.</div><div><br></div><div>I face something I cannot explain.</div><div><br></div><div>I draw some formfield into new pdf, then I render the page into a png.</div><div><br></div><div>text field, or button or signature are shown&nbsp; <b>but no checkbox</b></div><div><br></div><div>just like if the fonction&nbsp;UpdateAppearanceStream had no effect on checkbox&nbsp;</div><div><br></div><div>I followed the recommandations here :</div><div>https://www.debenu.com/kb/appearance-streams-pdf-form-fields/</div><div><br></div><div>(where it is said that&nbsp;<span style="color: rgb85, 85, 85; font-family: Verdana;">generation of appearance streams is (...) supported for (...), checkbox</span>)</div><div><br></div><div>and&nbsp; set&nbsp;SetNeedAppearances(0) then generate Appearance streams in a loop. but nothing helps.</div><div><br></div><div>&nbsp;checkboxes are not shown until I set SetNeedAppearances(1) , open the pdf with acrobat, save it and renderpagetofile</div><div><br></div><div><br></div><div>Any Idea is welcomed</div><div><br></div><div>here below a sample code :</div><div><br></div><div><div>&lt;?php</div><div><br></div><div><br></div><div><br></div><div>$qp = new COM('DebenuPDFLibrary64AX1613.PDFLibrary');</div><div><br></div><div>if ($qp-&gt;UnlockKey('xxxxxxxxxxxxxxxxxxxxxxxxxxxx') != 1){</div><div>&nbsp; &nbsp; echo ('PDF License validation failed!');</div><div>&nbsp; &nbsp; die();</div><div>}</div><div><br></div><div><br></div><div>$qp-&gt;SetOrigin(1);</div><div>$qp-&gt;SetMeasurementUnits(0);</div><div>$qp-&gt;SetNeedAppearances(0);</div><div><br></div><div><font color="#009900">//direct text to test renderoption(3,1)</font></div><div>$qp-&gt;DrawText(20,20, "pipopipo");</div><div><br></div><div><font color="#009900">//text box is ok</font></div><div>&nbsp; &nbsp; $fftx_index=&nbsp; $qp-&gt;NewFormField("newtextfield", 1);</div><div>&nbsp; &nbsp; $qp-&gt;SetFormFieldBounds($fftx_index, 20, 40 ,30, 15);</div><div>&nbsp; &nbsp; $qp-&gt;SetFormFieldValue($fftx_index, "text1");</div><div><br></div><div><font color="#009900">//checkbox is never shown using page render</font></div><div><br></div><div>&nbsp; &nbsp;$ffcb_index=&nbsp; $qp-&gt;NewFormField("newcheckbox", 3);</div><div><br></div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldPrintable($ffcb_index,1);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldCheckStyle($ffcb_index, 2, 1);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBounds($ffcb_index, 20, 60 ,30, 15);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldValue($ffcb_index, "Yes");</div><div><br></div><div><font color="#009900">&nbsp; &nbsp;// with or without this block does not change anything</font></div><div>&nbsp; &nbsp;$qp-&gt;AddStandardFont(0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldStandardFont($ffcb_index,0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBorderColorGray($ffcb_index, 0.5);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBorderStyle($ffcb_index,2,0,0,0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldBackgroundColor($ffcb_index,1.0,0.0,0.0);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldAlignment($ffcb_index, 1);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldTextSize($ffcb_index, 24);</div><div>&nbsp; &nbsp;$qp-&gt;SetFormFieldVisible($ffcb_index, 1);</div><div><font color="#009900">&nbsp; &nbsp;// end of with or without this block does not change anything&nbsp;</font></div><div><br></div><div>&nbsp; &nbsp;$retour ='';</div><div><br></div><div>&nbsp; &nbsp;for ($i = 1; $i &lt;= $qp-&gt;FormFieldCount();$i++){</div><div>&nbsp; &nbsp; &nbsp; &nbsp;if (1== $qp-&gt;UpdateAppearanceStream($i)){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;$retour .= ' ok';</div><div>&nbsp; &nbsp; &nbsp; &nbsp;}</div><div>&nbsp; &nbsp;}</div><div>&nbsp; &nbsp;print_r ($retour);</div><div><br></div><div><br></div><div>$qp-&gt;SaveToFile('./testfile.pdf');</div><div><br></div><div>$qp-&gt;SetRenderOptions(1, 1);</div><div><font color="#009900">//$qp-&gt;SetRenderOptions(3, 1);&nbsp; //does not help, checkbox&nbsp;</font></div><div>$retour = $qp-&gt;RenderPageToFile(72, 1, 5, './rendertest.PNG');</div><div>echo '&lt;img src="./rendertest.PNG"/&gt;';</div><div><br></div><div><br></div><div>?&gt;</div></div><div><br></div><div><br></div><div><br></div><div><br></div></div><span style="font-size:10px"><br /><br />Edited by Renaud - 12 Feb 20 at 6:10AM</span>]]>
   </description>
   <pubDate>Wed, 12 Feb 2020 06:08:00 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/render-checkbox-stream_topic3781_post15103.html#15103</guid>
  </item> 
 </channel>
</rss>