Version 17 (modified by 8 years ago) (diff) | ,
---|
Contents
Redirect to raw format for PDF attachments
Notice: This plugin is unmaintained and available for adoption.
Description
This plugin produces links to PDF attachments to go directly to the raw file, rather than the preview page and 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.
defect |
3 / 3 |
||
---|---|---|---|
enhancement |
1 / 3 |
Download
Download the zipped source from here.
Source
You can check out PdfRedirectorPlugin from here using Subversion, or browse the source with Trac.
Installation
Installation directly from Subversion using easy_install
:
easy_install https://trac-hacks.org/svn/pdfredirectorplugin/trunk/
For more info see TracPlugins.
If you want the PDF to render in the browser, you'll need to make the following configuration changes in your trac.ini
file:
[attachments] render_unsafe_content = true [browser] render_unsafe_content = true
Example
Upload a PDF and click on it. You will be able to download it immediately instead of having to click through the preview page.
Recent Changes
- 16501 by rjollos on 2017-04-15 08:25:24
-
Fix indentation
- 13321 by rjollos on 2013-07-02 22:41:39
-
PEP-0008 whitespace changes (Refs #11204).
- 13320 by rjollos on 2013-07-02 22:41:31
-
Redirect on file extensions specified by user (Fixes #11204).
Added an option
[pdfredirector] extensions
for specifying a comma-separated list of file extensions that should be redirected on. The default ispdf
, preserving the previous behavior.
(more)
Author/Contributors
Developed at The Open Planning Project.
Author: nicholasbs
Maintainer: none (needsadoption)
Contributors: k0s, rjollos, hasienda