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

Table breaks PDF/A-1 compat when accessibility requested

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Not A Problem
    • 2.1
    • 1.1
    • renderer/pdf
    • None

    Description

      When running fop 2.1 with -a -pdfprofile 'PDF/A-1a' then the pdf output of the following file will not validate on various engines (e.g. pdfbox preflight) with an error 1.4 : Trailer Syntax error, /XRef cross reference streams are not allowed

      If the fo:table is taken out of the fo then it gives (more) valid output (i.e. not the xref error). It also avoids the xref error when specifying -pdfprofile 'PDF/A-1b' and no -a flag with fop 2.1. Using fop 1.1 with -a -pdfprofile 'PDF/A-1a' will give other issues (that can be fixed e.g. with exiftool) but will NOT produce the XRef Trailer syntax error.

      {{<?xml version="1.0"?>
      <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:h="http://xmlns.dummycompany.com/letters" xmlns:hx="http://xmlns.dummycompany.com/letters/intern" xmlns:l="http://www.w3.org/1999/xhtml" xmlns:xalan="http://xml.apache.org/xalan" xml:lang="de">
      <fo:layout-master-set>
      <fo:simple-page-master master-name="first" margin-right="20mm" margin-left="10mm" margin-bottom="20mm" margin-top="32mm" page-width="21cm" page-height="29.6984848098cm">
      <fo:region-body margin-left="15mm" margin-bottom="20mm"/>
      <fo:region-start extent="10mm"/>
      </fo:simple-page-master>
      <fo:page-sequence-master master-name="psmA">
      <fo:repeatable-page-master-alternatives>
      <fo:conditional-page-master-reference master-reference="first"/>
      </fo:repeatable-page-master-alternatives>
      </fo:page-sequence-master>
      </fo:layout-master-set>
      <fo:page-sequence master-reference="psmA">
      <fo:flow flow-name="xsl-region-body">
      <fo:block-container border-color="black" border-style="solid" border-width="0pt" padding="0mm">
      <fo:block text-align="start" line-height="14pt" font-family="serif" font-size="11pt" space-before="28pt" font-weight="bold">
      <fo:inline>Rechnung Nr. 2016-413</fo:inline>
      </fo:block>
      <fo:block space-before="7pt" line-height="14pt" font-family="serif" font-size="11pt">
      <fo:table>
      <fo:table-column column-width="9cm"/>
      <fo:table-column column-width="1.4cm"/>
      <fo:table-column column-width="2.3cm"/>
      <fo:table-header>
      <fo:table-row>
      <fo:table-cell>
      <fo:block font-weight="bold">Leistung</fo:block>
      </fo:table-cell>
      <fo:table-cell>
      <fo:block font-weight="bold">Anzahl</fo:block>
      </fo:table-cell>
      <fo:table-cell>
      <fo:block font-weight="bold" text-align="end">Betrag</fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-header>
      <fo:table-body>
      <fo:table-row>
      <fo:table-cell margin-top="10pt">
      <fo:block>Spaxschrauben 2,5x5mm</fo:block>
      </fo:table-cell>
      <fo:table-cell>
      <fo:block text-align="center">100</fo:block>
      </fo:table-cell>
      <fo:table-cell>
      <fo:block text-align="end">
      <fo:inline>33,75 €</fo:inline>
      </fo:block>
      </fo:table-cell>
      </fo:table-row>
      <fo:table-row border-top-width="0.1pt" border-top-style="solid" position="relative" margin-top="10pt">
      <fo:table-cell>
      <fo:block>Nettosumme</fo:block>
      </fo:table-cell>
      <fo:table-cell>
      <fo:block> </fo:block>
      </fo:table-cell>
      <fo:table-cell>
      <fo:block text-align="end">
      <fo:inline>33,75 €</fo:inline>
      </fo:block>
      </fo:table-cell>
      </fo:table-row>
      </fo:table-body>
      </fo:table>
      </fo:block>
      </fo:block-container>
      </fo:flow>
      </fo:page-sequence>
      </fo:root>}}

      Attachments

        Activity

          People

            Unassigned Unassigned
            shyrodgau Stefan Hegny
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: