Native PDF Publishing and XSLT | Community
Skip to main content
frameexpert
Level 2
December 5, 2024

Native PDF Publishing and XSLT

  • December 5, 2024
  • 4 replies
  • 1221 views

I am exploring native PDF publishing with AEM. Is there a way to modify the content using XSLT before the PDF is created? Or before the intermediate HTML is created? Thank you.

4 replies

gkalyan
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
December 6, 2024

@frameexpert AFAIK AEM does not natively support XSLT transformations directly before PDF generation.

 

punagpal
Adobe Employee
Adobe Employee
December 6, 2024

It is possible to modify content using JavaScript functionality on intermediate HTML  before PDF publishing. Native PDF doesn't have XSLT transformation.


Some examples of using JS in Native PDF:
Add Enterprise Branding to the First Page of a PDF
Use JavaScript to work with content or style


Let us know your use case to assist you better.

-Pulkit Nagpal

 

 

punagpal
Adobe Employee
Adobe Employee
December 10, 2024

@frameexpert 
Additionally, Starting from AEM Guides release 4.6 / 2410, the DITA OT preprocess step in NativePDF allows for adding or overriding XSLT-processing steps in the pre-processing pipeline using the Custom DITA OT plugin.


Ref:

https://www.dita-ot.org/3.7/topics/plugin-overridestyle


 

kautuk_sahni
Community Manager
Community Manager
January 27, 2025

@frameexpert Did you find the suggestions helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!

Kautuk Sahni
kautuk_sahni
Community Manager
Community Manager
July 2, 2025

@frameexpert Just checking in — were you able to resolve your issue?
We’d love to hear how things worked out. If the suggestions above helped, marking a response as correct can guide others with similar questions. And if you found another solution, feel free to share it — your insights could really benefit the community. Thanks again for being part of the conversation!

Kautuk Sahni
frameexpert
Level 2
July 2, 2025

@kautuk_sahni Thank you for following up. I don't have a specific use case yet, but understand the concept.