add recover fix
authorAlan Knowles <alan@roojs.com>
Fri, 21 May 2021 07:42:40 +0000 (15:42 +0800)
committerAlan Knowles <alan@roojs.com>
Fri, 21 May 2021 07:42:40 +0000 (15:42 +0800)
File/Convert/Solution/anydwgtopdf.php

index eed48b2..069683b 100644 (file)
@@ -86,9 +86,9 @@ class File_Convert_Solution_anydwgtopdf extends File_Convert_Solution
         touch($lock);
         
         
-        
+        // /Recover = seems to handle hang situations
         $cmd = "{$timeout} 60s {$xvfb} --auto {$wine} \"/var/www/.wine/drive_c/Program Files (x86)/Any DWG to PDF Converter Pro/dp.exe\" /InFile C:\\\\{$fromb} /OutFile C:\\\\{$tob}" .
-            "/OutMode AlltoOne /Overwrite /OutLayout Paper /OutArea ZoomExtends";
+            "/OutMode AlltoOne /Overwrite /OutLayout Paper /Recover /OutArea ZoomExtends";
             
             
         $this->exec($cmd);