public Blob getContent()
Type: Blob
The content of the returned Blob is dependent on how the page is rendered. If the page is rendered as a PDF, it returns the PDF. If the page is not rendered as a PDF, it returns the HTML. To access the content of the returned HTML as a string, use the toString Blob method.
If there’s an error on the Visualforce page, an ExecutionException is thrown.