https://bugs.documentfoundation.org/show_bug.cgi?id=149140
Bug ID: 149140
Summary: Table header cells have scope set to None instead of
Column after exporting Writer table to PDF/UA
Product: LibreOffice
Version: Inherited From OOo
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 180174
--> https://bugs.documentfoundation.org/attachment.cgi?id=180174&action=edit
ZIP file containing an ODT test file and three PDF files derived from it
The table header cells in a table header row always have their scope set to
"None" instead of "Column" after exporting a Writer document containing a table
to PDF/UA.
Steps to reproduce the issue:
1. Create a new document and insert a table with at least two rows and two
columns. In the first row of cells, enter some text that may serve to describe
the content of the rows. Enter some other data into the other rows. Copy this
table two times, so you eventually have three tables in the document.
2. Right-click on the first table, open the Table Properties dialog, go to the
Text Flow tab and check the checkbox "Repeat heading" (and keep the value for
"rows" on "1"). This turns the first row from a row of normal data cells into a
header row.
3. In the second table, select the first row and apply the style "Table
Heading" to it. (The table properties remained at their default values.)
4. In the third table, apply the style "Heading 2" to the cells in the first
row.
5. Export the file to PDF, making sure that the checkbox "Universal
Accessibility (PDF/UA)" is selected.
Observed result:
Open the PDF file in Adobe Acrobat Pro and inspect the tags for the first row
in each table.
1. The first row in the first table is marked up as a TR with TH cells for the
table header cells. Open the Accessibility tool, click "Reading Order", click
on the first table, click on the "Table Editor" button in the Reading Order
dialog and notice how type of header cells is displayed. (If these tags are not
displayed, check the radio button "Structure types" in the Reading Order
dialog.) Right-click on a TH cell and open the Table Cell Properties; notice
that "Scope" is set to "None". This is the case for each TH cell.
2. The first row in the second table is also marked up as a TR with TH cells
for the table header cells. Inspect the TH cells in the same way is in the
previous step and observe the same result.
3. The first row in the third table is obviously not marked up as a table
header row: it is a row to TD cells, each containing an H2 tag, as expected,
since using Heading x styles is not the proper way to mark table header rows in
Writer.
4. Open the PDF file in PAC 2021 (freely available at
https://pdfua.foundation/en but only for Windows). Open the detailed report,
drill down to Logical Structure > Structure Elements > Tables, and notice the
error "Table header cell has no associated subcells" for each table header cell
in the first two tables.
Expected result:
Each of the TH cells has its scope set to "Column" and the TH cells don't
trigger an error in PAC 2021.
Workaround for people who have Adobe Acrobat Pro:
Open the document in Adobe Acrobat again, open the "Reading Order" as described
in step 1 (above) and change the scope of the TH cells in the first two tables
from "None" to "Column". Save the PDF file and open it again in PAC 2021. The
TH cells no longer trigger an error.
It may be possible to fix the issue using the free online tool PAVE at
https://pave-pdf.org/index.html but my PDF file triggered an internal server
error when I tried to upload it.
Version: 7.3.3.2 (x64) / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
The attached ZIP file contains the following files:
- TableTH_test_LibreOfficeWriter7.3.3_HeaderRow-HeadersInTopRow.odt : the
orginal test file containing three tables in which the header rows are marked
up in three different ways (i.e. as decribed in the instructions).
- TableTH_test_LibreOfficeWriter7.3.3_HeaderRow-HeadersInTopRow.pdf : the PDF
resulting from exporting the ODF file to PDF/UA using LibreOffice Writer
7.3.3.2.
-
TableTH_test_LibreOfficeWriter7.3.3_HeaderRow-HeadersInTopRow_ScopeCorrected.pdf
: a version of the previous file in which the TH scope was corrected to
"Column" as described in the workaround.
-
TableTH_test_LibreOfficeWriter7.3.3_HeaderRow-HeadersInTopRow_ExportedFromOOo3.3.0.pdf
: the PDF PDF resulting from exporting the ODF file to "tagged PDF" using
OpenOffice.org 3.3.0 [OOO330m20 (Build:9567)] and which has the same TH issue
as current versions of LibreOffice. This file shows that the issue was
inherited from OpenOffice.org.
--
You are receiving this mail because:
You are the assignee for the bug.