Posts

Showing posts from August, 2020

Pdf to image conversion in angular (Node)

Image
  PDF TO IMAGE IN ANGULAR   Prerequisite: We need to install the below two exe’s for pdf to image conversion http://www.graphicsmagick.org/   -   GraphicsMagick-1.3.34-Q16-win32-dll.exe https://www.ghostscript.com/ - gs909w64.exe   Available node packages for pdf to image conversion in Angular: https://www.npmjs.com/package/pdf2image https://www.npmjs.com/package/pdf2pic https://www.npmjs.com/package/pdf-poppler https://www.npmjs.com/package/pdf-image https://www.npmjs.com/package/file-convert   Issue faced when integrated these libraries: Module not found: Error: Can't resolve ' child_process ' in 'D:\Angular\imagepdfpoc\node_modules\pdf-poppler'   What is child_process: Child_process used to execute the terminal commends through node server. This package executes the (GraphicsMagick, GhostScript) exe’s for convert the pdf to image. Ref: https://www.npmjs.com/package/child_process   Child_process package ho