API to manipulate Publisher files in C#
Contents
[
Hide
]
Aspose.PUB for .NET lets you work with PUB files in your .NET applications. It supports manipulating .pub files with a simple and well-defined structure.
Edit MetaData of PUB Files
MetaData of a document describes a file in terms of its properties such as author, title, last author, company, language, and other similar information. This is useful information that is stored along with the document. Aspose.PUB for .NET lets you edit metadata of a PUB file using the DocSummaryInfo and SummaryInfo classes as shown in the following code sample.
string dataDir = RunExamples.GetDataDir_Data();
string pubFile = dataDir + "document.pub";
IPubParser parser = PubFactory.CreateParser(pubFile);
Document document = parser.Parse();
document.DocumentSummaryInfo.SetCategory("category");
document.DocumentSummaryInfo.SetCompany("company");
document.DocumentSummaryInfo.SetLanguage("language");
document.SummaryInfo.SetComments("comments");
document.SummaryInfo.SetKeywords("keywords");
document.SummaryInfo.SetLastAuthor("last author");
document.SummaryInfo.SetTitle("title");
document.SummaryInfo.SetSubject("subject");
To learn all the .NET code examples and data files, please go to Aspose.PUB-Documentation for C# Github project