Web Application Development Beginner

Dear all,
      I am new to this web application development and have no
previous background. I need to develop a web application which does
the following duties.

1) Take a txt file as input from the clients.
2) Use this input and run a set of C++ programs at the server side.
3) Create a pdf file with all the outputs, which include set of
pictures, and some text matter.
4) Give it as output to the client.

Is there any template which is similar to my requirement? I am very
confused because of the high number of examples that are there in ruby
website. So, Can I get some help please.....

Thanks in Advance,
Libber.