Share via

Form Recognizer SDK (c#) - PDF Form Field Types

Adam 1 Reputation point
2022-10-26T16:55:07.983+00:00

Form Recognizer SDK (c#)

I have multiple PDFs, each with different form fields (Textbox, checkbox etc.)

Using the API is there a way to iterate through form fields in a PDF and return the type (textbox, checkbox etc.)

And if Is so which prebuilt-model would offer this functionality?

Thanks in advance

Azure Document Intelligence in Foundry Tools

1 answer

Sort by: Most helpful
  1. Bruno Lucas 4,436 Reputation points
    2022-10-27T08:23:21.023+00:00

    Hi @Adam-6651

    Regarding "Using the API is there a way to iterate through form fields in a PDF and return the type (textbox, checkbox etc.)"

    you could use a custom model for a better defined output.

    The challenge is you need to identify it, mark in the form and train the model. you need at least 5 different types of the same model

    254652-image.png

    it will return an array like this:

    254570-image.png

    There are 3 options for pre-built Document analysis :

    254661-image.png

    "Layout" mentions extract check boxes but the output is a bit difficult to process, the result for the checkboxes appeared seaparated from the labels, but may be a question of relating it:

    254662-image.png

    "General Documents" can let you flag checkboxes when it returns "selected" or "unselected" . Data is not as good as trained model but you don't need to create the model:

    254628-image.png

    Case that information helps, don't forget to vote or mark as Answer to help the community. Cheers!

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.