How to convert HTML into PDF
-
Hi, I want to convert a div/table on my asp.net page into PDF using c#. I found code which converts html to PDF but it ignores the images and colors and just converts text. Then i tried to convert HTML into image, as i know there is way to add image into PDF, but could not find any way to do that. Is it possible in any way? I am using Visual Studio 2010. any kind of help is appreciated. Thanks,
Regards, Affan Ahmad Toor
-
Hi, I want to convert a div/table on my asp.net page into PDF using c#. I found code which converts html to PDF but it ignores the images and colors and just converts text. Then i tried to convert HTML into image, as i know there is way to add image into PDF, but could not find any way to do that. Is it possible in any way? I am using Visual Studio 2010. any kind of help is appreciated. Thanks,
Regards, Affan Ahmad Toor
Hi, you can make use of
ITextSharp library
. refer below article. Export ASP.Net Web Page with images to PDF using ITextsharp[^] Creating PDF documents with iTextSharp[^]Vande Matharam - Jai Hind
-
Hi, you can make use of
ITextSharp library
. refer below article. Export ASP.Net Web Page with images to PDF using ITextsharp[^] Creating PDF documents with iTextSharp[^]Vande Matharam - Jai Hind
thanks for the reply. i will try both links and see what happens.
Regards, Affan Ahmad Toor