I need to extract few fields as metadata from pdf.,I'm able to extract metadata from pdf successfully even for different templates.
Scenario : I need to do validation for fields, for example if Invoice date is not present in anyone of the templates that pdf must be saved in another folder.I can able to do this for single template pdf But I want to do this for multiple templates.
Here I have added two collections for two different pdf template

I have selected that model using Predict

Here I want to do field validation for both the templates, but one field, for example date is present in one template and invoice no is present in another.

Can anyone suggest how to add field validation condition for many templates?