PDF tab order does not match XDP traversal settings in Adobe Experience Manager

Adobe Experience Manager (AEM) PDFs may not follow the traversal order defined in an XDP template because interactive PDFs use XDP traversal settings, while flattened, tagged PDFs use the PDF tag structure to determine reading order. To resolve the issue, select the required PDF output type, configure the applicable traversal or tag structure, and validate the resulting order.

Description description

Environment

Adobe Experience Manager (AEM) (all versions)

Issue/Symptoms

  • The tab order in a PDF generated from an XDP template doesn’t match the traversal order defined in the XDP.
  • The generated PDF may be interactive and fillable or flattened, non-interactive, and tagged for accessibility.
  • In a flattened, tagged PDF, keyboard navigation doesn’t follow the XDP field order.
  • Only interactive elements, such as hyperlinks, are focusable in a flattened PDF.
  • The PDF tag structure controls the reading order after flattening.
  • No error messages appear.

Root cause

Interactive PDFs use XDP traversal settings to control field tab order. In flattened, tagged PDFs, flattening removes the interactive fields, so the XDP traversal order no longer applies. The PDF tag structure determines the reading order instead.

Resolution resolution

Follow the steps below to resolve the issue:

  1. Determine the required PDF output type:

    • If you need an interactive, keyboard-fillable PDF, do not flatten the form fields during PDF generation.
    • If you require a flattened, accessible PDF, ensure the document is tagged and validate the reading order via the PDF tag structure.
  2. For interactive PDFs:

    • Review the explicit traversal definitions in the XDP template.
    • Ensure the traversal sequence matches the intended field order.
    • Regenerate the PDF and test the tab order using keyboard navigation.
  3. For flattened, accessible PDFs:

    • Arrange the XDP object hierarchy and tagged structure in the required reading sequence.
    • The XDP field tab order will not control reading order after flattening; instead, the PDF’s tag structure determines the sequence.
    • Validate the reading order using a PDF accessibility checker.
  4. Review traversal blocks in XDP:

    • Check for traversal blocks using operation="first" and remove or reorder any definitions that do not match the intended sequence.
    • After making changes, regenerate the PDF and validate the order.
recommendation-more-help
experience-cloud-kcs-help-kbarticles