Tôi đang phát triển một ứng dụng và tôi sử dụng thư viện iTextSharp.Đặt Siêu dữ liệu trong iTextSharp
Tôi cũng đọc iText hoạt động từ Manning để tôi có thể tham khảo.
Trong Chương 12, mã này có mã sau để thay đổi siêu dữ liệu trong 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();
Tôi có thể làm tương tự như thế nào trong C#?
Đó là. Cảm ơn bạn rất nhiều vì câu trả lời của bạn :) –