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 AI Document Intelligence
Azure AI Document Intelligence
An Azure service that turns documents into usable data. Previously known as Azure Form Recognizer.
1,717 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruno Lucas 4,431 Reputation points MVP
    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!

    0 comments No comments

Your answer

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