NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Suddenly today, the HEADERS and FOOTERS on my exported PDF documents are no longer working properly, without me doing any changes on the html.

      This is example of the HEADER html, which used to create two lines accross my page, and inbetween the two lines my logo on the left side and the filename on the right side. But today, suddenly this same code is only drawing the HEADER for 1/3 of the page, but not stretching across the page as before. Same issue applies to two different spaces, so I suspect some system changes have been made on the OnDeman installation.

      <div>
      <table>
      <td colspan="3">
      <hr id="hfLine">
      <tr>
      <td>
      <img width=25% src="/download/attachments/21823546/SG%20Logo%20Color.jpg"/>
      </td>
      <td colspan="2">
      <p id="hfRight"><b>my_filename_Vvv</b></p>
      </td>
      </tr>
      <td colspan="3">
      <hr id="hfLine">
      </table>
      </div>

            [CONFSERVER-33699] Headers and Footers not working properly for PDF export

            Hi Tindur

            Just wondering if you had any update on this issue?

            Regards
            Steve Haffenden
            Confluence Bugmaster

            Steve Haffenden (Inactive) added a comment - Hi Tindur Just wondering if you had any update on this issue? Regards Steve Haffenden Confluence Bugmaster

            Hi Tindur

            Thanks for taking the time to raise this issue. Could you confirm which version of Confluence you are using. Also, you mention that this suddenly stopped working, are you aware of any changes to your Confluence instance that may have caused this?

            Regards
            Steve Haffenden
            Confluence Bugmaster
            Atlassian

            Steve Haffenden (Inactive) added a comment - Hi Tindur Thanks for taking the time to raise this issue. Could you confirm which version of Confluence you are using. Also, you mention that this suddenly stopped working, are you aware of any changes to your Confluence instance that may have caused this? Regards Steve Haffenden Confluence Bugmaster Atlassian

            Case is resolved by adding width to the table in the header, i.e.:

            <table width="100%">

            but this was not required last week.

            Tindur Hafsteinsson added a comment - Case is resolved by adding width to the table in the header, i.e.: <table width="100%"> but this was not required last week.

            In case wanted, here are the stylesheets specified:

            /*.pagetitle h1

            { display: none; }

            */

            .fsTitlePage

            { align: center; margin-left: auto; margin-top: 100mm; margin-right: auto; page-break-after:always; width: 100%; height: 600px; /*border: 1px solid RED;*/ text-align: center; }

            .fsTitle1

            { font-size: 30px; font-weight: bold; color: #22397e;  margin: 150px 0 4px 0; }

            .fsTitle2

            { font-size: 20px; font-weight: bold; margin: 15px 0 4px 0; }

            .fsTitleImg
            {
            }

            @page

            { /*The A4 paper size is 210 mm wide by 297 mm long*/ /*Portrait*/ size: 210mm 297mm; /*Landscape*/ /*size: 297mm 210mm;*/ margin-top: 2.5cm; /*margin-bottom: 100mm;*/ /*margin-left: 0mm;*/ /*margin-right: 0mm;*/ /*border: 1px solid RED;*/ }

            .header

            { width: 695px; /*border: 1px solid GREEN;*/ }

            .footer

            { width: 695px; /*border: 1px solid GREEN;*/ }

            #pageNum:before

            {content: counter(page);}

            #pageNums:before

            {content: counter(pages);}

            #hfLine

            {border-color: #22397e;}

            #hfCenter

            {text-align: center; color: #22397e;}

            #hfRight

            {text-align: right;}

            #hfLeft

            {text-align: left;}

            .insertPagebreak

            {page-break-after: always;}

            .pagetitle

            {page-break-before: always;}

            .excludeFromExport

            {display: none;}

            Tindur Hafsteinsson added a comment - In case wanted, here are the stylesheets specified: /*.pagetitle h1 { display: none; } */ .fsTitlePage { align: center; margin-left: auto; margin-top: 100mm; margin-right: auto; page-break-after:always; width: 100%; height: 600px; /*border: 1px solid RED;*/ text-align: center; } .fsTitle1 { font-size: 30px; font-weight: bold; color: #22397e;  margin: 150px 0 4px 0; } .fsTitle2 { font-size: 20px; font-weight: bold; margin: 15px 0 4px 0; } .fsTitleImg { } @page { /*The A4 paper size is 210 mm wide by 297 mm long*/ /*Portrait*/ size: 210mm 297mm; /*Landscape*/ /*size: 297mm 210mm;*/ margin-top: 2.5cm; /*margin-bottom: 100mm;*/ /*margin-left: 0mm;*/ /*margin-right: 0mm;*/ /*border: 1px solid RED;*/ } .header { width: 695px; /*border: 1px solid GREEN;*/ } .footer { width: 695px; /*border: 1px solid GREEN;*/ } #pageNum:before {content: counter(page);} #pageNums:before {content: counter(pages);} #hfLine {border-color: #22397e;} #hfCenter {text-align: center; color: #22397e;} #hfRight {text-align: right;} #hfLeft {text-align: left;} .insertPagebreak {page-break-after: always;} .pagetitle {page-break-before: always;} .excludeFromExport {display: none;}

              shaffenden Steve Haffenden (Inactive)
              184b0e94e93c Tindur Hafsteinsson
              Affected customers:
              0 This affects my team
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: