View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
20885Bug reportsAccessibilitypublic2026-11-23 13:43
ReporterDenisChenu Assigned To 
PrioritynoneSeverityminor 
Status newResolutionopen 
Product Version7.11.x 
Summary20885: Publicly generated PDF documents are not accessible (missing PDF tags)
Description

PDF documents generated by LimeSurvey for public users are not properly tagged and are therefore not accessible to screen readers.

Steps To Reproduce

Steps to reproduce

  1. Open a public LimeSurvey survey. : teste done with ls7_Samplesurvey_en_de.lss and develop-minor with https://github.com/LimeSurvey/LimeSurvey/pull/5402
  2. Complete the survey, providing answers to different question types.
  3. Use the Print your answers or PDF generation feature available to the respondent.
  4. Open the generated PDF with a PDF accessibility checker (e.g. PAC).
  5. Check the document structure and PDF tags.

Expected result

PDF documents generated for public users should be properly tagged and structured for accessibility.

In particular:

  • A valid PDF structure tree should be present.
  • Headings and paragraphs should have appropriate semantic tags.
  • Lists and tables should be correctly tagged.
  • The logical reading order should be preserved.
  • Images containing meaningful information should have alternative text.
  • The document language should be correctly defined.
  • Decorative elements should be marked as artifacts.

Ideally, generated documents should comply with PDF/UA (ISO 14289) requirements.

Actual result

Generated PDF documents are not tagged.

They do not contain the required semantic structure, making it difficult or impossible for screen readers to correctly interpret the document.

Accessibility checkers report that the PDF document is not tagged.

TagsNo tags attached.
Attached Files
ls7-sample-survey-424885.pdf (1,154,988 bytes)
Bug heat2
Complete LimeSurvey version number (& build)7.11.0
I will donate to the project if issue is resolvedNo
Browsernot relevant
Database type & versionnot relevant
Server OS (if known)not relevant
Webserver software & version (if known)not relevant
PHP Versionnot relevant
Git branch / Pull Request URLN/A

Relationships

related to 14353 ready for code review Print answers as PDF has large gaps in output 

Users monitoring this issue

There are no users monitoring this issue.

Activities

DenisChenu

DenisChenu

2026-11-23 13:43

developer   ~87878

LimeSurvey currently uses the legacy TCPDF library for PDF generation.

There are two possible approaches worth investigating:

1. Upgrade to the new TCPDF architecture (preferred approach)

The new TCPDF generation, based on tc-lib-pdf (TCPDF 7), provides native support for PDF/UA-1 and PDF/UA-2.

It already supports automatic PDF tagging from semantic HTML, including:

  • Headings (H1 to H6).
  • Paragraphs.
  • Lists (L, LI, Lbl, LBody).
  • Tables (Table, TR, TH, TD).
  • Links.
  • Images (Figure and alternative text).
  • Document language and language changes.
  • Decorative elements marked as artifacts.
  • Appropriate structure metadata and reading order support.

The HTML renderer also supports semantic table elements such as thead, tbody, tfoot, th and td.

This could make it possible to generate accessible PDFs while retaining an HTML-based template approach.

The main challenge would be migrating from the legacy TCPDF implementation and checking compatibility with LimeSurvey's existing PDF generation code and templates.

References:

2. Use mPDF as an alternative PDF generation engine

Another possibility would be to use mPDF, which generates PDFs from HTML and CSS.

Accessibility impact

This issue affects users relying on assistive technologies, particularly screen reader users.

It also impacts compliance with accessibility requirements such as RGAA 13.3.

References

Issue History

Date Modified Username Field Change
2026-11-23 13:35 DenisChenu New Issue
2026-11-23 13:35 DenisChenu File Added: ls7_Samplesurvey_en_de.lss
2026-11-23 13:35 DenisChenu File Added: ls7-sample-survey-424885.pdf
2026-11-23 13:43 DenisChenu Note Added: 87878
2026-11-23 13:43 DenisChenu Bug heat 0 => 2
2026-11-23 13:43 DenisChenu Relationship added related to 14353