I have an .xdp form and .xml file with some data. Using renderPDFForm2 Operation I convert these two files into the pdf document. All this happans in a workflow/process, which is used by some external system. And after convertation a system receives the result pdf document.
So, the question: is it possible to validate pdf document in a workflow? For example, my validation script in a form contains some code for checking if a client age is above 18 y.o. So, if the input data contains client age = 17, i want to return to the system some sort of error, but not the resulting pdf.
An ideal solution which i want to find is some way to validate pdf form without dublicating validation code. Cause i have an idea how to check the age, using variables and expresions in a process. But in that case i'll have this validation both in pdf document (for example, to prevent users from printing not valid pdfs) and in a workflow.