HakanL / WkHtmlToPdf-DotNet

C# .NET Core wrapper for wkhtmltopdf library that uses Webkit engine to convert HTML pages to PDF.
GNU Lesser General Public License v3.0
374 stars 67 forks source link

Fonts not working on server (works locally) even though PDF is being created #7

Closed markmcgookin closed 5 years ago

markmcgookin commented 5 years ago

I've managed to get DinkToPdf generating pdfs locally (using DI in an Azure webjob), on a windows machine, and in a cloud app.

However, I reference a font (Swis721 Th BT) in my markup that isn't installed on any of these machines, so I use @font-face to add support for it. This works great on Mac, on Windows machine, but just doesn't work on the Cloud app (although the PDF is still generated)

I have tried:

    • 'link' style sheet with font file references
    • 'link' style sheet with embedded ttf fonts