Extract tables from pdf using anchor using Document Understanding in UiPath?

I am trying to extract tables from pdf files. I am using UiPath’s Document Understanding for this purpose. I have to create a template for this purpose and then use that template for other similar invoices. The issue I am facing is that the number of items in the table is varying. For example some pdf’s have table which contain 4 items whereas other pdf files have table which contain only 1 item . So if I create a template using the pdf which has a table containing 4 items then it works. But then the same template when used for files which have table containing 1 item then it does not properly extract the data in the table. Is there any solution for this?
there seem to be a dozen different suitable modules in the similar listings to https://marketplace.uipath.com/listings/form-data-extraction-by-using-document-understandingwigs so try them all but consider that for tables.
The solution should be able to extract tables from similar invoices containing varying number of items in the table. The format and layout of the invoice and the table is similar . The only thing varying is the number of items in each table.

Thanks for your time and help!

Hi @market_key

Welcome to Community.

Have you tried using ML Extractor in Data extraction Scope by providing the Api key and End Point.

Please try this ,find the link for endpoints below

UiPath Document Understanding

Public Endpoints

Depending on your license which is verified based on your API key, there are two types of limitations available for each ML Package: Community licensed traffic - The size of documents that can be extracted is limited to 2 pages and 4MB and there is a…

Thanks.