Cannot get bold text using HTML to PDF converter from Select.Pdf

I am trying to get text in bold in PDF. I am using HTML to PDF converter from Select.Pdf (C #).
http://selectpdf.com/

I have included text style () in html, but it doesn't work in the end.
I also tried adding a strong tag and b tag to the HTML. But no success.

I ask everyone to save me! Thanks

+4
source share
2 answers

First of all, I would like to say. You should always try to provide us with some kind of code.

, , BOLD ITALIC.

, , .

+2

HTML, , #, ?

, :

SelectPdf.HtmlToPdf convertor = new SelectPdf.HtmlToPdf();
convertor.Options.PdfPageSize = SelectPdf.PdfPageSize.A4;
convertor.Options.PdfPageOrientation = SelectPdf.PdfPageOrientation.Portrait;

SelectPdf.PdfDocument doc = convertor.ConvertHtmlString("<strong>bold</strong> normal");
doc.Save("/Pdfs/test.pdf");
doc.Close();

Example obtained using the above code

0

Source: https://habr.com/ru/post/1621275/


All Articles