Print Page | Close Window

Problem with PDF Field

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=848
Printed Date: 15 May 24 at 7:51AM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: Problem with PDF Field
Posted By: smjohn
Subject: Problem with PDF Field
Date Posted: 29 Dec 07 at 4:12AM
I have a PDF file with 3 field. PDF file name is test.pdf
The first field name is text1
The second field name is text2
The third field name is text3
In VB source code. I set text1 value is 1 and set text2 value is 2 by use oPDF.SetFormFieldValueByTitle("text1", 1)
oPDF.SetFormFieldValueByTitle("text2", 2)
I use Acrobat Viewer OCX to view test.pdf. I see 1 and 2 set successfull in text1 field and text2 field in PDF file.
I use a javascript function in third field to total text1 and text2. But when I use oPDF.GetFormFieldValueByTitle("text3") . I receive 0 value.
Please help me how to get value when use javascript in pdf to calculation.
Thanks



Replies:
Posted By: Ingo
Date Posted: 29 Dec 07 at 6:48AM
Hi!

I think this having to do with the point of time when you're activating your script. Perhaps a bit too late or too early. If nobody can offer a more detailed answer you can look here:
http://www.adobe.com/devnet/acrobat/javascript.html

Best regards,
Ingo
 


Posted By: marian_pascalau
Date Posted: 03 Jan 08 at 7:49AM
Hi there,
maybe I understand you wrong but if you use JScript to calculate fields then you cannot use that value with QuickPDF. The reason is that QuickPDF does not support scripting and any attempt to access the value of such a field, will retrieve some old value previously stored in PDF dictionaries.
 
Your case is a special one and must be carefully analyzed. In case that this problem really bothers you, you have to contact me over support(at)quickpdf.org .
 
 



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