Contents
Preview PDF files
Description
This is a preview plugin for PDF files, which are added as an attachment to the Trac wiki page or ticket page.
It uses PDF.js, a general-purpose, web standards-based platform for parsing and rendering PDFs and is licensed under Apache 2.0.
Bugs/Feature Requests
Existing bugs and feature requests for PdfPreviewPlugin are here.
If you have any issues, create a new ticket.
defect |
3 / 4 |
---|
Download
Download the zipped source from here.
Source
You can check out PdfPreviewPlugin from here using Subversion, or browse the source with Trac.
Installation
General instructions on installing Trac plugins can be found on the TracPlugins page.
You can install using pip in your Trac project's directory (and/or virtualenv) with:
pip install https://trac-hacks.org/browser/pdfpreviewplugin/1.0?format=zip
After installing, enable the plugin with the following changes to your trac.ini file:
[components] tracpdfpreview.pdfpreview.* = enabled
Add application/pdf
to your mimeviewer.mime_map
setting. The following example appends it to the default mime_map setting that comes with Trac:
[mimeviewer] mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,application/pdf
Recent Changes