When a PDF file is created, it contains its own set of internal metadata, including a Title. This metadata is an integral part of the file itself. When you upload a PDF to the AEM DAM, AEM ingests and extracts this metadata, and it also allows you to add its own DAM metadata, such as dc:title (often called MetaTitle in AEM's properties). However, when a user accesses the PDF file directly via a URL (e.g., https://your-aem-site.com/content/dam/your-project/document.pdf), the user's browser doesn't communicate with AEM's content management system to get the dc:title from the DAM. Instead, the browser simply reads the binary file and displays the title that is embedded within that PDF. Think of it as when you share or open a direct PDF URL (e.g., /content/dam/.../file.pdf), browsers and social crawlers don’t read an HTML <title>. They use the PDF’s embedded metadata (Document Title / XMP) or simply the filename. Changing “Title/MetaTitle” in AEM does nothing to the binary unless you write it back into the PDF.
Here are the practical solutions you have:
1. Fix the Source File. The most robust and recommended solution is to fix the problem at its source.
2. The "AEM Workaround": Can use an HTML Redirect Page - Create an AEM page that serves as a landing page for the PDF. This page can be shared on social media, and you can control its <title> and og:title properties to display the correct title. On this page, either embed the PDF using an iframe or provide a link for the user to download or view the file.