Hello
An error occurs in TdxPDFDocumentRepository.GetInteractiveFormField with only one document:
DelphiAWidget := GetWidget(ANumber) as TdxPDFWidgetAnnotation;
if AWidget.InteractiveFormField <> nil then // AV because AWidget is nil
with the following changes there are no more av' s
Delphifunction TdxPDFDocumentRepository.GetInteractiveFormField(AForm: TdxPDFInteractiveForm;
AParent: TdxPDFInteractiveFormField; ANumber: Integer): TdxPDFInteractiveFormField;
...
AWidget := GetWidget(ANumber) as TdxPDFWidgetAnnotation;
if AWidget <> nil then
begin
if AWidget.InteractiveFormField <> nil then
Result := AWidget.InteractiveFormField
else
Result := TdxPDFInteractiveFormField.Parse(AForm, AParent, TdxPDFWidgetAnnotationAccess(AWidget).Dictionary, ANumber)
end;
Thanks
Frank Reim
Hello Frank,
Would you please describe how to reproduce this error? A small sample project and a sample document would be much appreciated.
Thanks in advance.
Hello Paulo
I understand that you need the Pdf Document.
Unfortunately this PDF contains sensitive personal data.
My management does not allow me to pass them on.
The error occurs immediately when loading the document:
Frank Reim
Can you remove that sensitive personal data from your document and provide me with a document only containing the form's structure? I mean, the form's fields can be blank, but the form itself should be present.
Unfortunately no. We get this documents from an online application portal.
Frank Reim
Too bad. It is not reliable to "fix" issues without reproducing them.
In any case, we will incorporate your code change into our source code. I really hope this will not break anything.