PDFsharp & MigraDoc Foundation http://forum.pdfsharp.com/ |
|
Working with several instances at a time http://forum.pdfsharp.com/viewtopic.php?f=2&t=4315 |
Page 1 of 1 |
Author: | Siccc [ Tue Jan 18, 2022 2:55 pm ] |
Post subject: | Working with several instances at a time |
I'm sure some of you start to laugh right now... ....but I have to ask this. It's obvious that I'm not a C# developer 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 |
Author: | TH-Soft [ Tue Jan 18, 2022 3:46 pm ] |
Post subject: | Re: Working with several instances at a time |
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. |
Author: | Siccc [ Tue Jan 18, 2022 5:14 pm ] |
Post subject: | Re: Working with several instances at a time |
Hey Thomas, understood, so far Thank you very much |
Author: | Siccc [ Thu Jan 20, 2022 6:43 pm ] |
Post subject: | Re: Working with several instances at a time |
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? |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |