i have the following code which is working fine. I am generating pdf
file through html
content using library HTML-Randerer
. Problem is that generated pdf
file size become increases up to aprox 8MB some time.and i wanted to compress that file as i have to send this pdf
to some of the client . I have searched but did not find any solution.
Note:"Html content has no image just tag and textual data only "
Library: HTML Renderer
Question: How to compress the pdf file using HTML Renderer
is there any method ?
Code
public void GenerateHtmlToPdf(string htmlContent, string sFilePath)
{
PdfDocument pdf = PdfGenerator.GeneratePdf(htmlContent, PageSize.A4, 25);
pdf.Save(sFilePath);
}
Thanks!