Wednesday 15 April 2015

c# - PDFsharp blank pages issue -



c# - PDFsharp blank pages issue -

i have been using pdfsharp merge 2 pdfs in 1 document , print it. seems working fine of time, whenever under heavy load (even making 4 simultaneous post requests) of printed pages blank. known issue pdfsharp , if is, have fix?

what testing?

i trying print 3 pages in duplex part of 1 request , have been testing 4 simultaneous calls. so, altogether have 12 pages.

result

i getting half of pages blank (so 5-6 pages).

another test did – did test made 100 requests (so printed 100 * 3 = 300 pages) , pages came out fine. however, making 1 request, waiting finish , 1 time finished made requests. seems suggest pdfsharp not able print documents correctly when used in asynchronous manner. however, part of application have create asynchronous requests waiting 1 request finish not option.

ps - using latest pdfsharp version 1.32

the generated (concatenated) pdf fine, there no blank pages in it. when printed blank pages.

pdfsharp not print pdf files @ all. cannot blame pdfsharp if printing fails under heavy load.

afaik pdfsharp not thread-safe (like libraries). if manipulate several pdf files @ same time, have utilize different threads - 1 thread each pdf file.

most utilize adobe reader print pdf files. may have serialize calls adobe reader.

c# printing pdfsharp

No comments:

Post a Comment