PDF template and CSS aren’t applied to single-topic exports in AEM Guides

Adobe Experience Manager (AEM) Guides may export a single topic as a PDF without the configured template or CSS when the PDF output preset and template or CSS association aren’t configured for single-topic exports. To resolve the issue, verify the PDF preset and its template and CSS associations, compare single-topic and guide-level outputs, and retest the export.

Description description

Environment

Adobe Experience Manager (AEM) Guides, all versions

Issue/Symptoms

  • Single-topic PDF exports don’t include the expected template and CSS styling.
  • The exported PDF uses default or plain formatting without the intended styles and branding.
  • Full guide or map PDF exports apply the expected formatting.
  • No error messages appear; the output is unstyled.
  • The issue can affect workflows that require formatted single-topic PDFs, such as subject matter expert (SME) reviews.

Root cause

The issue may be related to how the PDF output preset and its template or CSS association are configured for single-topic exports compared with guide-level exports.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Confirm the PDF output preset used for single-topic exports. When exporting a single topic, note whether a custom preset or the out-of-the-box Native PDF preset is selected.

  2. Test different PDF presets. Export a single topic as a PDF using both the custom preset and the out-of-the-box Native PDF preset to determine whether the issue occurs across presets.

  3. Validate the template and CSS association:

    • Ensure that the required template and CSS are correctly associated with the selected PDF preset.
    • Check that the template is accessible and isn’t restricted to guide-level or map-level exports only.
    • If possible, review the PDF preset configuration and confirm that the template and CSS mapping for single-topic exports matches the mapping for guide-level exports.
  4. Compare the outputs:

    • Generate a PDF for a single topic and a full guide using the same preset.
    • Compare the outputs to identify differences in formatting and template application.
  5. Check for common configuration issues:

    • Verify that the template and CSS files aren’t missing or misnamed in the configuration.
    • Ensure that the PDF preset isn’t configured to override or ignore custom templates for single-topic exports.
  6. After making the changes, export a single topic as a PDF and verify that the expected formatting is applied.

recommendation-more-help
experience-cloud-kcs-help-kbarticles