Print Page | Close Window

Reset PDF form fields programatically

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=3331
Printed Date: 03 May 24 at 6:27PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Reset PDF form fields programatically
Posted By: biju
Subject: Reset PDF form fields programatically
Date Posted: 16 May 16 at 9:35AM
Hi Memebers

Can anyone help with the code for the following,

I am using Debenu PDF Activex Library in excel to fill a PDF form.

I have the code to do this function.

But, I am not able to reset all form fields with default values before the code starts filling the form.

Is there a single command that will reset all fields of a PDF form ?.

Can you please provide me the code for this ?.

 Thanks

Biju


 

 

 




Replies:
Posted By: Guy
Date Posted: 25 Jun 16 at 2:47AM
This works for me in delphi...don't know if that helps

procedure TForm1.ResetBtnClick(Sender: TObject);
var
  i,ffc: Integer;
begin
ffc := pdf.DQPLFormFieldCount;
for i := 1 to ffc do
begin
  pdf.DQPLSetNeedAppearances(0);
  pdf.DQPLSetFormFieldValue(i,'');
end;
end;

Wink



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