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!
FindFormFieldByTitle |
Post Reply |
Author | |
jwhitham
Beginner Joined: 10 Jan 06 Location: United Kingdom Status: Offline Points: 11 |
Post Options
Thanks(0)
Posted: 15 Mar 08 at 7:20PM |
Hi all,
I've just come across some odd behaviour when calling FindFormFieldByTitle() using Delphi7/qpdf 5.11. I'm at home at the mo where I still have the dcu version, so I wont be able to look at the source till I'm at work tomorrow (Sunday ).
From what I can make out this function does not return 'The index of the form field with the specified title' as stated in the documentation, but 1 for success and 0 for failure. It does however seem to select the field in question, either that or calling it changes the index of the field searched for to 1.
Follows Delphi code to test this:
Create a PDF with button1 and view it, then flatten the fields with button2 and take a look at the values for 'fieldindex'.
|
|
jwhitham
Beginner Joined: 10 Jan 06 Location: United Kingdom Status: Offline Points: 11 |
Post Options
Thanks(0)
|
Argh no, I'm an idiot! Please ignore the above. Once flattened the field is of course no longer a field. Should have gone from count down to 1.
Edited by jwhitham - 15 Mar 08 at 7:49PM |
|
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