4 Replies Latest reply on Oct 21, 2010 4:43 PM by IcecreamTruckers

    Is it possible to convert a PDF to a high resolution image with ColdFusion?


      I would like to determine how to convert PDFs to high resolution images using ColdFusion.

      I'm running ColdFusion 9,0,0,251028 on CentOS 5.5 with Apache 2.2.3.


      The <cfpdf action = "thumbnail" ...> is all well and good for creating 72 dpi images of a PDF, but I need to be able to create 300 dpi images of a PDF.


      The PDFs in question have a much higher level of detail available than 72 dpi.


      The related scale attribute for the action="thumbnail" functionality has an accepted range of 1 to 100, but an example of what I need is something more like a value of 415.


      I should mention that I did try to use the jpgdpi attribute, and set it to 300 dpi . . . which produced a JPG that was indeed set to 300 dpi, but still had the same pixel dimensions as the 72 dpi image, so this did not affect the pdf to jpg conversion process in any way to make the image higher resolution.

      Alternatively, would another possibility be to use ColdFusion to alter the dimensions of the pdf to be 415% of its original dimensions in memory, and then output a 100% thumbnail of that altered PDF? Is this possible? I can not for the life of me work out how to alter the set dimensions of a PDF via ColdFusion, in order to determine if this would have an affect on the size of the thumbnail produced.


      Or more broadly, how would you use ColdFusion to convert a PDF to a (or a series of) high resolution images?


      Thanks in advance for any help on this.