LibreOffice process is stuck when convert to pdf fails [closed]

asked 2016-12-06 21:18:03 +0100

eyal gravatar image

updated 2020-09-02 09:54:35 +0100

Alex Kemp gravatar image

Hi all,

I am using LibreOffice to convert several file types to pdf from an mvc application running on iis window server 2012 by using the next lines of code:

Process p = Process.Start(@"C:\Program Files (x86)\LibreOffice 5\program\soffice.exe", "--headless --convert-to pdf " + oldFName + " --outdir " + outdir);


But when I try to convert an illegal file format LibreOffice process is stucked and I can no longer convert other files.

Can anyone advice a solution for it?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-09-02 09:53:45.637807