Do you own a Debenu Quick PDF Library version 7, 8, 9, 10, 11, 12, 13 or iSEDQuickPDF license? Upgrade to Debenu Quick PDF Library 14 today!
![]() |
Remove custom format script from a formfield |
Post Reply
|
| Author | |
PDFNow
Beginner
Joined: 20 Dec 11 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Topic: Remove custom format script from a formfieldPosted: 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 |
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
PDFNow
Beginner
Joined: 20 Dec 11 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
Ingo
Moderator Group
Joined: 29 Oct 05 Status: Offline Points: 3530 |
Post Options
Thanks(0)
Quote Reply
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
|
|
![]() |
|
AndrewC
Moderator Group
Joined: 08 Dec 10 Location: Geelong, Aust Status: Offline Points: 841 |
Post Options
Thanks(0)
Quote Reply
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 Andrew |
|
![]() |
|
PDFNow
Beginner
Joined: 20 Dec 11 Status: Offline Points: 10 |
Post Options
Thanks(0)
Quote Reply
Posted: 26 Jan 12 at 8:37AM |
|
Hi Andrew,
thats it, now it works like it should. Tanks for help Wolfgang
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. About — Contact — Blog — Support — Online Store