This page last changed on Nov 17, 2009 by jlargman.

Modifying PDF Links Behaviour

If you want to remove the links regarding Export to PDF from your instance, you can make changes to the underlying velocity templates to remove the options from the list.

From: <confluence-install>/confluence/pages/viewinfo.vm
Remove this code:

<td nowrap>
      <a href="$req.contextPath/pages/doexportpage.action?pageId=$confPage.id&type=TYPE_PDF" rel="nofollow">$action.getText('pdf')</a>
      <a href="$req.contextPath/exportword?pageId=$confPage.id" rel="nofollow">$action.getText('msword')</a>
      </td>

Disabling export to PDF

From <confluence-install>/confluence/template/includes/macros.vm:

#if ($sitemeshPage && $req && $pageId && $permissionCheckDispatcher.isPermitted("/pages/doexportpage.action?pageId=$pageId&type=TYPE_PDF"))
              <a href="$req.contextPath/pages/doexportpage.action?pageId=$pageId&type=TYPE_PDF" rel="nofollow">
              <img src="$req.contextPath/images/icons/attachments/pdf.gif" height="16" width="16" border="0" align="absmiddle" title="$action.getText('export.as.pdf')"></a>
          #end
Document generated by Confluence on Jul 09, 2010 01:11