2011-10-21 120 views

回答

1

我试过了,并且在将文件保存在磁盘中后,此功能正常工作。

import com.lowagie.tools.Executable; 

try{ 
Executable ex = new Executable(); 
ex.openDocument(fileName); 
ex.printDocument(fileName); 
}catch(IOException e){ 
    e.printStackTrace(); 
} 

欲了解更多信息,请参阅此Daniweb forum conversation