简体   繁体   中英

Pechkin and in-used process in IIS

I use Pechkin for generating pdf in my web application, but i have a problem, when application use it to generate PDF, append to IIS application a in use process and i can not restart application, i have to recycle application pool at first and then restart it. it's not good for me and i need some solution to dispose this process after use. use Pichkin in async mode, and call it in this way.

PechkinSync.Convert(new GlobalConfig()
    .SetMargins(new Margins(0, 0, 0, 0))
    .SetCopyCollation(true)
    .SetPaperSize(PaperKind.A4)
    .SetOutputFormat(GlobalConfig.OutputFormat.Pdf), htmlcontent);

This is a bug in the Pechkin code. I'd recommend you switch to Tuespechkin . This is an active fork of Pechkin which includes many bugfixes. Unfortunately active development on Pechkin ceased over two years ago .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM