This documentation relates to the latest version of Confluence.
If you are using an earlier version, please go to the documentation home page and select the relevant previous version.

Confluence to PDF

Confluence 2.8 Documentation

Index

Confluence allows you to export a single page, a part of a space, or an entire space into a single PDF file.

Exporting Single Pages

You can export a single page in Confluence to PDF simply by doing the following.

The page Navigating to the Export PDF Option does not exist.

If you wish to export multiple particular pages or the entire space, follow the instructions below.

Exporting Multiple Pages or the Entire Space

To export to PDF, you will need 'Export Space' permission which is assigned by a space administrator from the Space Administration screens. See Space Permissions or contact a space administrator for more information.

To export to PDF,

  1. Go to the 'Advanced' view for the page. To do this:

    • Go to a page in the space, open the 'Space' menu and select 'Advanced'. The 'Advanced' view will open.
  2. Click on 'Export Space' in the left panel.

  3. Click the radio button to select PDF from the list of export options.

  4. Check the box 'Include Comments' if you want to include the comments for the pages you are exporting.

  5. Select the pages you want to export by checking the boxes in the tree view of pages displayed. By default, all pages are selected. You have the option to 'Check All' or 'Clear All' pages. See screenshot.

  6. Click 'Export'. This will create a zipped file of the PDF document.

  7. Extract the zip file. Click on the PDF file to launch it.
Notes

Only image attachments which have been inserted into a page are included when exporting to PDF.

To export a PDF containing international text, you need to install a Unicode font in Confluence.


Screenshot: Selecting pages to export

PDF Generator Plugin

The PDF Documentation Generator is a free, third-party plugin that offers greater control over the content hierarchy, layout and font styles of your PDF exports.

RELATED TOPICS

Create PDF in another language
Confluence to HTML
Confluence to XML
Customise Adobe PDF Exports

Take me back to Confluence User Guide

