PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat May 28, 2022 12: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: Wed Jan 12, 2022 10:48 am 
Offline

Joined: Wed Jan 12, 2022 8:19 am
Posts: 2
I use Migradoc / PDFSharp for creation a invoice. On the most machines it work.
On some machines I get a out of memory exception during rendering. The same document work on a other machine.

I use a 64-bit System with 8 or 16 GB RAM. The result PDF is most < 2MB.


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 12, 2022 12:15 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 721
Location: CCAA
Could not reproduce.
https://xkcd.com/583/

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


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 12, 2022 2:15 pm 
Offline

Joined: Wed Jan 12, 2022 8:19 am
Posts: 2
Can I save the document before rendering?


Top
 Profile  
Reply with quote  
PostPosted: Wed Jan 12, 2022 3:51 pm 
Offline
PDFsharp Expert
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 721
Location: CCAA
UweGabbert wrote:
I use a 64-bit System with 8 or 16 GB RAM. The result PDF is most < 2MB.
If your code runs in a 32-bit process it cannot access more than 2 GiB of RAM. Try running in a 64-bit process to give it more RAM.
But it is still unusual to break the 2 GiB limit with just a few pages and just a few images.

Saving the MigraDoc document before rendering will probably not have a significant effect on the RAM usage. The PDF file is the result of rendering anyway.

Which version of PDFsharp/MigraDoc are you using?
viewtopic.php?f=2&t=832

_________________
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 2 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