bezzad / PdfiumViewer

PDF viewer based on Google's PDFium port to .Net Core.
Apache License 2.0
130 stars 46 forks source link

Multi-threaded print #12

Closed colinmollenhour closed 1 year ago

colinmollenhour commented 1 year ago

Is it possible to somehow do the rendering to print a multi-page PDF using multiple threads - e.g. separate chunks of pages for each thread? I'm not very experienced with C# and threads but am trying to find a way to speed up printing for large jobs (e.g. 500+ pages). Somehow Adobe Acrobat is way faster than our print program which uses Pdfium.. Your thoughts would be much appreciated!

majkimester commented 1 year ago

The underlying Pdfium library is not thread safe, so it is not possible to call more rendering task parallel.

colinmollenhour commented 1 year ago

Great to know, thanks for the info @majkimester !