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!

Debenu Quick PDF Library - PDF SDK Community Forum Homepage
Forum Home Forum Home > For Users of the Library > I need help - I can help
  New Posts New Posts RSS Feed - Remove custom format script from a formfield
  FAQ FAQ  Forum Search   Register Register  Login Login

Remove custom format script from a formfield

 Post Reply Post Reply
Author
Message
PDFNow View Drop Down
Beginner
Beginner
Avatar

Joined: 20 Dec 11
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote PDFNow Quote  Post ReplyReply Direct Link To This Post Topic: Remove custom format script from a formfield
    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


Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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

Back to Top
PDFNow View Drop Down
Beginner
Beginner
Avatar

Joined: 20 Dec 11
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote PDFNow Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Ingo View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 29 Oct 05
Status: Offline
Points: 3530
Post Options Post Options   Thanks (0) Thanks(0)   Quote Ingo Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
AndrewC View Drop Down
Moderator Group
Moderator Group
Avatar

Joined: 08 Dec 10
Location: Geelong, Aust
Status: Offline
Points: 841
Post Options Post Options   Thanks (0) Thanks(0)   Quote AndrewC Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
PDFNow View Drop Down
Beginner
Beginner
Avatar

Joined: 20 Dec 11
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote PDFNow Quote  Post ReplyReply Direct Link To This Post Posted: 26 Jan 12 at 8:37AM
Hi Andrew,

thats it, now it works like it should.

Tanks for help

Wolfgang
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.01
Copyright ©2001-2014 Web Wiz Ltd.

Copyright © 2017 Debenu. Debenu Quick PDF Library is a PDF SDK. All rights reserved. AboutContactBlogSupportOnline Store