I'm programming an application in java that stores data and images to a pdf. I'm using pdfbox. I saw that pdf box has some jar like the one for data encryption that has to be run by command lines.
Is there a way to run those jar in one of the functions of my class? I mean start the encryption processed by this jar after an event. How do i launch command lines from within my class?
For example:
if(IHaveData() && FileCreated())
*Encrypt the data*
Thanks in advance to everyone who wants to help even if the question may be stupid or something