Xojo Conferences
XDCMay2019MiamiUSA

[MBS] DynaPDF GetFieldEx error (MBS Xojo Plugin Mailinglist archive)

Back to the thread list
Next thread: [MBS] IERunJavaScriptMBS-question


Re: [MBS] FolderChangedNotificationMBS   -   Garth Hjelte
  [MBS] DynaPDF GetFieldEx error   -   Jean-Luc Arnaud
   Re: [MBS] DynaPDF GetFieldEx error   -   Christian Schmitz
    Re: [MBS] DynaPDF GetFieldEx error   -   Jean-Luc Arnaud
   Re: [MBS] DynaPDF GetFieldEx error   -   Christian Schmitz
   Re: [MBS] DynaPDF GetFieldEx error   -   Christian Schmitz

[MBS] DynaPDF GetFieldEx error
Date: 30.04.14 10:47 (Wed, 30 Apr 2014 11:47:08 +0200)
From: Jean-Luc Arnaud
Playing with DynaPdf plugin and testing GetFieldEx function, I get an
error message saying:

GetFieldEx: Structur size must be set to sizeof(StructureName)!

My code is based on the example of the DynaPDF doc, page 248 (3.21.287),
that is:

dim pdf as new MyDynapdfMBS
pdf.SetLicenseKey "Lite" // For this example you can use a Lite, Pro or
Enterprise License

call pdf.CreateNewPDF(nil)
call pdf.SetImportFlags(BitwiseOr(pdf.kifImportAll, pdf.kifImportAsPage))

dim filePath as FolderItem=SpecialFolder.Desktop.Child("acroform.pdf")
if (pdf.OpenImportFile(filePath, pdf.kptOpen, "") <0) then
MsgBox "Input file """+filePath.name+""" not found!"
quit

end if

// import all pages

dim r as integer = pdf.ImportPDFFile( 1, 1.0, 1.0)

// now check all fields

dim n as integer = pdf.GetFieldCount
for i as integer = 0 to n-1
dim f as DynaPDFFieldExMBS = pdf.GetFieldEx(i)

break // inspect in debugger next

TIA for any help

Jean-Luc
_______________________________________________
Mbsplugins_monkeybreadsoftware.info mailing list
<email address removed>
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Re: [MBS] DynaPDF GetFieldEx error
Date: 30.04.14 17:44 (Wed, 30 Apr 2014 18:44:07 +0200)
From: Christian Schmitz

Am 30.04.2014 um 11:47 schrieb Jean-Luc Arnaud <<email address removed>>:

> Playing with DynaPdf plugin and testing GetFieldEx function, I get an
> error message saying:

Fixed here. I sent a new plugin to you.

Sincerely
Christian

Re: [MBS] DynaPDF GetFieldEx error
Date: 05.05.14 08:59 (Mon, 05 May 2014 09:59:08 +0200)
From: Jean-Luc Arnaud
Well received.

Thanks a lot, Christian.

Jean-Luc

Le 30/04/2014 18:44, Christian Schmitz a écrit :
> Am 30.04.2014 um 11:47 schrieb Jean-Luc Arnaud <<email address removed>>:
>
>> Playing with DynaPdf plugin and testing GetFieldEx function, I get an
>> error message saying:
> Fixed here. I sent a new plugin to you.
>
> Sincerely
> Christian
>

Re: [MBS] DynaPDF GetFieldEx error
Date: 30.04.14 14:34 (Wed, 30 Apr 2014 15:34:19 +0200)
From: Christian Schmitz

Am 30.04.2014 um 11:47 schrieb Jean-Luc Arnaud <<email address removed>>:

> Playing with DynaPdf plugin and testing GetFieldEx function, I get an
> error message saying:
>
> GetFieldEx: Structur size must be set to sizeof(StructureName)!
>

Sorry, it's broken in DynaPDF itself. The structure was recently expanded and a helper function was not updated.
Please use older plugin version or wait for the fix.

Sincerely
Christian

Re: [MBS] DynaPDF GetFieldEx error
Date: 30.04.14 11:51 (Wed, 30 Apr 2014 12:51:31 +0200)
From: Christian Schmitz

Am 30.04.2014 um 11:47 schrieb Jean-Luc Arnaud <<email address removed>>:

> Playing with DynaPdf plugin and testing GetFieldEx function, I get an
> error message saying:
>
> GetFieldEx: Structur size must be set to sizeof(StructureName)!
>

This should never happen. I'll have to check.

Sincerely
Christian