[[PageOutline(2-5,Contents,pullout)]] = 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 [https://mozilla.github.io/pdf.js/ 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 [report:9?COMPONENT=PdfPreviewPlugin here]. If you have any issues, create a [/newticket?component=PdfPreviewPlugin new ticket]. [[TicketQuery(component=PdfPreviewPlugin&group=type,format=progress)]] == Download Download the zipped source from [export:pdfpreviewplugin here]. == Source You can check out PdfPreviewPlugin from [/svn/pdfpreviewplugin here] using Subversion, or [source:pdfpreviewplugin browse the source] with Trac. == Installation General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. You can install using pip in your Trac project's directory (and/or virtualenv) with: {{{#!sh 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: {{{#!ini [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: {{{#!ini [mimeviewer] mime_map = text/x-dylan:dylan,text/x-idl:ice,text/x-ada:ads:adb,application/pdf }}} == Recent Changes [[ChangeLog(pdfpreviewplugin, 3)]] == !Author/Contributors **Author:** [wiki:tkob-trac] [[BR]] **Maintainer:** [[Maintainer]] [[BR]] **Contributors:**