php-pdf-to-image icon indicating copy to clipboard operation
php-pdf-to-image copied to clipboard

will it convert multiple page pdf to image, like png

Open kvvaradha opened this issue 4 years ago • 2 comments

hi, its good library, through i wanted to try it with multiple page pdf to png , is it possible to convert it.

kvvaradha avatar Mar 09 '21 18:03 kvvaradha

Hi, thank you very much for the issue!

Multi-page PDF conversion is not yet supported, but I could add it. What should the ideal output of a function look like?

I suggest either:

  • The function saves all pages as images in the specified directory (given by argument)
  • The function saves images to the temp directory and returns an array of image paths (string arrays)
  • Other solutions (suggest, please)

Thank you. :)

janbarasek avatar Mar 09 '21 19:03 janbarasek

thank you for the prompt response.

i would suggest you to try with saving them in a directory and provide an array of files absolute path. that would be nice one to use it.

kvvaradha avatar Mar 10 '21 06:03 kvvaradha