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=3332
Printed Date: 29 Apr 24 at 7:44PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Reset PDF form fields programatically
Posted By: Ingo
Subject: Reset PDF form fields programatically
Date Posted: 16 May 16 at 6:47PM
Hi Biju,

sorry but there's no single command for this.
As far as i know there's no similar command in acrobat itself.
You have to use GetFormFieldCount and within a loop you have to check the formfieldtype.
If it's a textfield put a space or '' in it, if it's a numeric field put a 0 inside and so on.

Cheers and welcome here,
Ingo



-------------
Cheers,
Ingo




Replies:
Posted By: biju
Date Posted: 17 May 16 at 1:39AM
Hi Ingo,
Thanks for the reply.
I understand that each fields need to be clear by its value.

Can you provide me the code that click a command or push button programatically ?.

I have buttom in the same form that will reset form to its default value if pressed manually.

So, if the code can press this button automatically, it will solve my issue.

Thank you in advance for your reply.
biju







Posted By: Ingo
Date Posted: 17 May 16 at 7:43PM
Hi,

QuickPDF allows javascript code putting behind button actions.
I'm not a javascript-freak - Dr. Google will answer you with code samples.
How to put it then into Quickpdf you'll find on the official support pages.
Here what's supported by QuickPDF:
http://www.debenu.com/docs/pdf_library_reference/JavaScript.php
Now you have to search for a matching javascript code ... Sorry ;-)




-------------
Cheers,
Ingo




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