PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Oct 20, 2017 10:46 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Thu Sep 21, 2017 2:29 am 
Offline

Joined: Wed Sep 20, 2017 10:58 pm
Posts: 1
Is there any way to provide a thumbnail/preview for a given PdfDocument in PdfSharp? I'm trying to figure out how to help out the "Windows Thumbnail Cache Factory" for a given file, or prevent Windows from building a thumbnail for a specific file.

I am generating PDF files using PdfSharp, but as soon as I write them out to the Desktop folder, I can see the process "dllhost.exe" with description "COM Surrogate" spin up my CPU fan and use ~1.2 GB of RAM for a few seconds. I have other scenarios with larger PDF files where "dllhost.exe" will use up all of my remaining RAM ~8GB and/or crash with the message "Your computer is low on memory".

I'm assuming this is because the PDF files I'm creating are a grid of large-resolution PNG images which takes some effort to load. To reproduce this on your machine, simply download this 1.5MB pdf document and Copy/Paste it on your desktop. Each time you paste, you should see "COM Surrogate" increase your CPU and RAM in Task Manager (for a few seconds) while windows attempts to build an icon cache for this file.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 7 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:  
Powered by phpBB® Forum Software © phpBB Group