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