Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-3165

[PATCH] FOP tags Tables in PDF 1.4 style if PDF/UA-1 mode active

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • Windows 10, PAC 2021 for tagging analyzes.

    Description

      Hi,

      this small GitHub project shows the problem:

      https://github.com/nkutsche/fop-pdf-ua-table-tagging-issue

       

      A table is rendered to PDF using FOP 2.9 with three different configs. The differences are:

      Config 1: PDF 1.5 is requested.

      Config 2: PDF 1.5 is requested and PDF/UA-1 mode is active.

      Config 3: PDF 1.4 is requested.

       

      I analyzed the result PDFs with PAC 2021 - this are the screenshots focosing the table footer:

       

      Config 1: PDF 1.5 Config 2: PDF/UA-1 Config 3: PDF 1.4

       

       

      You see that if the PDF/UA-1 mode is active the tagging of TBody, THead and TFoot are lost and the TFoot row is missplaced (at least on my point of view).

      The reason for adding the PDF 1.4 version was, that PDF 1.4 knows only the tags Table, TR, TH and TD (See PDF 1.4 specification Table 9.22). With PDF 1.5 TBody, THead and TFoot was introduced (see PDF 1.5 specification Table 10.22).

      Conclusion: FOP tags tables in PDF 1.4 style if PDF/UA-1 mode is active even if PDF 1.5 is generated. If PDF/UA-1 mode is inactive it tags tables in PDF 1.5 style even if PDF 1.4 is generated.

      Am I correct that this is not the desired behavior? I think we could live with the PDF 1.4 style if the table footer wouldn't be on top of the body. On my point of view this is also in the PDF 1.4 style wrong.

       

      Attachments

        1. FOP-3165.diff
          0.9 kB
          Nico Kutscherauer
        2. table.jpg
          23 kB
          Nico Kutscherauer
        3. table-14.jpg
          24 kB
          Nico Kutscherauer
        4. table-ua.jpg
          26 kB
          Nico Kutscherauer

        Activity

          People

            Unassigned Unassigned
            nkutsche Nico Kutscherauer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: