>- see footer for list info -<
To be honest with you, this sort of batch processing is not what CF is
designed for and I would steer clear of doing this in CF. I would
investigate the iText library and do the whole thing in Java using a
batch process on a different instance.

Obviously, I am making the assumption that you have your own box and
are not in a shared environment. If you are in a shared environment
then this idea might be a bit beyond your hardware, as it will cause
stability problems and really piss off your hosts.

Sorry that I have not been much help, but CF is really good middleware
but not really up to this real heavy lifting. I advocate writing these
processes as separate programs and running them with something like
Hudson.

HTH

On Tue, Jun 3, 2008 at 10:58 AM, Nick Middleweek
<[EMAIL PROTECTED]> wrote:
>>- see footer for list info -<
> Simon,
>
> Having thought about you've said and what we need to do... Basically, we
> need to create thumbnails of 400-500 PDF's per day of a mixture of PDF
> artwork sizes ranging from little banner ads up to billboard posters. The
> thumbnails need to be the same size, approx 150 x 150 pixels.
>
> I was initially thinking of using CFPDF to create a 100% JPEG thumbnail and
> then use CFIMAGE to proportionally resize it to 150 x 150. It's a shame the
> CFPDF tag doesn't take a fixed dimension for the thumbnailing because the %
> is only really usefull if you know the dimensions of the PDF (thinking out
> loud - "perhaps this is stored in data, i will check :) "). If I create a
> 100% thumbnail the image could be massive, literally meters in width and
> height if it's a billboard poster so RAM will be a problem even in the most
> generous of servers. If I create a thumbnail at 50% then the image could be
> too small if I'm thumbnailing a banner ad that was originally 200 pixels in
> height... So it's shame that CFPDF can't thumbnail to a fixed size.
>
> When Snake said about iText, I thought perhaps I could use that to extract
> the PDF PageSize (which CFPDF can't do) and then do the appropriate %
> scaling with CFPDF to get the thumbnail close to 150 and then CFIMAGE to
> adjust it further if needed.
>
> ... I'm now thinking is that the best approach? Is iText going to be the
> long-term supported mechanism for PDF's in CF or perhaps I should just code
> for today and worry about the future tomorrow... Not something I like doing.
>
>
> Does anyone have any thoughts?
>
>
> Cheers,
> Nick
>
>
>
> 2008/6/2 Simon Baynes <[EMAIL PROTECTED]>:
>
>> >- see footer for list info -<
>> I think you'll find the reason it uses iText is because the PDF
>> functionality was added when it was part of Macromedia. I can
>> guarantee that they either didn't want to go through the pain of
>> refactoring it to use the Adobe Libraries, or they didn't want to
>> cause issues with the CF7 - CF8 upgrade for people who had meddled
>> under the hood to solve some of the issues that come with that
>> territory.
>>
>> On Mon, Jun 2, 2008 at 6:14 PM, Nick Middleweek
>> <[EMAIL PROTECTED]> wrote:
>> >>- see footer for list info -<
>> > Thanks for the replies...
>> >
>> > I'm surpised that Adobe ColdFusion doesn't have better support, or more
>> well
>> > known knowledge about it's support for Adobe PDF. Crazy. I don't
>> understand
>> > why Adobe Coldfusion has to use the opensource iText library when surely
>> it
>> > has access to the Adobe PDF teams knowledge?
>> >
>> > Thank's for the iText tip though. We're after the fastest, best, highest
>> > quality approach to creating thumbnails from PDFs, hence why I thought
>> CFPDF
>> > would be the way forward.
>> >
>> > Apparently other tools using Ghostscript have to parse the whole
>> document,
>> > as if it's printing it and then allow us to create a thumbnail of page 1.
>> > I've heard that XINETs WebNative has an optimized version of Ghostscript
>> > that is streamlined to offer faster processing and therefore thumbnailing
>> of
>> > PDFs.
>> >
>> > I'm sure CFPDF and CFIMAGE will do the job just fine.
>> >
>> >
>> > Cheers,
>> > Nick
>> >
>> >
>> >
>> >
>> > 2008/6/1 Big Mad Kev <[EMAIL PROTECTED]>:
>> >
>> >>  - see footer for list info -<
>> >>>
>> >> I think this blog posting covers what your after
>> >> http://cfpdf.blogspot.com/2007/06/thumbnail-images.html
>> >>
>> >> --------------------------------------------------
>> >> Big Mad Kev
>> >> email: [EMAIL PROTECTED]
>> >> blog: http://inner-rhythm.co.uk/blog
>> >> --------------------------------------------------
>> >>
>> >>
>> >> _______________________________________________
>> >>
>> >> For details on ALL mailing lists and for joining or leaving lists, go to
>> >> http://list.cfdeveloper.co.uk/mailman/listinfo
>> >>
>> >> --
>> >> CFDeveloper Sponsors:-
>> >>
>> >>> - cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>> >>> - Lists hosted by www.Gradwell.com <http://www.gradwell.com/> <
>> http://www.gradwell.com/> -<
>> >>> - CFdeveloper is run by Russ Michaels, feel free to volunteer your help
>> -<
>> >>>
>> >>
>> > _______________________________________________
>> >
>> > For details on ALL mailing lists and for joining or leaving lists, go to
>> http://list.cfdeveloper.co.uk/mailman/listinfo
>> >
>> > --
>> > CFDeveloper Sponsors:-
>> >>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>> >>- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> -<
>> >>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help
>> -<
>> >
>>
>>
>>
>> --
>> Simon Baynes
>> www.simonbaynes.com
>> LinkedIn profile:- http://www.linkedin.com/in/simonbaynes
>>
>> _______________________________________________
>>
>> For details on ALL mailing lists and for joining or leaving lists, go to
>> http://list.cfdeveloper.co.uk/mailman/listinfo
>>
>> --
>> CFDeveloper Sponsors:-
>> >- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>> >- Lists hosted by www.Gradwell.com <http://www.gradwell.com/> -<
>> >- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>>
> _______________________________________________
>
> For details on ALL mailing lists and for joining or leaving lists, go to 
> http://list.cfdeveloper.co.uk/mailman/listinfo
>
> --
> CFDeveloper Sponsors:-
>>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>>- Lists hosted by www.Gradwell.com -<
>>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<
>



-- 
Simon Baynes
www.simonbaynes.com
LinkedIn profile:- http://www.linkedin.com/in/simonbaynes

_______________________________________________

For details on ALL mailing lists and for joining or leaving lists, go to 
http://list.cfdeveloper.co.uk/mailman/listinfo

--
CFDeveloper Sponsors:-
>- cfdeveloper Hosting provided by www.cfmxhosting.co.uk -<
>- Lists hosted by www.Gradwell.com -<
>- CFdeveloper is run by Russ Michaels, feel free to volunteer your help -<

Reply via email to