it seems that the CSS Pseudoclass element:nth-child() doesn't seem to work. For example tr:nth-child(even)
The CSS formating is just skipped - normal styling to tr is applied without problems.
Im using the latest versions (beta), both for HTMLRenderer and PDFSharp.
Im generating the HTML String (which validates correct) and my CSS also works directly in browsers.
Im doing the following:
TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerateConfig config = new TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerateConfig(); config.PageOrientation = PdfSharp.PageOrientation.Landscape; config.PageSize = PdfSharp.PageSize.A4; PdfSharp.Pdf.PdfDocument pdf = TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator.GeneratePdf(htmlstring, config); pdf.Save(pathtopdf);
Hi,
it seems that the CSS Pseudoclass element:nth-child() doesn't seem to work. For example tr:nth-child(even) The CSS formating is just skipped - normal styling to tr is applied without problems.
Im using the latest versions (beta), both for HTMLRenderer and PDFSharp. Im generating the HTML String (which validates correct) and my CSS also works directly in browsers.
Im doing the following:
TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerateConfig config = new TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerateConfig(); config.PageOrientation = PdfSharp.PageOrientation.Landscape; config.PageSize = PdfSharp.PageSize.A4; PdfSharp.Pdf.PdfDocument pdf = TheArtOfDev.HtmlRenderer.PdfSharp.PdfGenerator.GeneratePdf(htmlstring, config); pdf.Save(pathtopdf);