Nageshwar Rao

Nageshwar Rao

  • NA
  • 74
  • 35.1k

How to convert html string to Pdf

Sep 8 2016 8:50 AM
Hi,
 
I need some sample examples regarding convertions of html to pdf,i tried with many examples that  one one is working for form type and another one is working with file type.Essential objects is working for both but while converting to pdf some contents in the html are missings can i know the reason. this is my code
 
//string Url = "https://v16smoke.smartappbeta.com/enterprisedesktop/DocumentItemDetails.aspx?smartItemId=530085&sessionid=b4ff4d2474b74e23b946cba377c4e6db&pageMode=view";
//HtmlToPdfOptions pdfOptions = new HtmlToPdfOptions();
//pdfOptions.AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit;
//pdfOptions.TriggerMode = HtmlToPdfTriggerMode.Auto;
//HtmlToPdf.Options.StartPageIndex = 1;
//HtmlToPdf.Options.StartPosition = 0;
//pdfOptions.AutoAdjustForDPI = false;
//pdfOptions.PageSize = PdfPageSizes.A4;
//EO.Pdf.HtmlToPdf.Options.OutputArea = new System.Drawing.RectangleF(0.5f, 0.5f, 10f, 10f);
//HtmlToPdf.Options.ZoomLevel = 1;
//HtmlToPdfResult pdf = EO.Pdf.HtmlToPdf.ConvertUrl(Url, @"C:\Pictures\Documenttype.pdf", pdfOptions);
 
can any solve my prblm,
Thanks 

Answers (4)