Let me revise my question here.
So I'm trying to encapsulate this whole process...
I want to take my data and create a PDF, encrypt it, and then take that PDF and attach it to an email. I want to set it up to run in a single process, where I say click and then the script runs itself.
I know how to make the PDF with a php script, and I know I can take the PDF and manually encrypt it, and then I can run a script to grab that PDF and add it as an attachment and send it off.
How would I go about using php to send the data to some external program to encrypt, and then return automatically?
Is there some way I could do this with an API? I have no idea how to go about using APIs with php, and none of my literature has any reference to it...(I'm still a new programmer!)
I would just do it manually but I have to do this many, many times, around 400. Any suggestions would be appreciated.