Create a new Web service project in Visual Studio and add ColdFusion WSDL as a web reference to the project. Then add a new item such a web form.

Example: Creating a PDF using .NET

Following is the sample .NET code for creating a PDF from the web site www.google.com.

Document.DocumentService objWebService = new
Document.DocumentService();
Document.Documentsection[] docsectionArray = { };
Document.Documentitem[] docitemArray = { };
string result = objWebService.generate("myuser", "mypassword", "pdf",
"", "", "", "", "yes", "", "", "", "", "","", "", "", "", "", "", "", "", "",
"", "", "", "http://www.google.com/", "", "", "", "", docsectionArray,
docitemArray);

In this code snippet:
Document is the web reference for document WSDL.
generate() is the method to generate the PDF from the HTML source.

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy