<?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 : Problem with setting formfieldfont</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 : Problem with setting formfieldfont]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Sat, 09 May 2026 04:35:18 +0000</pubDate>
  <lastBuildDate>Wed, 23 Mar 2016 12:51:48 +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=3289</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[Problem with setting formfieldfont : Hi Josef,i&amp;#039;ve read inside...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setting-formfieldfont_topic3289_post13089.html#13089</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=111">Ingo</a><br /><strong>Subject:</strong> 3289<br /><strong>Posted:</strong> 23 Mar 16 at 12:51PM<br /><br />Hi Josef,<div><br></div><div>i've read inside the online reference and there i've found this:</div><div>http://www.debenu.com/docs/pdf_library_reference/AddFormFont.php</div><div>This should mean that first there's your AddTrueTypeFont... at last there's your SetFormFieldFont ... but in the middle there should be the still missing AddFormFont ;-)</div><div>Try it ... hope it helps.</div><div><br></div><div>Cheers and welcome here,</div><div>Ingo</div><div><br></div>]]>
   </description>
   <pubDate>Wed, 23 Mar 2016 12:51:48 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setting-formfieldfont_topic3289_post13089.html#13089</guid>
  </item> 
  <item>
   <title><![CDATA[Problem with setting formfieldfont : Hi,we have a problem find the...]]></title>
   <link>http://www.quickpdf.org/forum/problem-with-setting-formfieldfont_topic3289_post13088.html#13088</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.quickpdf.org/forum/member_profile.asp?PF=2850">Josef Gschwendtner</a><br /><strong>Subject:</strong> 3289<br /><strong>Posted:</strong> 23 Mar 16 at 10:15AM<br /><br />Hi,<br>we have a problem find the right way to set the font of a formfield.<br>Below the code we did try:<br><br>&nbsp; PDF := TDebenuPDFLibrary.Create;<br>&nbsp; UnlockResult := PDF.UnlockKey(cDebenuLicenseKey);<br>&nbsp; try<br>&nbsp;&nbsp;&nbsp; if (UnlockResult = 1) then begin<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Load Template<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.LoadFromFile(ATemplate, '');<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Set the paper size<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetPageSize('A4');<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Set the origin to the top-left corner<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetOrigin(1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Set the measurement units to millimetres<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetMeasurementUnits(1);<br><br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FontID := PDF.AddTrueTypeFont('Arial', 0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FieldIndex := APDF.NewFormField('LvBez', 1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetFormFieldBounds(FieldIndex, ALeft, ATop, AWidth, AHeight);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetFormFieldPage(FieldIndex, APageNumber);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetFormFieldFont(FieldIndex, FontID);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FontID := PDF.AddTrueTypeFont('Courier New', 0);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; FieldIndex := APDF.NewFormField('LvNr', 1);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetFormFieldBounds(FieldIndex, ALeft, ATop, AWidth, AHeight);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetFormFieldPage(FieldIndex, APageNumber);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SetFormFieldFont(FieldIndex, FontID);<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Compress the contents of the file<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.CompressContent;<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Save File<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; PDF.SaveToFile(AFileName);&nbsp; <br>&nbsp;&nbsp;&nbsp; end;<br><br>&nbsp; finally<br>&nbsp;&nbsp;&nbsp; PDF.Free;<br>&nbsp; end;<br><br>The second field should have font "Courier New" but it doesn't.<br><br>Could anybody help us to understand better how to do this.<br><br>Regards,<br>Josef<br>]]>
   </description>
   <pubDate>Wed, 23 Mar 2016 10:15:37 +0000</pubDate>
   <guid isPermaLink="true">http://www.quickpdf.org/forum/problem-with-setting-formfieldfont_topic3289_post13088.html#13088</guid>
  </item> 
 </channel>
</rss>