Hi,
We are using HTMLFormatProvider and PDFFormatProvider for converting HTML string to PDF file. The below issues are identified while converting PDF.
1. Text Foreground and Background color is not working in pdf.
HTML:
<p><span style="color: rgb(216, 55, 98); background-color: rgb(28, 122, 144); font-size: 30px;">Test</span></p>
We get the same issue even though we added below code.
foreach (Run run in document.EnumerateChildrenOfType<Run>()) { if (!run.Properties.HighlightColor.HasLocalValue) { run.HighlightColor = run.Shading.BackgroundColor.LocalValue; } }
Attached the PDF file
2. Strikeout is not working in PDF
Sample HTML:
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<p><span style="font-size: 24px;"><del>Delete Strike Through line in the paragraph</del></span></p>
</body>
</html>
attached the PDF file .
It would be appreciated , if you provide the solution for those issues
Regards,
Babu