views:

247

answers:

2

Hi there,

I have a html to pdf conversion tool which resides on our server that I can access using a url with querystrings. Something like myurl.com/createpdf.aspx?page=http://www.somesite.com. The tool then converts the web page and displays it as a pdf.

I would like to offer this functionality as a web service, so that our clients can access this programmatically. Ideal case would be, that our clients send in the site they would like to have converted and the web service then returns the pdf.

Would that make sense? What would be the best way to implement this?

cheers,

Terry

+2  A: 
Wim Hollebrandse
thanks for the tip. Will try something around that.
Terry Marder
A: 

You could also write an http-handler that returns the pdf with the appropriate mime type. This way you would not have all the processing overhead of an aspx page.

Manu
He wouldn't anyway. It would be a webservice (asmx).
Wim Hollebrandse
Well, when I read 'web service', I'm thinking proper web service. ;-)
Wim Hollebrandse