Print Page | Close Window

Remove custom format script from a formfield

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=2111
Printed Date: 06 Mar 26 at 3:04AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Remove custom format script from a formfield
Posted By: PDFNow
Subject: Remove custom format script from a formfield
Date Posted: 24 Jan 12 at 11:55AM
Hello,

im using QuickPDF version 7.25 with ActiveX.

Is there any way to remove a custom format (java) script from a formfield?

Thank you.

Wolfgang





Replies:
Posted By: Ingo
Date Posted: 24 Jan 12 at 10:10PM
Hi Wolfgang!

1. I would read the formfield-properties out of the file.
2. Flatten the relevant form-field.
3. Create a new form-field over the old one with the old properties.

Something like this should work.
Perhaps Andrew has another idea ;-)

Cheers, Ingo



Posted By: PDFNow
Date Posted: 25 Jan 12 at 8:19AM
Hi Ingo,

thanks for the quick response.

To flatten the formfield were my first thought, but there are problems too.
When there are one or more formfields with the same name in the document I get the error "-2147418113 - The method 'GetFormFieldTitle' for the object 'IPDFLibrary' has failed".
I think thats because the reference for the fields is gone.

Wolfgang


Posted By: Ingo
Date Posted: 25 Jan 12 at 12:40PM
Hi!
 
So no chance i fear. Identical fieldnames is a problem.
First i've thought renaming the fieldnames with an additional counter
but SetFormFieldValue works only as initial value :-(
 
Cheers, Ingo


Posted By: AndrewC
Date Posted: 26 Jan 12 at 8:25AM
There can be more than one Javascript action set for a FormField.  The following function allows you to set each Javascript action.

You should be able to delete the JavaScript for the appropriate action by setting it to an empty string.

http://www.quickpdflibrary.com/help/quickpdf/FormFieldJavaScriptAction.php - http://www.quickpdflibrary.com/help/quickpdf/FormFieldJavaScriptAction.php

Andrew


Posted By: PDFNow
Date Posted: 26 Jan 12 at 8:37AM
Hi Andrew,

thats it, now it works like it should.

Tanks for help

Wolfgang



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