Changes between Version 25 and Version 26 of PdfImagePlugin
- Timestamp:
- Oct 22, 2015, 1:14:37 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PdfImagePlugin
v25 v26 5 5 == Description 6 6 7 Insert vector graphics like PDFs or SVGs as PNG-images into a wikipage or ticket.7 This plugin inserts vector graphics like PDFs or SVGs as PNG-images into a Trac wiki page or ticket. 8 8 9 Requires `convert` from [http://www.imagemagick.org ImageMagick] , `convert` may fail on specific files. Additionally, Ghostscript is required for `convert` on Windows, which is available [http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm here].9 Requires `convert` from [http://www.imagemagick.org ImageMagick]. However, `convert` may fail on specific files. Additionally, Ghostscript is required for `convert` on Windows, which is available [http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm here]. 10 10 11 The handling and the parameters are inspired by LaTeX includegraphics and the trac !ImageMacro.11 The handling and the parameters are inspired by LaTeX includegraphics and the Trac !ImageMacro. 12 12 13 13 Examples: … … 21 21 22 22 '''Note''': PDF conversion with !ImageMagick-`convert`: 23 1. may fail on specific PDF s. This is not a problem of the plugin, this is a problemof `convert`. In this case you will get an error like "{{{ Can't display foo.pdf, ImageMagick->convert failed with errorcode=... , command=convert ... }}}"24 2. if not restricted to certain pages, it can take very long; Example: Converting a PDF file of 400 pages by simply {{{ [[PdfImg(test.pdf)]] }}} took several minutes! (see #9874, #9875)23 1. may fail on specific PDFs. This is not a problem of the plugin, but of `convert`. In this case you will get an error like "{{{ Can't display foo.pdf, ImageMagick->convert failed with errorcode=... , command=convert ... }}}" 24 2. if not restricted to certain pages, it can take very long; example: Converting a PDF file of 400 pages by simply {{{ [[PdfImg(test.pdf)]] }}} took several minutes! See #9874, #9875. 25 25 26 26 === Requirements … … 62 62 63 63 If you have any issues, create a 64 [ http://trac-hacks.org/newticket?component=PdfImagePlugin&owner=ursaw new ticket].64 [/newticket?component=PdfImagePlugin&owner=ursaw new ticket]. 65 65 66 66 [[TicketQuery(component=PdfImagePlugin&group=type,format=progress)]] … … 72 72 == Source 73 73 74 You can check out PdfImagePlugin from [ http://trac-hacks.org/svn/pdfimageplugin here] using Subversion, or [source:pdfimageplugin browse the source] with Trac.74 You can check out PdfImagePlugin from [/svn/pdfimageplugin here] using Subversion, or [source:pdfimageplugin browse the source] with Trac. 75 75 76 76 == Example … … 91 91 No configuration is needed except to use the Resource 'file:' the following configuration must set: 92 92 93 Assume your server is ''http://example.com'' and the webserver config mapped your local directory `/absolute/entry/directory` to the public directory `entrydir`then your configuration for the ''file:''-resource looks like:93 Suppose your server is ''http://example.com'' and the webserver config mapped your local directory `/absolute/entry/directory` to the public directory `entrydir`, then your configuration for the ''file:''-resource looks like: 94 94 95 95 {{{#!ini