How to save div content as PDF?
I have already use this link: http://www.aspsnippets.com/Articles/Export-HTML-DIV-contents-to-PDF-using-iTextSharp-in-ASPNet.aspx
But its throw error like this: system argumentexception font size too small 0 itextsharp


Anupam SinghRank #643 · 3.7K reputationPosted Apr 25, 2014, 5:58 AM EDT
Kimberlee Lowe30 reputationPosted May 20, 2015, 11:55 PM EDT
// Retrieve your DIV's content. string htmlDiv = ... HtmlLoadOptions htmlOptions = LoadOptions.HtmlDefault; using (Stream htmlStream = new MemoryStream(htmlOptions.Encoding.GetBytes(htmlDiv.ToString()))) DocumentModel.Load(htmlStream, htmlOptions) .Save(this.Response, "Document.pdf");