私はアプリケーションを開発しており、iTextSharpライブラリを使用しています。メタデータをiTextSharpで設定する
私はまた、マニングから実際にiTextを読んでいるので、私は参考文献を得ることができます。
第12章では、Javaのメタデータを変更する次のコードがあります。
PdfReader reader = new PdfReader(src);
PdfStamper stamper =
new PdfStamper(reader, new FileOutputStream(dest));
HashMap<String, String> info = reader.getInfo();
info.put("Title", "Hello World stamped");
info.put("Subject", "Hello World with changed metadata");
info.put("Keywords", "iText in Action, PdfStamper");
info.put("Creator", "Silly standalone example");
info.put("Author", "Also Bruno Lowagie");
stamper.setMoreInfo(info);
stamper.close();
どうすればC#で同じことができますか?
。あなたの答えはありがとうございます:) –