fifsky / html-to-pdf-action

HTML to PDF for github actions
MIT License
27 stars 15 forks source link

Action unable to render html cell background colours and tick mark #6

Open sonali9696 opened 1 year ago

sonali9696 commented 1 year ago

A screenshot of sample HTML file and the converted pdf file using html-to-pdf-action is attached.

Screenshot 2023-01-09 at 11 16 34

AntmanPerformanceReport.pdf

Code used in GHA:

Code used to add tick symbol in HTML which was later converted to pdf: "<td style='text-align: center;background-color:#93C572;border-radius: 10px;font-family:Tahoma;font-size:14px;border-bottom: thin solid;border-color:#DEDEDE;border-width: 2px 10px;'>" + "&#x2713" + "</td>";

sonali9696 commented 1 year ago

I was able to display the cell background colour by enabling it in pdf options - pdfOptions: '{"format": "A4", "margin": {"top": "10mm", "left": "10mm", "right": "10mm", "bottom": "10mm"}, "landscape": true, "printBackground": true}'

But I still need help displaying the tick mark in the PDF.

PDF now looks like this - AntmanPerformanceReport 7.pdf