public static final Process printDocument ( File file , boolean waitForTermination ) throws IOException { return printDocument ( file . getAbsolutePath ( ) , waitForTermination ) ; }
Prints a PDF document .