Image::Magick::Thumbnail::PDFImage::Magick::Thumbnail::PDF can make thumbnail of a page in a pdf document. | |
Download |
Image::Magick::Thumbnail::PDF Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Leo Charre
- Publisher web site:
- http://search.cpan.org/~leocharre/
Image::Magick::Thumbnail::PDF Tags
Image::Magick::Thumbnail::PDF Description
Image::Magick::Thumbnail::PDF can make thumbnail of a page in a pdf document. Image::Magick::Thumbnail::PDF can make thumbnail of a page in a pdf document.SYNOPSIS use Image::Magick::Thumbnail::PDF 'create_thumbnail'; my $out = create_thumbnail('/home/myself/mypdfile.pdf');I wanted a quick sub to make a thumbnail of a pdf. The goal of this module is to make a quick thumbnail of a page in a pdf.They give the viewer an idea of what is inside the document, but is not meant as a replacement for the actual file.This module is a quick interface to a predetermined use of convert. There are a ton of ways to do this via ImageMagick and convert, etc. I took what seemed to make most sense from various suggestions/ideas, and slapped this together. If you think something can be better, please contact the AUTHOR.No subroutines are exported by default.You must import as: use Image::Magick::Thumbnail::PDF 'create_thumbnail'; my $abs_thumb = create_thumbnail('/abs/path/to.pdf');Or you can do this also: Image::Magick::Thumbnail::PDF; my $abs_thumb = Image::Magick::Thumbnail::PDF::create_thumbnail('/abs/path/to.pdf');The second example is a lot of text but improves legibility in a lot of code.By default this will make a normalized thumbnail with a 6 pixel light grey border, 125 pixel max height and 125 pixel max width png image, which in the above example returns '/abs/path/to-001.pdf'.The subroutine create_thumbnail() takes 1 required argument and optionally 4 arguments in any order. The first argument must always be the pdf file you want to make a thumbnail of. Requirements: · Perl
Image::Magick::Thumbnail::PDF Related Software