我可以打开一个用iText创建的PDF文件,只需在Eclipse环境中运行该类吗?这是创建PDF文件并将其存储在默认文件夹中的主要代码
public static void main(String[] args) {
try {
Document document = new Document();
PdfWriter.getInstance(document, new FileOutputStream(FILE));
document.open();
aggiungiMetaDati(document);
//aggiungiPrefazione(document);
aggiungiContenuto(document);
document.close();
} catch (Exception e) {
e.printStackTrace();
}