how to convert web page to image using itextsharp
how to convert webpage to image using itextsharp
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Susanta RoutPosted Dec 4, 2015, 11:45 PM
Ghulam AltafPosted Dec 4, 2015, 2:29 PM
I'm not sure if there's a direct way to do that using iTextSharp alone. What I know is that iTextSharp creates and manipulates PDF files, not images. The following post discusses using it to convert web pages to PDF:
http://stackoverflow.com/questions/2822843/itextsharp-html-to-pdf
The following post explains that iTextSharp does not render or convert to images, and gives other options:
http://stackoverflow.com/questions/10125117/convert-pdf-file-pages-to-images-with-itextsharp
If you combine the 2 posts, you might be able to do it in 2 steps:
1) Convert the web page to PDF.
2) Convert the PDF to images.
If you want to do the conversion in one step, use something that can directly render web pages to images such as LEADTools: