Ticket T892853
Visible to All Users

AV in TdxPDFDocumentRepository.GetInteractiveFormField

created 5 years ago

Hello

An error occurs in TdxPDFDocumentRepository.GetInteractiveFormField with only one document:

Delphi
AWidget := GetWidget(ANumber) as TdxPDFWidgetAnnotation; if AWidget.InteractiveFormField <> nil then // AV because AWidget is nil

with the following changes there are no more av' s

Delphi
function 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

Show previous comments (2)
DevExpress Support Team 5 years ago

    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

      DevExpress Support Team 5 years ago

        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.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.