Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

error : message: 'Failed to convert page to image #24

Open
SHocker-Yu opened this issue Sep 7, 2016 · 3 comments
Open

error : message: 'Failed to convert page to image #24

SHocker-Yu opened this issue Sep 7, 2016 · 3 comments

Comments

@SHocker-Yu
Copy link

Hi,i'm using this package now.But there is the error message.
code:

 var fs = require('fs');
 var PDFImage = require("pdf-image").PDFImage;

 var pdfImage = new PDFImage("brochure.pdf");
 pdfImage.convertPage(0).then(function(imagePath) {
    // 0-th page (first page) of the slide.pdf is available as slide-0.png 
    fs.existsSync("slide-0.png") // => true 
 }, function(err) {
    console.log(err);
 });

error:
F:\parseWord>node pdf-img.js
{ message: 'Failed to convert page to image',
error:

   { [Error: Command failed: C:\WINDOWS\system32\cmd.exe /s /c "convert 'brochure.pdf[0]' 'brochure-0.png'"
   ������ - 'brochure-0.png'
   ]
     killed: false,
     code: 4,
     signal: null,
     cmd: 'C:\\WINDOWS\\system32\\cmd.exe /s /c "convert \'brochure.pdf[0]\' \'brochure-0.png\'"' },
  stdout: '',
  stderr: '������ - \'brochure-0.png\'\r\n' }

Is this about the imageMagic install? I have already installed it.
What's the problem with this?

@ghost
Copy link

ghost commented Jan 17, 2018

No one have a clue of this? I having the same issue...

@Asma-Projects
Copy link

please who solved this issue ?

@pkantsedalov
Copy link

@SHocker-Yu @Asma-Projects @bruno-serfe Please look at this comment.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants