2012-02-23 62 views

回答

1

我明白了。很簡單!你可以在發電時做到這一點:

PdfDictionary info = writer.getInfo(); 
Calendar cal = Calendar.getInstance(); 
cal.set(Calendar.HOUR, 0); 
cal.set(Calendar.MINUTE, 0); 
cal.set(Calendar.SECOND, 0); 
info.put(PdfName.CREATIONDATE, new PdfDate(cal)); 
info.put(PdfName.MODDATE, new PdfDate(cal));