PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

How long should rendering a PDF take?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=3692
Page 1 of 1

Author:  ezaychik [ Fri Nov 17, 2017 7:56 pm ]
Post subject:  How long should rendering a PDF take?

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!

Author:  TH-Soft [ Sat Nov 18, 2017 7:10 am ]
Post subject:  Re: How long should rendering a PDF take?

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.

Author:  ezaychik [ Mon Nov 20, 2017 3:49 pm ]
Post subject:  Re: How long should rendering a PDF take?

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?

Author:  Thomas Hoevel [ Mon Nov 20, 2017 4:47 pm ]
Post subject:  Re: How long should rendering a PDF take?

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/