Uploaded image for project: 'Confluence Cloud'
  1. Confluence Cloud
  2. CONFCLOUD-59394

Adding code for first page on PDF Stylesheet truncates export on the right side

    XMLWordPrintable

Details

    Description

      Summary

      Adding code for first page on PDF Stylesheet truncates export on the right side.

      Environment

      • Confluence Cloud

      Steps to Reproduce

      • Go to the instance PDF Stylesheet at https://<INSTANCE>.atlassian.net/wiki/admin/flyingpdf/viewpdfstyleconfig.action
      • On PDF Export Stylesheet > Edit.
      • Add the following code:
        @page :first{         
        margin: 0;      
        padding: 0; 
        }    
        
      • Click Save.
      • Create a page.
      • Add enough text to generate more than one page when exporting, for example using the Lorem Ipsum macro.
      • Publish the page.
      • Click the ... icon.
      • Export to PDF.

      Expected Results

      • The first page of the document will have no margins, the other ones will be normal, with margins.

      Actual Results

      • The first page of the document have no margins, but the other pages are truncated on the right.

      Workaround

      • Removing the code from the PDF Stylesheet.

      Attachments

        1. Example.pdf
          49 kB
          Thais Krischer

        Activity

          People

            Unassigned Unassigned
            tkrischer Thais Krischer (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: