Hello,
We are using EO.PDF 2012.0.23 to generate PDFs from ASP.NET pages we have developed. Unfortunately we are experiencing an issue where the converter is not honoring some CSS. We cannot reproduce the problem in the latest version of IE, Firefox or Chrome so it seems to be a problem with the converter.
The converter code is executed as follows:
Code: C#
var options = new HtmlToPdfOptions
{
UserName = /* set from config */,
Password = /* set from config */,
AutoFitX = HtmlToPdfAutoFitMode.ScaleToFit
};
options.PageSize = new SizeF(PdfPageSizes.A4.Height, PdfPageSizes.A4.Width);
HtmlToPdf.ConvertUrl(url, stream, options);
The particular CSS that is not working uses a background image and colour. The background image is being correctly set. This image has a transparent background through which we are expecting to see the background colour. However we cannot see the background colour.
This is the CSS that does not work:
Code: CSS
.wbrt-programdata-lifecycle-osr-print-changed-question {background: #FFD800 url(response-changed.png) repeat;}
.wbrt-programdata-lifecycle-osr-print-changed-textbox {background: #FFD800 url(response-changed.png) repeat !important;}
However this CSS does work:
Code: CSS
.wbrt-programdata-lifecycle-osr-print-changed-checkbox {background: #FFD800 url(response-changed.png) repeat;display: inline-block;}
.wbrt-programdata-lifecycle-osr-print-changed-checkbox input[type="radio"] {margin-left: 3px;margin-right: 3px;margin-top: 4px;margin-bottom: 3px;}
The HTML between the two are different however - the major difference is that the former section that does not work is used inside fieldset tags.
There is a lot of HTML, CSS and images, with some business-sensitive text but if helpful I can e-mail this securely somewhere, along with our license details.
Thanks for any help!
Alex.