Re: Images and PDF:API2
"spinningwebz2002" <spinningwebz2002-/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], "Mark Fowle" <mfowle@...> wrote: > > I don't work too much with graphics, where needed, I resize with image magik > before I pull the file into a pdf. > > > > PDF::API2 has a clip call that would hid everything not exposed, I'v never > tryied using it. I've always used a white rectangle when I need to hide > something. > > > > If you want to see Image::Magik code that will resize an image to a bounding > box let me know I'll email it outside this group. > > > > Mark > > > > > > _____ > > From: [email protected] > [mailto:[email protected]] On Behalf Of spinningwebz2002 > Sent: Friday, August 10, 2007 11:21 AM > To: [email protected] > Subject: [perl-text-pdf-modules] Re: Images and PDF:API2 > > > > --- In perl-text-pdf- <mailto:perl-text-pdf-modules% 40yahoogroups.com> > [email protected], "Mark Fowle" > <mfowle@> wrote: > > > > There are a fair number of image manipulation options in PDF::API2 > > > > http://search. > <http://search.cpan.org/dist/PDF-API2/lib/PDF/API2/Content.pm> > cpan.org/dist/PDF-API2/lib/PDF/API2/Content.pm > > > > has a lot of options outlined > > > > > > > > _____ > > > > From: perl-text-pdf- <mailto:perl-text-pdf-modules% 40yahoogroups.com> > [email protected] > > [mailto:perl-text-pdf- <mailto:perl-text-pdf-modules% 40yahoogroups.com> > [email protected]] On Behalf Of > spinningwebz2002 > > Sent: Wednesday, August 08, 2007 9:38 PM > > To: perl-text-pdf- <mailto:perl-text-pdf-modules% 40yahoogroups.com> > [email protected] > > Subject: [perl-text-pdf-modules] Images and PDF:API2 > > > > > > > > Are there any image manipulation options in PDF:API. What I am > looking > > for is being able to set the width or height of the image, or crop > an > > image to a certain dimensions. > > > > Bill H > > > > Thanks for the tip. Do you know how the scale option works? Or maybe > if I tell you want I want to happen you can give me some pointers > > I want center an image and have the height be a particular size and > the width be proportional to that. If it is possible I would like to > crop the extra width if any, but I an always draw a white box over > the extra width if need be. > > Bill H > Mark that would be great. I got Imagemagick installed on the server and working at the command line (using convert), but a very strange thing, I cant do the exact command from a perl system() call. FOr example if I shell in and do: convert logo: logo.gif It works great, but if I put it in a perl program: system("convert logo: logo.gif"); nothing happens. I have shell and everything turned on (if I do a system("mv blah.txt ../blah.txt"); in the same perl program, that works. I installed the Perl::Magick portion and tried that using an example they gave and the server justlocked up - had to reboot it (maybe I did it wrong). So yes, if you could show me you example I can see if I was doing it wrong. Bill H