Reputation: 183
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?
Upvotes: 4
Views: 3814
Reputation: 2046
I had the same issue but was due to the WebPageWidth set too large which caused the font to be smaller due to DPI.
Try setting converter.Options.WebPageWidth to 816 = letter (8.5") at 96 DPI
https://selectpdf.com/docs/P_SelectPdf_HtmlToPdfResult_WebPageSize.htm
Upvotes: 1
Reputation: 1
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'.
Upvotes: 0
Reputation: 36
Looks like you can do this with details from the following link:
https://selectpdf.com/demo/page-settings.aspx
Let me know if this helps
Upvotes: 0