Quantcast
Channel: Adobe Community : Popular Discussions - Printing & Prepress
Viewing all articles
Browse latest Browse all 6566

Exit Code 1 when command line printing

$
0
0

Hi All,

 

  I write a program to issue following command line to print a PDF file.

     

     "C:\Program Files\Adobe\Acrobat 11.0\Acrobat\AcroRd32.exe" /t /n "My_file.pdf" <printer name>

 

  and use following statement to capture exception case.

 

       int exitVal = lAdobeProcess.waitFor();

        wdt.stop(); // stop the interrupt thread

        if ( exitVal != 0 ) {

          throw new Exception("[printPDF] Adobe Reader process exitVal : " + exitVal);

        }

 

  Sometimes, acrobat returns 1 as exit value but printing is successfully (most of times, it returns 0).

 

  Do anyone know why ?

 

  Is there any document for exit code value ?

 

  Many thanks.

 

 

Catatbochk


Viewing all articles
Browse latest Browse all 6566

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>