2010-08-19 3 views
2

저는 ABCpdf를 사용하고 있으며 프로그램 적으로 문서의 제목이나 작성자를 얻을 수 없습니다. WebSupergoo의 사이트에서 좋은 예를 찾을 수없는 것 같습니다! 단순한 문제 여야합니다.ABCpdf를 사용하여 PDF의 제목, 저자 등 얻기

Doc d = new Doc(); 
d.Read(path); 
var y = d.GetInfo(d.Root, "/Title:Text"); 
var x = d.GetInfo(d.Root, "/publicfilePath:Text"); 

답변

3

OK 매우 간단합니다.

이 내가이 내가 그것을

 var a = d.GetInfo(-1, "/Info/publicfilePath"); 
     var b = d.GetInfo(-1, "/Info/Title"); 
+0

환상적인를 얻을 필요가 어떻게 정보

 int theID = doc.AddObject("<< >>"); doc.SetInfo(-1, "/Info:Ref", theID.ToString()); publicPath = base.GetPublicSavePath(FilePrefix); doc.SetInfo(theID, "/Title:Text", "here is where the title goes"); doc.SetInfo(theID, "/Author:Text", "WebSupergoo"); doc.SetInfo(theID, "/publicfilePath:Text", publicPath); doc.Save(publicPath); 

을 추가하고 방법입니다! 정확히 내가 무엇을 찾고 있었는지! – Chaitanya

관련 문제