I have a pdf form that submits to a form handler and writes out a .fdf file
I need to flatten the two (.pdf, .fdf) but hosting provider doesnt allow any tools :(
I would like to pass the two files (in a secure way) to another server to flatten using pdftk and return the flattened .pdf file to be stored on the original calling server.
server 1 hosts my.pdf
my.pdf submits to server1 formhandler.php
server 1 outputs .fdf file and currently sends to a thanks page
ALL WORKS SO FAR
instead of the thanks page i want server1 to open connection(curl) on server2 pass in the fdf and the pdf have server2 flatten them and return completed pdf
server1 then saves pdf for later viewing
I know i kind of double stated the problem but i wanted to show work flow.
The mode must be secure due to the data, but i have full control of server 2 and can adjust to fit needs of needed can use any protocol to get this working. URGENT
THANKS IN ADVANCE :)