PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Nov 25, 2020 1:57 am

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: 4
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: 592
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: 4
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: 592
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: No registered users and 22 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:  
cron
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group