PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Thu Mar 28, 2024 8:43 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Thu Nov 19, 2020 2:21 pm 
Offline

Joined: Mon Sep 28, 2020 8:33 am
Posts: 5
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?


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 19, 2020 4:23 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 19, 2020 4:41 pm 
Offline

Joined: Mon Sep 28, 2020 8:33 am
Posts: 5
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


Top
 Profile  
Reply with quote  
PostPosted: Thu Nov 19, 2020 6:43 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 909
Location: CCAA
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.

_________________
Best regards
Thomas
(Freelance Software Developer with several years of MigraDoc/PDFsharp experience)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 186 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group