Is it possible to update the word document title field before saving it to PDF?
Thanks for your inquiry. If you want to update the title property of the built-in document properties, please use BuiltInDocumentProperties.Title property.
Please use FieldTitle.Text property to get or set the text of the title Field. This property retrieves, and optionally sets, the document’s title, as recorded in the Title property of the built-in document properties.
Please check the following code example. Hope this helps you. If you still face problem, please share some more detail about your query along with sample input and output documents. We will then provide you more information on this along with code.
Document doc = new Document(MyDir + @"in.docx"); // update the TITLE field FieldTitle title = (FieldTitle) doc.Range.Fields; title.Text = "Aspose.Words"; // update title property of the built-in document properties. doc.BuiltInDocumentProperties.Title = "Aspose.Words";