RE: Re: Images and PDF:API2
"Mark Fowle" <mfowle-uVnJ9s0aRV+BUy7/[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.pdfapi2 |
|---|---|
| Message-ID | <0e8801c7db74$99b2f540$3600a8c0@KIIRO> |
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