This is an archived forum post. The information may be outdated. Contact us if you have any questions.

Need to get the html content from the current page

devpa wrote on 2013-07-16:
I need to grab my current page html and saved as pdf file.
My current page have session variables and query strings.
Example : /Sample.aspx?Prog =40&custID=12121&log=xyz.

your url : https://pdfcrowd.com/api/html-to-pdf-dotnet/#getting-started
gave the basic idea for using convertHtml().

So, how can I get the html content from the page?
support wrote on 2013-07-17:
Hello,

You can use convertURI() to convert an URL:
client.convertURI("http://example.com/Sample.aspx?Prog=40&custID=12121&log=xyz", outStream);