Print functionality is very slow for large PDF files, while “Save as PDF” is fast
Description
I am using GleamTech DocumentUltimate 7.6.0 in an ASP.NET Core application.
When opening a large PDF file and using the built-in Print functionality, the operation is extremely slow.
However, using Save as PDF for the same document is very fast.
The PDF file I am testing with has the following characteristics:
- PDF pages: around 250 pages
- PDF size: around 150 MB
Because the Save as PDF functionality performs well, the issue seems to be related specifically to the print rendering pipeline. I suspect it may be related to the PDF.js-based print mechanism, but I cannot confirm this without profiling or internal implementation details.
Environment
- DocumentUltimate version: 7.6.0
- .NET runtime: .NET 9
- Application type: ASP.NET Core
- Server OS: Windows Server 2019
- Hosting: IIS
- Document type: PDF
- PDF size: 150 MB
- Number of pages: 250
Steps to Reproduce
- Open a large PDF file using DocumentUltimate.
- Wait until the document is loaded successfully.
- Click the built-in Print button.
- Observe the time it takes before the print dialog or print preparation completes.
- Compare this behavior with the Save as PDF functionality on the same file.
Actual Behavior
The print functionality is very slow for large PDF files.
It takes significantly longer than expected to prepare or execute printing.
Expected Behavior
Printing should be reasonably fast, especially since the same document can be saved/exported as PDF very quickly.
Additional Notes
- The issue appears only with printing.
- Saving/exporting the same document as PDF is fast.
- The slowness may be related to client-side PDF.js printing/rendering, but this is only an assumption.
- Please advise if there are recommended settings, workarounds, or performance optimizations for printing large PDF files in DocumentUltimate.
Questions
- Are there any configuration options to improve print performance for large PDF files?
- Is there a recommended approach for printing large PDFs with hundreds of pages?
- Would upgrading to a newer DocumentUltimate version improve this behavior?
Print functionality is very slow for large PDF files, while “Save as PDF” is fast
Description
I am using GleamTech DocumentUltimate 7.6.0 in an ASP.NET Core application.
When opening a large PDF file and using the built-in Print functionality, the operation is extremely slow.
However, using Save as PDF for the same document is very fast.
The PDF file I am testing with has the following characteristics:
Because the Save as PDF functionality performs well, the issue seems to be related specifically to the print rendering pipeline. I suspect it may be related to the PDF.js-based print mechanism, but I cannot confirm this without profiling or internal implementation details.
Environment
Steps to Reproduce
Actual Behavior
The print functionality is very slow for large PDF files.
It takes significantly longer than expected to prepare or execute printing.
Expected Behavior
Printing should be reasonably fast, especially since the same document can be saved/exported as PDF very quickly.
Additional Notes
Questions