Hello,
I used the following code to generate Image:
//Set output page size to 6.8 by 12.7 inches
EO.Pdf.HtmlToPdf.Options.PageSize = new SizeF(floatWidth, floatHeight);
////Set margins to 0 inch on all sides
EO.Pdf.HtmlToPdf.Options.OutputArea = new RectangleF(0f, 0f, floatWidth, floatHeight);
//specify visible elements IDs:
HtmlToPdf.Options.VisibleElementIds = "container;crvotes;";
//Generates page images
HtmlToPdf.Options.GeneratePageImages = true;
//Specifies whether to automatically save images as JPEG.
HtmlToPdf.Options.SaveImageAsJpeg = true;
var result = HtmlToPdf.ConvertUrl(requestUrl, imagePdfPath);
result.PageImages.First().Save(imageJpgPath);
I get expected result with a pdf file:
http://screencast.com/t/fFJfk74nrbut my image looks horrible. Colors are inverted and letters have bad quality:
http://screencast.com/t/sEe3Gm80Am I doing something wrong? I need my image to be the same as the generated pdf file
Could you help me with that?