PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jun 26, 2022 6:08 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: Tue Jan 18, 2022 2:55 pm 
Offline

Joined: Thu Jan 13, 2022 11:05 am
Posts: 9
I'm sure some of you start to laugh right now... :-D....but I have to ask this. It's obvious that I'm not a C# developer :-D

Is there a problem using MigraDoc in several instances at a time, e.g. to create more than one pdf documents simutaneiously by different instances? Are there limitaions?

I apprechiate your help :-)


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 18, 2022 3:46 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 726
Location: CCAA
Siccc wrote:
Is there a problem using MigraDoc in several instances at a time, e.g. to create more than one pdf documents simutaneiously by different instances? Are there limitaions?
There are limitations if you have a single application and a single AppDomain and try to create multiple documents at the same time.
There shouldn't be limitations when you are using separate applications, application pools, or AppDomains.

One issue comes from font caching. This problem surely existed with earlier versions, but may have been resolved with the current versions that use IFontResolver.
The workaround was creating a dummy document using just one thread that contains all the fonts that will ever be used. This filled the cache.
Then it was possible to create multiple documents in separate threads.

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


Top
 Profile  
Reply with quote  
PostPosted: Tue Jan 18, 2022 5:14 pm 
Offline

Joined: Thu Jan 13, 2022 11:05 am
Posts: 9
Hey Thomas,
understood, so far :-D

Thank you very much


Top
 Profile  
Reply with quote  
PostPosted: Thu Jan 20, 2022 6:43 pm 
Offline

Joined: Thu Jan 13, 2022 11:05 am
Posts: 9
Another question, same topic...

I'm not in a rush while creating those mentioned several documents. It would be okay for me to create the documents on by one. Is there a "so called" busy/ready-Flag somewhere or can I assume that all processes were done when the pdf "exists". Is there an propper method to get the right point of time to continue with the next rendering?


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 16 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