Bug 140289 - PDF/UA export has no/incorrect tab order
Summary: PDF/UA export has no/incorrect tab order
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Printing and PDF export (show other bugs)
Version:
(earliest affected)
7.1.0.3 release
Hardware: All All
: medium normal
Assignee: Michael Stahl (allotropia)
URL:
Whiteboard: target:24.8.1 target:24.2.6
Keywords: accessibility
Depends on:
Blocks: PDF-Accessibility
  Show dependency treegraph
 
Reported: 2021-02-09 09:36 UTC by Dustin Matzel
Modified: 2024-08-22 04:50 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
Example odt file (20.95 KB, application/vnd.oasis.opendocument.text)
2021-02-09 09:36 UTC, Dustin Matzel
Details
PDF file which was created from lo (104.02 KB, application/pdf)
2021-02-09 09:37 UTC, Dustin Matzel
Details
error message from adobe acrobat (78.61 KB, image/png)
2021-02-09 09:38 UTC, Dustin Matzel
Details
Fixed pdf by adobe acrobat (64.73 KB, application/pdf)
2021-02-09 09:38 UTC, Dustin Matzel
Details
For reference the example file exported as PDF/UA from nightly (67.87 KB, application/pdf)
2024-08-05 11:45 UTC, Gabor Kelemen (allotropia)
Details
The Page Properties dialog in Acrobat Pro (18.18 KB, image/jpeg)
2024-08-05 12:02 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Matzel 2021-02-09 09:36:51 UTC
Created attachment 169605 [details]
Example odt file

Description:
When a document is exported as a pdf, the tab order seems to be set incorrectly or not set at all. When a pdf is tested for accessibility using Adobe Acrobat Pro DC, it always shows that the "Tab order" test failed for every page.
Adobe Acrobat can fix this issue with the following statement:
Tab order set to match structure order in all pages successfully.

Espacially with the new PDF/UA export, exported documents should not fail the accessibility tests.

Tested:
Tested on 7.1.0 and dialy master build, which includes the fix for bug #139643.

Steps to reproduce:
1. Open new Writer document and add a title in the preferences.
2. Add 10,000 words lorem ipsum
2. "Export as PDF..." with "Universal Accessibillity (PDF/UA)" enabled.
3. Accessibility check with Adobe Acrobat Pro DC: Tab order - failed

Reproducible: Always, all OSs

Attachments:
- Example odt
- Example pdf created from lo
- Screenshot of the issue in Adobe Acrobat Pro DC
- Example pdf where the tab order was corrected by Adobe Acrobat Pro DC
Comment 1 Dustin Matzel 2021-02-09 09:37:33 UTC
Created attachment 169606 [details]
PDF file which was created from lo
Comment 2 Dustin Matzel 2021-02-09 09:38:07 UTC
Created attachment 169607 [details]
error message from adobe acrobat
Comment 3 Dustin Matzel 2021-02-09 09:38:38 UTC
Created attachment 169608 [details]
Fixed pdf by adobe acrobat
Comment 4 Buovjaga 2022-02-16 15:02:06 UTC
I don't have Acrobat pro. I downloaded this freeware thing, but it doesn't find any problems with your example PDF: https://www.access-for-all.ch/en/pdf-accessibility-checker.html
Comment 5 Dustin Matzel 2022-02-17 13:50:54 UTC
That is correct. PAC is a good accessibility checker but it does not find as many accessibility issues as Acrobat.

I tested it again with LO 7.3.0.3 and the issue still occurs. When I do the same thing with Microsoft Word, I do not have this issue.
Comment 6 Buovjaga 2022-02-17 13:55:03 UTC
I think I will just set this to new as the confirmation is coming from Acrobat.
Comment 7 Michael Stahl (allotropia) 2023-09-18 11:39:46 UTC
this should have been fixed by:

https://git.libreoffice.org/core/commit/fa3f04bdd4f73a1b3be70dfb709c44638ef7e3d9

at least veraPDF is happy with it; i don't have Acrobat to check.
Comment 8 teague.algie 2024-08-02 19:52:32 UTC
This is still occurring in 24.2.3.2. Any PDF exported using libreoffice is failing the tab order check in Acrobat Pro.
Comment 9 Buovjaga 2024-08-03 08:04:54 UTC
(In reply to teague.algie from comment #8)
> This is still occurring in 24.2.3.2. Any PDF exported using libreoffice is
> failing the tab order check in Acrobat Pro.

Do you know of any free/freeware software we can use to check this?

Also good to check with a fresh master build as accessibility improvements are being done all the time: https://dev-builds.libreoffice.org/daily/master/current.html Win-x86_64@tb77-TDF for Windows.
Comment 10 Gabor Kelemen (allotropia) 2024-08-05 11:45:48 UTC
Created attachment 195712 [details]
For reference the example file exported as PDF/UA from nightly

Version: 25.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: f7197e574cdbd7410fcadab1632bcce2626dca5a
CPU threads: 14; OS: Windows 10 X86_64 (10.0 build 19045); UI render: default; VCL: win
Locale: hu-HU (hu_HU); UI: en-US
Calc: default
Comment 11 Gabor Kelemen (allotropia) 2024-08-05 12:02:28 UTC
Created attachment 195715 [details]
The Page Properties dialog in Acrobat Pro

Can confirm that the above file is still not correct per Acrobat Pro.

The explanation they offer to the problem is this:
https://helpx.adobe.com/hu/acrobat/using/create-verify-pdf-accessibility.html#TabOrder

and indeed setting the value as "Use Document Structure" which is done for attachment  169608 [details] silences the error.
Comment 12 Michael Stahl (allotropia) 2024-08-05 16:00:44 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c9f801f527634a4ec1b5712d345a5ff669e26bbd

tdf#155228 vcl: appease Adobe Acrobat Pro, always produce /Tabs

It will be available in 25.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 13 Commit Notification 2024-08-06 23:21:30 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-8":

https://git.libreoffice.org/core/commit/4923f62519876512020ec94ba47b86441af88e63

tdf#140289 vcl: appease Adobe Acrobat Pro, always produce /Tabs

It will be available in 24.8.1.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 14 Commit Notification 2024-08-06 23:22:34 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "libreoffice-24-2":

https://git.libreoffice.org/core/commit/9447d96f243011dc688f98c8095e96f36fa34284

tdf#140289 vcl: appease Adobe Acrobat Pro, always produce /Tabs

It will be available in 24.2.6.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.