Changes between Version 24 and Version 25 of PdfImagePlugin


Ignore:
Timestamp:
May 19, 2015, 6:34:02 PM (7 years ago)
Author:
figaro
Comment:

Cosmetic changes, tagged with license

Legend:

Unmodified
Added
Removed
Modified
  • PdfImagePlugin

    v24 v25  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = !PdfImages as PNG in Wiki =
     3= !PdfImages as PNG in Wiki
    44
    5 == Description ==
     5== Description
    66
    77Insert vector graphics like PDFs or SVGs as PNG-images into a wikipage or ticket.
    88
    9    
    109Requires `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].
    11    
     10
    1211The handling and the parameters are inspired by LaTeX includegraphics and the trac !ImageMacro.
    1312
     
    1918}}}
    2019
    21 === Acknowledgement ===
    22 '''Attention''': PDF conversion with !ImageMagick-`convert`:
     20=== Acknowledgement
     21
     22'''Note''': PDF conversion with !ImageMagick-`convert`:
    2323 1. may fail on specific PDF s. This is not a problem of the plugin, this is a problem of `convert`. In this case you will get an error like "{{{ Can't display foo.pdf, ImageMagick->convert failed with errorcode=... , command=convert ... }}}"
    2424 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)
    2525
     26=== Requirements
    2627
    27 === Requirements ===
    2828 * Install `convert` from the [http://www.imagemagick.org ImageMagick]-suite.
    29  * Tested -so far only- on Linux 
     29 * Tested on Linux.
    3030
    3131Tested on this configurations:
    32 || '''OS'''             || '''trac'''            || '''imagemagick''' ||
     32|| '''Operating System''' || '''Trac'''          || '''Imagemagick''' ||
    3333|| Ubuntu 11.04         || 0.11.7-4 (deb)        || 7:6.6.2.6-1ubuntu ||
    3434|| Ubuntu 10.04.4 LTS   || 0.12.2 (easy_install) || 7:6.5.7.8-1ubuntu ||
    3535|| Win64 Server 2003 R2 || 0.12.2 (Bitnami)      || [http://www.imagemagick.org/script/binary-releases.php?ImageMagick=r33s1i1qna69puo410jup92sp2#windows ImageMagick-6.7.5-6-Q16-windows-x64-dll.exe][[BR]][http://pages.cs.wisc.edu/~ghost/doc/GPL/gpl902.htm Ghostscript gs902w64.exe] ||
    3636
    37 
    38 === Parameters ===
     37=== Parameters
    3938   
    40 Possible trac links for resource:
     39Possible Trac links for resource:
    4140The Location of the file can be an attachment (wikipage, ticket, svn) or a local file (keyword "file:").
    42 ||= trac link (resource) =||= alternatives =||= comment              =||
     41||= '''Trac link (resource)''' =||= '''Alternatives''' =||= '''Comment''' =||
    4342|| wiki        ||  !JustPageName || Attachment in wikipage ||
    4443|| ticket      ||  !#1           ||                        ||
     
    4746     
    4847Parameters:
    49 ||= Parameter =||= Value                 =||= default =||                         ||
     48||= '''Parameter''' =||= '''Value'''     =||= '''Default''' =||                   ||
    5049|| `pdffile`   || resource of PDF-file    ||           || required                ||
    5150|| page        || Page to display         || 1         || starting with '''1'''   || 
    52 || width       || width in pixel          || 600       ||  must be absolute value || 
     51|| width       || width in pixel          || 600       || must be absolute value || 
    5352|| caption     || Caption under Image     || ''none''  ||                         || 
    5453|| label       || anchor to link to       ||           ||                         ||
    5554|| || || || ||
    56 || cache       || build once or each time || True      ||  time consumption or changing vectorgraphics ||
     55|| cache       || build once or each time || True      || time consumption or changing vectorgraphics ||
    5756|| align       || left|right              || nothing   ||                         ||
    5857
    59 
    60 == Bugs/Feature Requests ==
     58== Bugs/Feature Requests
    6159
    6260Existing bugs and feature requests for PdfImagePlugin are
    6361[report:9?COMPONENT=PdfImagePlugin here].
    6462
    65 
    66 === Open Bugs ===
    67 [[TicketQuery(component=PdfImagePlugin&status!=closed&order=priority,desc=0,format=table,col=summary|component|type|status|priority|owner|severity|reporter)]]
    68 
    6963If you have any issues, create a
    7064[http://trac-hacks.org/newticket?component=PdfImagePlugin&owner=ursaw new ticket].
    7165
    72 == Download ==
     66[[TicketQuery(component=PdfImagePlugin&group=type,format=progress)]]
     67
     68== Download
    7369
    7470Download the zipped source from [download:pdfimageplugin here].
    7571
    76 == Source ==
     72== Source
    7773
    7874You can check out PdfImagePlugin from [http://trac-hacks.org/svn/pdfimageplugin here] using Subversion, or [source:pdfimageplugin browse the source] with Trac.
    7975
    80 == Example ==
     76== Example
     77
    8178{{{
    8279[[PdfImg(Book.pdf,width=400,page=100,caption="Page 100 from Book Example")]]
     
    8683}}}
    8784
     85which is then displayed as:
     86
    8887[[Image(PdfImg_screenshot.png)]]
    8988
    90 == Configuration ==
     89== Configuration
     90
    9191No configuration is needed except to use the Resource 'file:' the following configuration must set:
    9292
    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:
     93Assume 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:
    9494
    95 {{{
    96 #!ini
     95{{{#!ini
    9796[pdfimg]
    9897file.prepath = /absolute/entry/directory
    99 file.preurl  = http://example.com/entrydir
     98file.preurl = http://example.com/entrydir
    10099}}}
    101100
    102 == Recent Changes ==
     101== Recent Changes
    103102
    104103[[ChangeLog(pdfimageplugin, 3)]]
    105104
    106 == Author/Contributors ==
     105== Author/Contributors
    107106
    108107'''Author:''' [wiki:ursaw] [[BR]]
    109 '''Maintainer:''' [wiki:ursaw] [[BR]]
     108'''Maintainer:''' [[Maintainer]] [[BR]]
    110109'''Contributors:'''