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!
![]() |
XFA-Functions |
Post Reply ![]() |
Author | |
mlange ![]() Beginner ![]() Joined: 21 Jul 09 Location: Germany Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() Posted: 21 Jul 09 at 12:28PM |
Hallo everybody,
i am new to the forum but i have made my experiences with the QuickPdf-Library for about 4 years now. I tried to use the XFA-functions like "GetXFAFormFieldName", with a Designer-made (7.1) pdf-file. But the only thing i get is a gpf (general protection fault). Has anybody made some succesful attemps using these funtions or is it still a dummy? P.S. I use the DLL-version of the Library Version 7.14. |
|
![]() |
|
Rowan ![]() Moderator Group ![]() ![]() Joined: 10 Jan 09 Status: Offline Points: 398 |
![]() ![]() ![]() ![]() ![]() |
Hi mlange,
The GetXFAFormFieldName function should have worked with a Adobe Designer 7.1 made file. Is there anywhere that you could upload this file to for us to look at? If you can't share the document with the public email me the document at rowan.hanna@quickpdflibrary.com. Cheers, - Rowan.
|
|
![]() |
|
mlange ![]() Beginner ![]() Joined: 21 Jul 09 Location: Germany Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Hi Rowan, ty for you reply.
Ok, for further investigatins here is the Code and the file: 1. Code Dim x As Long Dim fcountInt As Integer Dim fcountlong As Long ' ######################## ' Try with the DLL-Version ' ######################## Dim inst As Long inst = QuickPDFCreateLibrary() x = QuickPDFUnlockKey(inst, "my key") x = QuickPDFLoadFromFile(inst, "Designer71.pdf") fcountlong = QuickPDFGetXFAFormFieldCount(inst) ' ######################## ' Try with the AX-Version ' ######################## Dim qp As Object Set qp = CreateObject("QuickPDFAX0714.PDFLibrary") qp.UnlockKey ("my key") x = qp.LoadFromFile("Designer71.pdf") fcountInt = qp.GetXFAFormFieldCount() 2. Screens from the Errors: 2.1 AX-Version ![]() 2.2 DLL-Version ![]() 3. The file i have used (not the original, but the same effect) http://img248.imageshack.us/img248/5895/designer71.pdf 4. explanation the error pops up in the line with the red border. Sorry for the "german" screenshots, but this is whre i work :-). greetings, Marc Edited by mlange - 24 Jul 09 at 8:51AM |
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
Hi mlange
I have tried the activeX version and it works fine for me, i got 3 in fcountint.
the only change i've done is to dim fcountInt as a long
Option Explicit
Private Sub Command1_Click() Dim Qp As Object Dim X As Long Dim fcountInt As Long Set Qp = CreateObject("QuickPDFAX0714.PDFLibrary") X = Qp.UnlockKey("xxxx") X = Qp.LoadFromFile("C:\PdfVisu\PdfTest\AFX\Designer71.pdf") fcountInt = Qp.GetXFAFormFieldCount() MsgBox fcountInt End Sub |
|
![]() |
|
mlange ![]() Beginner ![]() Joined: 21 Jul 09 Location: Germany Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Ty for the reply.
I have tried the other declaration also. But no success. Btw, in the reference guide, the dll-version of 7.14 returns an integer... |
|
![]() |
|
mlange ![]() Beginner ![]() Joined: 21 Jul 09 Location: Germany Status: Offline Points: 6 |
![]() ![]() ![]() ![]() ![]() |
Another Question: There are only two fields in the pdf-file. Why does the function returns 3?
|
|
![]() |
|
DELBEKE ![]() Debenu Quick PDF Library Expert ![]() ![]() Joined: 31 Oct 05 Location: France Status: Offline Points: 151 |
![]() ![]() ![]() ![]() ![]() |
Whitghout loading a pdf file, Qp.GetXFAFormFieldCount() return 1. I think it's a bug
|
|
![]() |
|
deabrew ![]() Newbie ![]() ![]() Joined: 19 Jan 09 Status: Offline Points: 43 |
![]() ![]() ![]() ![]() ![]() |
We'll look at this further internally, thanks for pointing this out...
|
|
![]() |
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