Apache-AxKit-Language-Svg2AnyFormat

 view release on metacpan or  search on metacpan

lib/Apache/AxKit/Plugin/SvgCgiSerialize.pm  view on Meta::CPAN

  ## When using SvgCgiSerialize this is vital 
  ## because the cgi-parameters are not used
  ## by default to build the cache
  AxAddPlugin Apache::AxKit::Plugin::QueryStringCache

  <Files ~ *.svg>
    AxAddStyleMap application/svg2anyformat Apache::AxKit::Language::Svg2AnyFormat
    AxAddProcessor application/svg2anyformat NULL

    ## optional with this variable you can
    ## overwrite the default output format 
    ## PNG
    ## Supported Values:
    ##    image/jpeg
    ##    image/png
    ##    image/gif
    ##    application/pdf
    PerlSetVar SVGOutputMimeType image/jpeg
  
    ## optional module to pass the format using cgi-parameters
    ## to the module. For supported values see above
    ## and the man-page of the plugin
    AxAddPlugin Apache::AxKit::Plugin::SvgCgiSerialize   
  </Files>

=head1 DESCRIPTION

This plugin reads out the CGI-Parameter mime_type and passes it into the
Module.

=over

=item 

PNG: http://localhost/my.svg?mime_type=image/png

=item 

JPG: http://localhost/my.svg?mime_type=image/jpeg

=item 

GIF: http://localhost/my.svg?mime_type=image/gif

=item 

PDF: http://localhost/my.svg?mime_type=application/pdf

=back

=head1 VERSION

0.01

=head1 SEE ALSO

L<Apache::AxKit::Language::Svg2AnyFormat>

=head1 AUTHOR

Tom Schindl <tom.schindl@bestsolution.at>



( run in 0.486 second using v1.01-cache-2.11-cpan-39bf76dae61 )