4

I am generating a PDF using the TCPDF library and would like to convert the pdf to an image. Anyone know if this is possible with TCPDF itself (I've looked over the code but doesn't look possible)?

Looking at previous questions on here it appears the best method is to use ImageMagick - is that still the case?

Community
  • 1
  • 1
xylar
  • 7,433
  • 17
  • 55
  • 100

1 Answers1

0

ImageMagick and Ghostscript would be the way to go to do that. I would assume that running the gs or convert commands from the command line is a bit more efficient since you dont have to load the imagemagick extension in PHP and it cuts the overhead from using abstraction classes for the extension.

Feras
  • 2,114
  • 3
  • 20
  • 42