Skip to content

Print functionality is very slow for large PDF files #21

@bahaAbualkibash

Description

@bahaAbualkibash

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

  1. Open a large PDF file using DocumentUltimate.
  2. Wait until the document is loaded successfully.
  3. Click the built-in Print button.
  4. Observe the time it takes before the print dialog or print preparation completes.
  5. 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

  1. Are there any configuration options to improve print performance for large PDF files?
  2. Is there a recommended approach for printing large PDFs with hundreds of pages?
  3. Would upgrading to a newer DocumentUltimate version improve this behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions