SelectToPdf html to pdf conversion makes the font size slightly smaller. There is a way to configure font size from settings?

Viewed 1613

SelectToPdf after conversion from html to pdf makes the font size they way smaller as it should be

I've compared it with some different html-pdf converters and they work as expected

Here are my converter settings

            {
                Options =
                {
                    EmbedFonts = true,
                    ExternalLinksEnabled = true,
                    PageBreaksEnhancedAlgorithm = true,
                    RenderingEngine = RenderingEngine.WebKit,
                    MarginTop = 40,
                }
            };

It is possible to configure that from the converter settings or that could be configured only from inside the html?

2 Answers

To increase the overall font size in PDF, you can apply the below style at top of the complete HTLM.

<div style="font-size: 1.5em;"> completeHTMLString </div>

font-size value can be changed as per need, but keep it in 'em'.

Related