2011-03-31 113 views

回答

2

我猜猜将它们设置为null会将它们删除...

是的。从JavaDoc for PdfStamper

/** An optional <CODE>String</CODE> map to add or change values in 
    * the info dictionary. Entries with <CODE>null</CODE> 
    * values delete the key in the original info dictionary 
    * @param moreInfo additional entries to the info dictionary 
    * 
    */ 
public void setMoreInfo(HashMap<String, String> moreInfo) { 
    this.moreInfo = moreInfo; 
} 

你,你会得到现有moreInfo,设置要摆脱对空任何键,然后setMoreInfo()。没问题。

将其转换为C# - 我,你很好走。

相关问题