How to convert web page to image using itextsharp
how to convert webpage to image using itextsharp
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Ghulam Altaf2 reputationPosted Dec 4, 2015, 9:29 AM EST
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:
Susanta RoutRank #1,557 · 1K reputationPosted Dec 4, 2015, 6:45 PM EST