wiki:PdfRedirectorPlugin

Redirect to raw format for PDF attachments

Description

Makes links to PDF attachments go directly to the raw file rather than the preview page (which doesn't actually preview the file).

To delete attachments, you'll need to enter an explicit URL: /attachment/realm/id/filename.pdf?action=delete.

Bugs/Feature Requests

Existing bugs and feature requests for PdfRedirectorPlugin are here.

If you have any issues, create a new ticket.

Download

Download the zipped source from here.

Source

You can check out PdfRedirectorPlugin from here using Subversion, or browse the source with Trac.

Install

Installation directly from SVN (for more info see t:TracPlugins):

easy_install http://trac-hacks.org/svn/pdfredirectorplugin/trunk/

If you want the PDF to render in the browser, you'll need to make the following configuration changes:

[attachments]
render_unsafe_content = true

[browser]
render_unsafe_content = true

Example

Upload a PDF and click on it. You'll be able to download it immediately instead of having to click through the preview page.

Recent Changes

[12182] by rjollos on 2012-10-16 23:16:59
Fixes #8066: Tagged version 0.3.
[12181] by rjollos on 2012-10-16 23:16:08
Refs #8066: Bumped version to 0.3. Added tags directory.
[11799] by rjollos on 2012-07-26 08:15:04
Refs #8066: Redirect TracLink to a PDF in the repository.

Author/Contributors

Developed at The Open Planning Project.

Author: nicholasbs
Maintainer: none
Contributors: k0s

Last modified 7 months ago Last modified on Nov 7, 2012 9:30:41 PM