We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Docx TITLE Update Field problem when converting to Pdf

Hello.

I am evaluating the trial version of Aspose, in order to decide whether this component will work for us.
I’m trying to convert an existing docx file to a Pdf and I have observed that when converting, the { Title * MERGEFORMAT } Update Field is not being regarded.

Practically, I’m trying to write the document’s title in the document’s footer.

I’ve also seen that some pictures are not displayed in the Pdf. Does this have to do with the picture formating in the docx document?
I have attached a sample document.

Hello

Thanks for your request. Currently Aspose.Words cannot update TITLE field in the document. However, Aspose.Words can update DOCPROPERTY fields. So you can use it instead TITLE field. Here is field code:

{ DOCPROPERTY Title \* MERGEFORMAT }

You will be notified as soon as it is supported.

Also please see the following simple code:

// Open a sample document in Aspose.Words.

Document doc = new Document("C:\\Temp\\in3.docx");

DocumentBuilder builder = new DocumentBuilder(doc);

doc.BuiltInDocumentProperties.Title = "MyTitle";

builder.InsertField("DOCPROPERTY Title \\* MERGEFORMAT");

doc.UpdateFields();

doc.Save("C:\\Temp\\out.docx");

Best regards,

The issues you have found earlier (filed as WORDSNET-4680) have been fixed in this .NET update and in this Java update.