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 protected]
https://ml01.ispgateway.de/mailman/listinfo/mbsplugins_monkeybreadsoftware.info

Reply via email to