Expand my Community achievements bar.

Add Custom metadata to PDF Asset | Metadata from AEM to PDF

Avatar

Level 6

Hi,

When we upload a PDF into AEM, a few properties are available in the pdf properties like "dc:creator", "dc:title", "dc:subject"  and same in CRX DE as well.

How cann we add the custom metadata properties from jcr metadata to PDF properties.

akhilraj_2-1765184750505.png

 

Below is the PDF properties 

akhilraj_0-1765184539571.png

We have to segment these PDF based on campus.  So while adding metadata we are adding Campus information also to the Assets. So the Saved campus details, how can we pass to PDF properties(Default properties given in the screenhot).

akhilraj_1-1765184712727.png

 

 

 

2 Replies

Avatar

Community Advisor

Hi @akhilraj 

 

You need to enable metdata writeback to get this working. Please refer this documentation for details - https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/xmp...

https://github.com/AdobeDocs/experience-manager-65.en/blob/main/help/assets/xmp-writeback.md

 

Hope this helps!

 

Thanks

Narendra

 

Avatar

Employee

Hello @akhilraj 

To push your Campus metadata into a PDF’s properties and use it for segmentation:

1. Create a proper DAM metadata field for Campus

In Tools → Assets → Metadata Schemas, add a field to the PDF schema and map it to a JCR metadata property, for example:
./jcr:content/metadata/dc:subject (reuses Dublin Core “Subject”)
or
./jcr:content/metadata/campus:campus (custom namespace)
This makes Campus a first-class AEM metadata property you can search/filter on.

2. Enable XMP writeback so it is embedded in the PDF

Use/enable the DAM Metadata Writeback workflow or launcher so metadata under ./jcr:content/metadata is written into the PDF’s XMP :
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/assets/admin/xmp...

3. Use AEM metadata for segmentation, not the PDF UI
- Segment PDFs by Campus using AEM search facets, filters, or reports against that JCR property.
- The fact that Campus is also in the PDF binary is mainly for external systems; AEM’s segmentation should rely on the repository metadata.

So :
AEM metadata field => JCR under metadata => XMP writeback => AEM-based segmentation.