ImageMagick没有此图像格式“ PDF”的解码委托Windows

时间:2018-11-23 03:18:22

标签: windows imagemagick

尝试与ImageMagick一起使用以读取扫描的PDF文本,但是在将PDF转换为图像时,出现了此错误,其中显示“此图像格式“ PDF”没有解码委托@错误/组成.c / ReadImage / 504”。一直在搜索此解决方案数小时无济于事,请在这里寻求帮助。

操作系统:Windows 7 x64

ImageMagick版本:ImageMagick-6.9.8-10-Q16-x86-dll.exe

generateReport(){
      this.setState({statusMsg: ""});
      this.setState({loaderInitialStatus:"Processing..."})
      //this.isReq() ?
      console.log('this.state.selectedOption???',this.state.selectedOption); 
      if(this.state.selectedOption && this.state.selectedOption.length > 0) {
        let groups = []
        this.state.selectedOption.map((item) => {
          groups.push(item.value); 
        })
        this.setState(prevState => ({ 
          condition: [...prevState.condition, { name: "readByGroup", operator: "IN  ", value: groups }]
        }))
      }
      console.log('this.state.condition???', this.state.condition);

        this.props.getMetricsByContent(this.state.condition).then((data) => {
          this.setState({isLoader: false});
          if(data && Array.isArray(data) && data.length > 0){
            let csvContent = papa.unparse(data);
            this.download(csvContent, 'metrics.csv', 'text/csv;encoding:utf-8');
            this.setState({statusMsg: "File Downloaded successfully"})
          } else this.setState({statusMsg: "No records to download"})
        })

      //: null;

    }

在输出下方显示

convert -list format

0 个答案:

没有答案