<?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 : Group of form fields?</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 : Group of form fields?]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Thu, 21 May 2026 17:20:30 +0000</pubDate>
  <lastBuildDate>Sat, 31 Dec 2011 10:50: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=2083</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[Group of form fields? : Hi,here is a better solution....]]></title>
   <link>http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8879.html#8879</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1569">edvoigt</a><br /><strong>Subject:</strong> 2083<br /><strong>Posted:</strong> 31 Dec 11 at 10:50AM<br /><br />Hi,<br><br>here is a better solution. The idea to deal with parents is not so good. Now different dimensions are handled and we build a group more free, so that you may manage so much different groups as you want. You may use them for more then only moving...<br><font face="Courier New, Courier, mono"><br><font face="Verdana, Arial, Helvetica, sans-serif">A small array contains for every formfield a groupnumber of our choice. It is our own and has no <br>relation to any kind of PDF-property. That's all.</font><br><br>var<br>&nbsp; i: integer;<br>&nbsp; l, t, w, h,&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // bounds of a formfield<br>&nbsp; dx, dy: double;&nbsp;&nbsp;&nbsp; // to move the fields<br>&nbsp; groups: array &#091;1..4&#093; of integer; // for every child the groupnumber it belongs to<br>&nbsp; groupNo: integer;<br>begin<br>&nbsp; QP := TQuickPDF.Create;<br>&nbsp; QP.UnlockKey(...);<br>&nbsp; QP.SetMeasurementUnits(1); &nbsp; &nbsp;&nbsp;&nbsp; // I like mm<br>&nbsp; QP.SetOrigin(0); &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; // left, bottom<br><br>&nbsp; QP.NewFormField('Field1', 1);<br>&nbsp; QP.NewFormField('Field2', 1);<br>&nbsp; QP.NewFormField('Field3', 1);<br>&nbsp; QP.NewFormField('Button', 2);<br>&nbsp; // we define in which group a field is a member<br>&nbsp; groups&#091;1&#093; := 1;<br>&nbsp; groups&#091;2&#093; := 0;<br>&nbsp; groups&#091;3&#093; := 1;<br>&nbsp; groups&#091;4&#093; := 1;<br><br>&nbsp; QP.DrawLine(25, 0, 25, 297);&nbsp;&nbsp; // only for orientation<br>&nbsp; for i:=1 to QP.FormFieldCount<br>&nbsp; do begin<br>&nbsp;&nbsp;&nbsp; QP.SetFormFieldBorderColor(i, 0, 0, 0);<br>&nbsp;&nbsp;&nbsp; if i=3<br>&nbsp;&nbsp;&nbsp; then QP.SetFormFieldBounds(i, 25, 20+i*12,&nbsp; 60, 10)&nbsp; // a shorter field<br>&nbsp;&nbsp;&nbsp; else QP.SetFormFieldBounds(i, 25, 20+i*12, 160, 10); <br>&nbsp; end;<br><br>&nbsp; // show the membership as initial value in textfields<br>&nbsp; for i:=1 to QP.FormFieldCount<br>&nbsp; do case QP.GetFormFieldType(i) of<br>&nbsp;&nbsp;&nbsp;&nbsp; 1: QP.SetFormFieldvalue(i, Format('field%d is member of group %d',&#091;i, groups<em>&#093;));<br>&nbsp;&nbsp;&nbsp;&nbsp; 2: QP.SetFormFieldCaption(i, Format('Buttonfield%d is member of group %d',&#091;i, groups<em>&#093;));<br>&nbsp;&nbsp;&nbsp;&nbsp; end;<br><font color="#990000">&nbsp; </font><font color="#990000">QP.SaveToFile('Forms0.pdf');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // before moving</font><br>// now let's move it<br>&nbsp; dx := 10; <br>&nbsp; dy := 80;<br>&nbsp; groupNo := 1; // move for group 1<br>&nbsp; for i:=1 to QP.FormFieldCount<br>&nbsp; do begin // move all Fields with of group by dx and dy<br>&nbsp;&nbsp;&nbsp; if groups<em>=groupNo<br>&nbsp;&nbsp;&nbsp; then begin&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // this field shall be moved by dx, dy<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; l := QP.GetFormFieldBound(i, 0);&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // get old bounds<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; t := QP.GetFormFieldBound(i, 1);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; w := QP.GetFormFieldBound(i, 2);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; h := QP.GetFormFieldBound(i, 3);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; QP.SetFormFieldBounds(i, l+dx, t+dy, w, h); // set the new position<br>&nbsp;&nbsp;&nbsp; end;<br>&nbsp; end;<br><font color="#990000">&nbsp; QP.SaveToFile('Forms.pdf');&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // after moving</font><br>&nbsp; QP.Free;<br>end;</font><br><br>There is a small issue in the post. It switches all text to italic, because the use of brakets in the format-statements. <br><br><br>Enjoy and a happy new year,<br><br>Werner<br>]]>
   </description>
   <pubDate>Sat, 31 Dec 2011 10:50:14 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8879.html#8879</guid>
  </item> 
  <item>
   <title><![CDATA[Group of form fields? : Thank you for the replies. My...]]></title>
   <link>http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8877.html#8877</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1797">DataCrypt</a><br /><strong>Subject:</strong> 2083<br /><strong>Posted:</strong> 31 Dec 11 at 1:58AM<br /><br />Thank you for the replies.&nbsp; My fields are currently different sizes, but I can make them all the same size.&nbsp; If I can make the parent field and then do them as children, as suggested, this idea will work for me.&nbsp; I'll give it a try.&nbsp; I'm going to be using C# or the older VB6 for this one.<br><br>Thanks again,<br><br>DataCrypt<br>]]>
   </description>
   <pubDate>Sat, 31 Dec 2011 01:58:59 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8877.html#8877</guid>
  </item> 
  <item>
   <title><![CDATA[Group of form fields? :  Hi,I&amp;#039;m not so familar with...]]></title>
   <link>http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8874.html#8874</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1569">edvoigt</a><br /><strong>Subject:</strong> 2083<br /><strong>Posted:</strong> 29 Dec 11 at 6:37PM<br /><br /><font face="Verdana, Arial, Helvetica, sans-serif">Hi,<br><br>I'm not so familar with forms, but I see an easy solution. Build your group alone. <br><br>(with Delphi 7)</font><br><font face="Courier New, Courier, mono"><br>var<br>&nbsp; ParentFormId, i: integer;<br>&nbsp; Childs: array&#091;1..2&#093; of integer; // your group<br>begin<br>&nbsp; QP := TQuickPDF.Create;<br>&nbsp; QP.UnlockKey(...);<br>&nbsp; QP.SetMeasurementUnits(1);<br>&nbsp; ParentFormId := QP.NewFormField('Parent', 7);<br>  <br>&nbsp; Childs&#091;1&#093; := QP.NewChildFormField(ParentFormId, 'Child1', 1);<br>&nbsp; Childs&#091;2&#093; := QP.NewChildFormField(ParentFormId, 'Child2', 1);<br>  <br>&nbsp; for i:=1 to 2<br>&nbsp; do QP.SetFormFieldBounds(Childs, 25, 120+i*12, 160, 10);<br><br><font face="Verdana, Arial, Helvetica, sans-serif">The array Childs plays the role of a group. If the childfields differ in dimensions, the array childs needs as items records with this values.<br><br>But it is much easier possible, because it is enough, to change the position of the parent.<br></font><br>&nbsp; QP.SetFormFieldBounds(ParentFormId, 10, 100, 160, 22);<br><br><font face="Verdana, Arial, Helvetica, sans-serif">does what you want.<br><br>Cheers<br><br>Werner</font><br></font><em><br></em><span style="font-size:10px"><br /><br />Edited by edvoigt - 29 Dec 11 at 6:46PM</span>]]>
   </description>
   <pubDate>Thu, 29 Dec 2011 18:37:21 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8874.html#8874</guid>
  </item> 
  <item>
   <title><![CDATA[Group of form fields? : Hi!Groupwise positioning isn&amp;#039;t...]]></title>
   <link>http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8870.html#8870</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 2083<br /><strong>Posted:</strong> 28 Dec 11 at 10:44AM<br /><br />Hi!<br><br>Groupwise positioning isn't possible but<br>regarding scanned documents normally<br>all fields could be a bit outside ...<br>so you can take one factor valid for each field<br>for repositioning.<br><br>Cheers, Ingo<br>]]>
   </description>
   <pubDate>Wed, 28 Dec 2011 10:44:44 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8870.html#8870</guid>
  </item> 
  <item>
   <title><![CDATA[Group of form fields? : Hello. I&amp;#039;m need to create...]]></title>
   <link>http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8869.html#8869</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=1797">DataCrypt</a><br /><strong>Subject:</strong> 2083<br /><strong>Posted:</strong> 28 Dec 11 at 5:46AM<br /><br />Hello.&nbsp; I'm need to create some form fields on a PDF and noticed that QuickPDF Library allows me to create form fields very easily.&nbsp; The PDF that I need to place them on is a scanned document and the fields may not be exactly in the same place (x &amp; y coordinates) each time - but should be close.&nbsp; I can allow the user to adjust the field positions a little bit, but&nbsp; I would like to know if I could put these fields in some "group"?&nbsp; Then possibly "move" the group position so they all move together rather than having to move them one by one.&nbsp; Hope that makes sense.&nbsp; The fields are very close together (ie. Name, Address, Phone, etc...).&nbsp; Any help or suggestions would be appreciated.<br><br>Thank you for your time.<br><br>Best Regards,<br><br>DataCrypt<br>]]>
   </description>
   <pubDate>Wed, 28 Dec 2011 05:46:26 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/group-of-form-fields_topic2083_post8869.html#8869</guid>
  </item> 
 </channel>
</rss>