PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Mon Jan 22, 2018 9:45 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: Fri Nov 17, 2017 7:56 pm 
Offline

Joined: Thu Nov 09, 2017 8:09 pm
Posts: 5
I am wondering what is the least possible time that it could take to render a 750kb PDF file? Right now it is taking me 15 seconds to download, and I want to know if that is due to the fact that it takes time to render a PDF document (and how much time), and there is no avoiding that, or if my code could be improved significantly to effect performance.
For example, if the rendering should take only 3 seconds, then it is worth my time to fix the code. If the rendering takes 12 seconds, then it is not worth it.

Thanks!


Top
 Profile  
Reply with quote  
PostPosted: Sat Nov 18, 2017 7:10 am 
Offline
User avatar

Joined: Sat Mar 14, 2015 10:15 am
Posts: 316
Location: CCAA
ezaychik wrote:
I am wondering what is the least possible time that it could take to render a 750kb PDF file?
I don''t know. Maybe 1 second? But "text only" or "mainly images" will make a difference.
With MigraDoc it takes longer than with pure PDFsharp.
MigraDoc with tables takes longer than MigraDoc without tables.
Version 1.50 is much faster than version 1.32, especially with MigraDoc tables.

Do some profiling to find how long the PDF generation takes.
Create ten PDF files, ignore the maximum time. What average time do you get?

The Debug build of PDFsharp will record the time needed for creating the PDF file in the PDF file. This timing would exclude web server overhead and may help.
The Release build produces smaller files and runs faster.

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


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2017 3:49 pm 
Offline

Joined: Thu Nov 09, 2017 8:09 pm
Posts: 5
The average is about 14 seconds. It is a document with tables, and no images, and I am using Pdf-sharp-MigraDoc-gdi v1.50.4619-beta4c. Is that the latest/best version?

I guess now is a good opportunity to ask what is the difference between just PDFSharp and PDFSharp-MigraDoc, and which package is appropriate for which circumstances?


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 20, 2017 4:47 pm 
Offline
empira Employee
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 2751
Location: Cologne, Germany
ezaychik wrote:
I guess now is a good opportunity to ask what is the difference between just PDFSharp and PDFSharp-MigraDoc, and which package is appropriate for which circumstances?
See here:
http://www.pdfsharp.net/Overview.ashx

_________________
Regards
Thomas Hoevel
PDFsharp Team


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: Bing [Bot] and 5 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