Hi,

      The layout of a page after a PDF generation in version 2.8 (see screenshot 01) is different than the one in version 2.7 (see screenshot 02)
      Especially regarding the layout of the tables which is quite embarrassing

      Could you please take a look at this?

      Thanks a lot and kind regards,
      Stephane

      PS: here is the source code of the page I want to generate in PDF

      PDF extraction on version 2.8

      Head 1 Head 2 Head 3
      A B C
      D E F

            [CONFSERVER-11825] Table layout issue in PDF generation

            francoisj added a comment -

            I do not know if my issue is related, but my problem is not resolved in V6.4.0.

            I create a table in Confluence and the Table is set to Fixed width, but when I export to PDF, this setting is just flatly ignored.

            The Table columns in the export are set to any arbitrary width.

             

            francoisj added a comment - I do not know if my issue is related, but my problem is not resolved in V6.4.0. I create a table in Confluence and the Table is set to Fixed width, but when I export to PDF, this setting is just flatly ignored. The Table columns in the export are set to any arbitrary width.  

            Agnes Ro added a comment -

            This has been fixed with CONF-11996.

            Agnes Ro added a comment - This has been fixed with CONF-11996 .

            do you have an exaple of how this fix will make the table look?

            jon arne sæterås added a comment - do you have an exaple of how this fix will make the table look?

            Tim Leigh added a comment -

            We have a workaround by modifying the xhtml2fo.xsl file in confluence.jar.

            <xsl:template match="html:td">
            <fo:table-cell xsl:use-attribute-sets="td">
            <xsl:call-template name="process-table-cell"/>
            </fo:table-cell>
            </xsl:template>

            <xsl:attribute-set name="table">
            <xsl:attribute name="border-collapse">collapse</xsl:attribute>
            <!--
            <xsl:attribute name="border-spacing">0px</xsl:attribute>
            <xsl:attribute name="border-width">0.25mm</xsl:attribute>
            <xsl:attribute name="border-style">solid</xsl:attribute>
            -->
            </xsl:attribute-set>

            <xsl:attribute-set name="th">
            <xsl:attribute name="font-weight">bold</xsl:attribute>
            <xsl:attribute name="text-align">center</xsl:attribute>
            <xsl:attribute name="padding">1px</xsl:attribute>
            <xsl:attribute name="background-color">black</xsl:attribute>
            <xsl:attribute name="border-width">1pt</xsl:attribute>
            <xsl:attribute name="border-style">solid</xsl:attribute>
            </xsl:attribute-set>

            <xsl:attribute-set name="td">
            <xsl:attribute name="border-width">1pt</xsl:attribute>
            <xsl:attribute name="border-style">solid</xsl:attribute>
            <xsl:attribute name="padding">1px</xsl:attribute>
            </xsl:attribute-set>

            Tim Leigh added a comment - We have a workaround by modifying the xhtml2fo.xsl file in confluence.jar. <xsl:template match="html:td"> <fo:table-cell xsl:use-attribute-sets="td"> <xsl:call-template name="process-table-cell"/> </fo:table-cell> </xsl:template> <xsl:attribute-set name="table"> <xsl:attribute name="border-collapse">collapse</xsl:attribute> <!-- <xsl:attribute name="border-spacing">0px</xsl:attribute> <xsl:attribute name="border-width">0.25mm</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute> --> </xsl:attribute-set> <xsl:attribute-set name="th"> <xsl:attribute name="font-weight">bold</xsl:attribute> <xsl:attribute name="text-align">center</xsl:attribute> <xsl:attribute name="padding">1px</xsl:attribute> <xsl:attribute name="background-color">black</xsl:attribute> <xsl:attribute name="border-width">1pt</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute> </xsl:attribute-set> <xsl:attribute-set name="td"> <xsl:attribute name="border-width">1pt</xsl:attribute> <xsl:attribute name="border-style">solid</xsl:attribute> <xsl:attribute name="padding">1px</xsl:attribute> </xsl:attribute-set>

            Any known workaround for this issue? It is very critical for us.

            jon arne sæterås added a comment - Any known workaround for this issue? It is very critical for us.

            Agnes Ro added a comment - - edited

            The bug is more accurately described in CONF-11783

            It seems that the table cells aren't being styled.

            Agnes Ro added a comment - - edited The bug is more accurately described in CONF-11783 It seems that the table cells aren't being styled.

            +1

            Especially big tables are hardy to read. Our staff starts using headers in the whole table; just to be able to find one in the exported PDF.

            Heiko Burghardt added a comment - +1 Especially big tables are hardy to read. Our staff starts using headers in the whole table; just to be able to find one in the exported PDF.

              agnes@atlassian.com Agnes Ro
              c99d55fb67fa stephane leap
              Affected customers:
              7 This affects my team
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: