PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Azure Function Private Fonts
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4204
Page 1 of 1

Author:  jon.farmer [ Thu Nov 19, 2020 2:21 pm ]
Post subject:  Azure Function Private Fonts

I am writing an Azure Function that is taking HTML and converting it to a PDF using HtmlRenderer.PdfSharp. The issue is that I need to use PDFSharp version 1.32.3057 to get the HtmlRenderer to work. As I can't use a FontResolver with this version of PDFSharp I am struggling how to include the font in the Azure Function.

Anybody got any ideas?

Author:  TH-Soft [ Thu Nov 19, 2020 4:23 pm ]
Post subject:  Re: Azure Function Private Fonts

jon.farmer wrote:
Anybody got any ideas?
Take the source and make it compile with 1.51:
https://github.com/ArthurHub/HTML-Renderer/pulls

There is a pull request with changes for 1.50 that can get you started.

Author:  jon.farmer [ Thu Nov 19, 2020 4:41 pm ]
Post subject:  Re: Azure Function Private Fonts

Hi

I not to experienced with using Github can you provide a bit more information on how to do what you are suggesting?

Thank You

Jon

Author:  TH-Soft [ Thu Nov 19, 2020 6:43 pm ]
Post subject:  Re: Azure Function Private Fonts

jon.farmer wrote:
I not to experienced with using Github can you provide a bit more information on how to do what you are suggesting?
Clone the repository from "nea" or "ArthurHub", get the latest PDFsharp NuGet package (stable or beta) and make things compile together.
I don't know which repository is the better starting point.
PDFsharp 1.50 does not have many breaking changes and adapting HtmlRenderer should be no real problem.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/