使用iTextSharp从现有PDF中读取XMP [英] Read XMP from existing PDF with iTextSharp
本文介绍了使用iTextSharp从现有PDF中读取XMP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用iTextSharp从现有PDF文件中读取XMP?
How can I read XMP from an existing PDF file using iTextSharp?
推荐答案
我对itextSharp一无所知但是这个为我完成了这项工作:
I'm dangerously ignorant of itextSharp but this did the job for me:
PdfReader pdf = new PdfReader(fileName);
string metadataXml = System.Text.Encoding.Default.GetString(pdf.Metadata);
这篇关于使用iTextSharp从现有PDF中读取XMP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文