Print Page | Close Window

A/V error using IsAnnotFormField

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=2017
Printed Date: 08 Nov 25 at 4:41PM
Software Version: Web Wiz Forums 11.01 - http://www.webwizforums.com


Topic: A/V error using IsAnnotFormField
Posted By: rackerson
Subject: A/V error using IsAnnotFormField
Date Posted: 27 Oct 11 at 6:41PM
I just received this report from one of my developers using QuickPDF Library 8 in our Delphi 7 project:
 
"As I mentioned on the phone, QuickPDF (QPDF) identifies form fields as annotations, specifically as Widgets. There is a function called IsAnnotFormField which tells us if the "annotation" is actually a form field. When I first tried IsAnnotFormField, I got an Access Violation whenever I checked a form field. Turns out the access violation appeared because QPDF's internal field list had not been initialized."
 
My guy was trying to directly access a field that was known to exist on the form. The only way he saw to get around the error was to first call FormFieldCount which seems to initialize the internal data structure representing form fields; without this call, the list that references the form fields doesn't appear to get initialized. Shouldn't QuickPDF initialize its internal lists without the need for us to call this method? Or is there something we missed?
 
Thank you.
Rich



Replies:
Posted By: Ingo
Date Posted: 27 Oct 11 at 10:55PM
Hi Rich!

This here is a user-user-forum.
If you miss functionalities you should post it on the official support pages.
My opinion:
Yes you're right but in real life this doesn't matter 'cause you're using FormFieldCount first to check if there are formfields?

Cheers, Ingo



Posted By: rackerson
Date Posted: 27 Oct 11 at 11:20PM
Thanks for the reply. I didn't realize this wasn't the official support pages or I would have posted to them instead.
You are correct. In real life our code would check if there were form fields first before attempting to access them. Nevertheless I will contact support about a better way to initialize fields.
 


Posted By: AndrewC
Date Posted: 02 Nov 11 at 7:04AM
This has been fixed in the 8.13 beta released yesterday.

http://www.quickpdflibrary.com/blog/2011/11/quick-pdf-library-8-13-beta-1-released/ - http://www.quickpdflibrary.com/blog/2011/11/quick-pdf-library-8-13-beta-1-released/

Andrew.


Posted By: rackerson
Date Posted: 02 Nov 11 at 1:25PM
Thanks for being so responsive!
 
I will download the beta now to test.



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