Hi @Ionut Dutescu,
Thank you for reaching out to Microsoft Q&A forum!
To maintain the original document structure while extracting text from PDF images, you can use the "Draw region" option in the Custom model. This option allows you to draw regions around the text you want to extract, preserving the original layout and structure of the document.
To use this option, you need to train your Custom model using the Document Intelligence service. During the training process, you can select the "Draw region" option and draw regions around the text you want to extract. Once the model is trained, you can use it to extract text from PDF images while preserving the original document structure.
It's worth noting that the accuracy of the extracted text will depend on the quality of the PDF images and the accuracy of the regions you draw. You may need to experiment with different region sizes and positions to get the best results.
I hope you understand! Thank you.