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.