Set Meta data Author titile

HI,
How can I set the author title in the metadata of a PDF while converting from Word to PDF? Below is my code. Please help me?

@jithin.p

To set the author and title in the metadata of a PDF while converting from a Word document to PDF using Aspose.Words, you can utilize the Document class to modify the document properties before saving it as a PDF. Below is a code snippet demonstrating how to achieve this:

using Aspose.Words;

class Program
{
    static void Main()
    {
        // Load the Word document
        Document doc = new Document("input.docx");

        // Set the metadata properties
        doc.BuiltInDocumentProperties.Author = "Your Author Name";
        doc.BuiltInDocumentProperties.Title = "Your Document Title";

        // Save the document as PDF
        doc.Save("output.pdf");
    }
}

In this example, make sure to replace "Your Author Name" and "Your Document Title" with the appropriate values. This code will ensure that the author and title are included in the PDF metadata when converting from a Word document.

Thanks for the code. I already implemented this. But i need the below highlighted metadata field. Can you help me?

image.png (22.8 KB)

HI @alexey.noskov ,

I need the below highlighted metadta field to be populated in a PDF. Can you please help me?

@jithin.p I do not see this fields in PDF document viewers on my side (Acrobat, Chrome, Fire Fox, WPS Office). Probably that you are asking about is Subject field. Please try setting it using BuiltInDocumentProperties.Subject property.

HI,
Yes you can see by opening the document and go to document properties and click Additional MetaData information button.

@jithin.p Thank you for additional information. There is no analog of this property in MS Word documents built-in document properties. So, I am afraid, there is no way to set it using Aspose.Words. You can postprocess the produced PDF document using Aspose.PDF to change metadata.

Hi @alexey.noskov,

Thanks for your quick reply. I already did that by setting the value using metadata. Now it is populating.

Thanks
Jithin V P