I am using Aspose.Words to create text documents which I then export as PDF and ePUB files. Now I am trying to set the language metadata of the ePUB file. I tried the following:
var builtInProps = document.BuiltInDocumentProperties;
builtInProps["Language"].Value = documentLanguage;
What I want is that in the *.opf file within the ePUB-File the <dc:language>en-US</dc:language>
should get set accordingly. But no matter what I set above, the language in the ePUB file is always “en-US”.
Moreover I use the following save options when saving the ePUB file:
var saveOptions = new HtmlSaveOptions(SaveFormat.Epub);
saveOptions.DocumentSplitCriteria = DocumentSplitCriteria.HeadingParagraph;
saveOptions.DocumentSplitHeadingLevel = 1;
saveOptions.EpubNavigationMapLevel = 1;
saveOptions.ExportDocumentProperties = true;
saveOptions.UpdateCreatedTimeProperty = true;
saveOptions.UpdateLastSavedTimeProperty = true;
The Update...Property
properties have the effect that the respective timestamps are being set in the epub file. But the ExportDocumentProperties
seems to have no effect at all.
What can I do?