How to convert html file to pdf
-
I want to convert html file to pdf file. How it will be possible using c# through coding. Actually i have xml file and xsl file too. So if there is a way through which we can create a pdf file if we provide xml and xsl file path or html file path than guide me to that. Thanx in advance Inam
-
I want to convert html file to pdf file. How it will be possible using c# through coding. Actually i have xml file and xsl file too. So if there is a way through which we can create a pdf file if we provide xml and xsl file path or html file path than guide me to that. Thanx in advance Inam
FOP allows you to use an XML file with an FO formatted XSLT and produce PDFs. This was original for Java but there is a .NET port at http://sourceforge.net/projects/fop-dotnet[^]. There's also many products that give you programmatic control to create PDFs (even some that can use templates), such as Tall PDF that advertises here on CodeProject. Just try a search for "PDF" and ".NET". You should find several.
Microsoft MVP, Visual C# My Articles