Labels

 
  1. Dec 15, 2005

    Dennis Reiter says:

    Is there a way to access in page.pdfexport.vm the full user name instead of the ...

    Is there a way to access in page.pdfexport.vm the full user name instead of the login name? Which velocity context object do I need?

    Cheers,
    Dennis

    1. Dec 15, 2005

      Jeremy Higgs says:

      Hi Dennis, At the moment, there is no easy way to access a user's full name (or ...

      Hi Dennis,

      At the moment, there is no easy way to access a user's full name (or other information) from the PDF/HTML export templates. The macros.vm file contains a 'usernameLink' macro which would be quite useful, except that it relies on the action hierarchy to be present, so scratch that...

      The other option is to access the UserUtils.getUser() method, where you pass in the username and it returns back to you a User object (from which you can get the full name, etc). However this is not in the Velocity context by default. The easiest way to get it into the context would be to add a method to GeneralUtil (which IS in the context) that accesses UserUtils and returns the User object.

      e.g. you might put this into GeneralUtil:

      public User getUser(String username)
      {
           try
              {
                   return UserUtils.getUser(username);
              }
              catch (EntityNotFoundException e)
              {
                 return null;
              }
      }

      Hope this helps,

      Jeremy

  2. Mar 25, 2006

    mr x says:

    Hi, following up this diskussion the way to output high quality PDFs and other f...

    Hi,

    following up this diskussion the way to output high quality PDFs and other formats would probably be using confluence API from JAVA and connect it with a good formatting engine which allows PDF output. I personally prefere products as compart DOPE (http://www.compart.net/Products/Dope-compose.html) or the famous renderx fop engine (www.renderx.com).

    My best, 

     M.A.Bednarz

  3. Apr 27, 2006

    Neil Benson says:

    When you export the whole space to PDF the order of pages in the PDF is not the ...

    When you export the whole space to PDF the order of pages in the PDF is not the same as the order of the pages in the page tree. It appear to be ALPHA ordered in the PDF, so I spent a couple of hours renaming all my pages to have titles in the correct alpha order. Except, the order of pages isn't ALPHA: it's WIERD. It is consistent between exports, but no discernable pattern. So the export is nearly useless...

    1. Jul 18, 2007

      kloda says:

      Is it possible to obtain exported pages in PDF in my order of  pages&n...

      Is it possible to obtain exported pages in PDF in my order of  pages  or exported pages are always Alpha ordered ?

      And what about export to MS WORD ?  

      Thanks, Lubor.

      1. Jul 19, 2007

        Fennie Ng says:

        Hi Kloda, I believe your requirements are addressed in CONF1031

        Hi Kloda,

        I believe your requirements are addressed in CONF-1031. Feel free to cast a vote to increase its popularity and add yourself as a watcher to get its future updates.

        Regards,
        Fennie

  4. Oct 31, 2006

    David Aldrich says:

    It would be helpful to make the page selection tree on the Export page more inte...

    It would be helpful to make the page selection tree on the Export page more intelligent. If a page is unticked, its descendants should also be unticked (or at least greyed) and the reverse. Needs some thinking about, but I think that an isolated tick per page is not powerful enough.

  5. Jun 15, 2007

    Anonymous says:

    Is there a way to make Confluence export a specific space automatically each mon...

    Is there a way to make Confluence export a specific space automatically each month or week?

    1. Mar 19

      Anonymous says:

      This would be really useful.  Does anyone know if it's possible yet?

      This would be really useful.  Does anyone know if it's possible yet?

      1. Mar 21

        Choy Li Tham says:

        Hi, You may want to give a try by using the AutoExport plugin that is available...

        Hi,

        You may want to give a try by using the Auto-Export plugin that is available in our Confluence Extension space:

        If the above is not an option, you may want to give a try to search for other plugins in our Confluence Extension space which might meet your requirement. Hope the information does help.

        Regards,
        Choy Li

  6. Aug 02, 2007

    Anna Si says:

    I was disappointed to learn that people still need to have Confluence accou...

    I was disappointed to learn that people still need to have Confluence account in order to access the attachments embedded in the wiki pdf documents. I thought once a pdf rendition was generated, all attachments become part of the pdf and that people who do not have access to Confluence can open the attachments as well. Did I misunderstand the PDF export feature?

    Thanks.

    1. Aug 02, 2007

      Tony Cheah Tong Nyee says:

      Hi Anna, To my understanding, the PDF export does not allow attachment backup t...

      Hi Anna,

      To my understanding, the PDF export does not allow attachment backup together (only applies to XML export). If an attachment link is created instead, the link will be rendered in the exported PDF. However, accessing the link means one is accessing Confluence. Hence, one will need to login in order to access to the Confluence link. A workaround to this, would be to allow anonymous access for Confluence.

      If I have misinterpreted your question, please further clarify for a better understanding.

      Cheers,
      Tony

  7. Dec 24, 2007

    Anonymous says:

    Hello All, I am exporting a single page into  PDF by clicking on the Export...

    Hello All,

    I am exporting a single page into  PDF by clicking on the Export to PDF icon. Adobe Acrobat is able to load sucessfully but not able to open the page. I get a popup window with the ff message
    "There was an error processing a page. There was a problem reading this document (109)."

    Other pages within the same space are able to export to pdf. Please advice

    Thanks

    Nana

    1. Dec 25, 2007

      Choy Li Tham says:

      Hi Nana, I would suggest you to raise a support ticket at support system: https...

      Hi Nana,

      I would suggest you to raise a support ticket at support system: https://support.atlassian.com. Hence, we can further investigate this problem from there. Thanks.

      Regards,
      Choy Li

  8. Dec 27, 2007

    Anonymous says:

    How can I access my custom Velocity Context plugin from page.pdfexport.vm? Thank...

    How can I access my custom Velocity Context plugin from page.pdfexport.vm?

    Thanks

    Dan

    1. Jan 08

      Tony Cheah Tong Nyee says:

      Hi Dan, This is not possible at the moment. However, I have raised a bug report...

      Hi Dan,

      This is not possible at the moment. However, I have raised a bug report on behalf of this. It can be accessed via:

      Cheers,
      Tony

  9. Mar 12

    Matt Keeneth says:

    How do I get the comments on the page to show up in the PDF when I use the expor...

    How do I get the comments on the page to show up in the PDF when I use the export single page icon?

    1. Mar 13

      Choy Li Tham says:

      Hi Matt, Unfortunately, Confluence does not provide this feature currently. How...

      Hi Matt,

      Unfortunately, Confluence does not provide this feature currently. However, we are aware of such needs and there is an improvement request being tracked at the following link:

      The improvement request above suggest Confluence to have the ability to include comments in the page PDF export. If you are keen on this improvement, please cast a vote to increase its popularity and add yourself as a watcher for future updates.

      Regards,
      Choy Li

  10. Apr 23

    Igor Minar says:

    You can export a single page in Confluence to PDF simply by clicking the pdf ico...

    You can export a single page in Confluence to PDF simply by clicking the pdf icon located at the top of each page below the Quick Search box.

    Did this feature go away with 2.8? I also can't find the print icon that used to be next to the pdf icon.

    1. Apr 23

      Ming Giet Chong says:

      Hi Igor, For "Default theme", the PDF export feature is accessible via {{Tools>...

      Hi Igor,

      For "Default theme", the PDF export feature is accessible via Tools->Export to PDF or Tools->Info->Export As. Hope this information helps. Thanks.

      Regards,
      MG

      1. Apr 24

        Igor Minar says:

        Thanks, but what about printing? I don't see that anywhere in the menu. Was that...

        Thanks, but what about printing? I don't see that anywhere in the menu. Was that feature replaced with printable stylesheets?

        /i

        1. Apr 25

          Mei Yan Chan says:

          Hi Igor, The new design has omitted the print feature. However, if you append {...

          Hi Igor,

          The new design has omitted the print feature. However, if you append decorator=printable to the URL, you will still be able to get the printable version.

          Regards,
          Mei

          1. May 28

            gumshoes says:

            To get the icon back edit the Main Layout under Site Layouts so that the header ...

            To get the icon back edit the Main Layout under Site Layouts so that the header is:

            <div id="header">
            <table style="width:100%;margin:0px;border:0px"><tr><td>
                #quickSearch() 
                <ul id="header-menu-bar" class="ajs-menu-bar">
                    $!sitemeshPage.getProperty("page.browse-menu")
                    #menuMacros_renderUserMenu()
                </ul>
                $!sitemeshPage.getProperty("page.breadcrumbs")
            </td><td width=25>#printableicon()</td></tr></table>
            </div>
            
  11. Jun 17

    Anonymous says:

    Is there a way to control how the PDF will be printed? I get parts of a "Note" i...

    Is there a way to control how the PDF will be printed? I get parts of a "Note" in one page and other part in another, same problem with headings and text.

    1. Jun 18

      Tony Cheah Tong Nyee says:

      Hi there, I presumed you meant to say that, part of the "Note" macro panel and ...

      Hi there,

      I presumed you meant to say that, part of the "Note" macro panel and text are separated into pages?
      We might require some information from you to further investigate this problem and to have a better understanding. Hence, could you please raise a support ticket at:

      It may be helpful if you could provide us with the following in the support issue too:

      1. A sample of the PDf generated
      2. The whole wiki markup content available for the page.

      Cheers,
      Tony

  12. Jul 01

    Karen Wright says:

    I&nbsp;exported one of our spaces (about 500 pages) to PDF over 5 hours ago and ...

    I exported one of our spaces (about 500 pages) to PDF over 5 hours ago and it still says  0% complete.

    How long this is supposed to take? There is no cancel button on the page.

    1. Jul 01

      Azwandi Mohd Aris says:

      Hi Karen, Would you be able to raise a support ticket at

      Hi Karen,

      Would you be able to raise a support ticket at http://support.atlassian.com regarding this issue? Please ensure that you attach your logs to the ticket.

      Cheers,
      Azwandi

Add Comment