このページでは、PDFのカスタムドキュメントプロパティを設定する方法の便利な例を示します。
だから私はこれを行いました(そしてカスタムプロパティがファイルに設定されていることを確認しました):
Doc theDoc = new Doc();
int theID = theDoc.AddObject("<< >>");
theDoc.SetInfo(-1, "/Info:Ref", theID.ToString());
theDoc.SetInfo(theID, "/Company:Text", "ACME");
theDoc.Save(FileName);
後でプロパティを取得しようとしています。私はもう試した:
Doc theDoc = new Doc();
theDoc.Read(FileName);
int theID = theDoc.AddObject("<< >>");
theDoc.SetInfo(-1, "/Info:Ref", theID.ToString());
return theDoc.GetInfo(theID, "/Company:Text"); //returns empty string
と
//...read theDoc
int theID = theDoc.GetInfoInt(-1, "/Info");
return theDoc.GetInfo(theID, "/Company:Text"); //returns empty string
誰かが私がそのプロパティを取得する方法についての手がかりを持っていますか?