Render a webpage and get the image/pdf as a stream.