Yes, It is possible to rename the PDF document title (metadata) using Rust by working with libraries such as lopdf or pdf.
Here are the steps you can follow,
Load the PDF Document: The Document::load function reads the existing PDF into memory.
Access Metadata: The metadata of a PDF is stored in the Info dictionary of the trailer. You can retrieve and modify this dictionary.
Update Title: The Title field in the dictionary holds the document title. This example sets it to "New PDF Title".
Save Changes: Save the modified PDF back to a file using doc.save.