Changes between Version 9 and Version 10 of PdfImagePlugin
- Timestamp:
- Feb 29, 2012, 7:31:14 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PdfImagePlugin
v9 v10 5 5 == Description == 6 6 7 Insert PDFs or vector graphics like SVGs as PNG-Image into a wikipage. This is somehow an extension of the base Image-Macro.7 Insert PDFs or vector graphics like SVGs as PNG-images into a wikipage or ticket. 8 8 9 9 Requires `convert` from [http://www.imagemagick.org ImageMagick], `convert` may fail on specific files. 10 10 11 The handling and the parameters are inspired by LaTeX includegraphics .11 The handling and the parameters are inspired by LaTeX includegraphics and the trac !ImageMacro. 12 12 13 The Location of the file can be an attachment (wikipage or ticket) or a local file (keyword "file:"). 14 Locations in the SVN could lead into authentification Problems. 15 External Locations means first downloading the resource. 13 Examples: 14 {{{ 15 [[PdfImg(Book.pdf,width=400,page=100,caption="Page 100 from Book Example")]] 16 [[PdfImg(source:testpro/drawing.svg@10,width=600,caption="SVG-image from repository in version 10")]] 17 [[PdfImg(ticket:1:file.pdf)]] 18 }}} 16 19 20 === Acknowledgement === 17 21 '''Attention''' PDF conversion with !ImageMagick-`convert` may fail on specific PDF s. This is not a problem of the plugin, this is a problem of `convert`. 22 18 23 19 24 === Requirements === 20 25 * !Install `convert` from the [http://www.imagemagick.org ImageMagick]-suite. 21 26 * Tested -so far only- on Linux 22 * Tested on Trac version 0.11.7 and 0.12.223 27 24 28 Tested on this configurations: 29 || OS || trac || imagemagick || 30 || Ubuntu 11.04 || 0.11.7-4 (deb) || 7:6.6.2.6-1ubuntu || 31 || Ubuntu 0.11.7-4 || 0.12.2 (easy_install) || ? || 32 33 25 34 === Parameters === 35 36 Possible trac links for resource: 37 The Location of the file can be an attachment (wikipage, ticket, svn) or a local file (keyword "file:"). 38 ||= trac link =||= alternatives =||= comment =|| 39 || wiki || !JustPageName || Attachment in wikipage || 40 || ticket || !#1 || || 41 || source || browser,repos || || 42 || file || || need configuration `file.prepath` || 43 44 Parameters: 26 45 ||= Parameter =||= Value =||= default =|| || 27 46 || `pdffile` || location of PDF-file || || required || 28 || page || Page to display || 1 || starting with '''1''' || 29 || width || width in pixel || 600 || must be absolute value || 30 || caption || Caption under Image || ''none'' || || 47 || page || Page to display || 1 || starting with '''1''' || 48 || width || width in pixel || 600 || must be absolute value || 49 || caption || Caption under Image || ''none'' || || 31 50 || label || anchor to link to || || || 32 51 || || || || || 33 52 || cache || build once or each time || True || time consumption or changing vectorgraphics || 34 53 || align || left|right || nothing || || 54 55 56 57 35 58 36 59