Print Page | Close Window

Interactive Form Filler

Printed From: Debenu Quick PDF Library - PDF SDK Community Forum
Category: For Users of the Library
Forum Name: I need help - I can help
Forum Description: Problems and solutions while programming with the Debenu Quick PDF Library and Debenu PDF Viewer SDK
URL: http://www.quickpdf.org/forum/forum_posts.asp?TID=1246
Printed Date: 07 Jun 25 at 10:25AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Interactive Form Filler
Posted By: conner
Subject: Interactive Form Filler
Date Posted: 16 Oct 09 at 9:05AM
Hi,
I need to make a PDF viewer where you can fill in forms and save either the PDF or FDF/XML of the form data.
 
I followed an example of how to render the PDF and it renders a bitmap of the PDF including gray boxes for the form fields. Now my problem is how to make these interactive so you can enter data to the fields. You need to use a timer and a drawline function to make a textcursor yourself or what is the approach?
 
Also I've been trying to use:
for i := 1 to QP.FormFieldCount do
  if QP.GetFormFieldTitle(i) = '1_Fornamn' then // 1_Fornamn a specific field
    Left := QP.GetFormFieldBound(i, 0);
However it seems that Left is 0 for lot of the form fields, how do i get the bounding box of a form field?



Replies:
Posted By: conner
Date Posted: 16 Oct 09 at 9:46AM
Ok, found out the QP.GetFormFieldBound(i, 0) problem, it seems the formfields are placed on page0 with 0,0,0,0 position and then used again with same name on page 1 where it has values.


Posted By: dsola
Date Posted: 10 Nov 09 at 2:46PM
Hi,

maybe I'm wrong, but You have to read coordinates of each field from PDF form and create edit control on that coordinates. Bitmap is background and edit controls hides gray boxes.

D.


-------------
registered QuickPDF user



Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.01 - http://www.webwizforums.com
Copyright ©2001-2014 Web Wiz Ltd. - http://www.webwiz.co.uk