It outputs the expected result. But if I retain the OCR method like the original code did:$miDoc->Create('OCR-test-result.mdi'); my $OCRresult = $miDoc->{Images}->Item(0)->{Layout}{Text}; print $OCRresult;
Perl throws me the same error message: Use of uninitialized value $OCRresult in print$miDoc->Create('OCR-test.tif'); $miDoc->OCR(LangId =>'miLANG_ENGLISH'); my $OCRresult = $miDoc->{Images}->Item(0)->{Layout}{Text}; print $OCRresult;
So now it looks like there's also something wrong with this line:
What diagnostic method can I use to solve the problem. The following code gives me nothing:$miDoc->OCR(LangId =>'miLANG_ENGLISH');
Thanks again :)eval {$miDoc->OCR(LangId =>'miLANG_ENGLISH')}; warn $@ if $@;
In reply to Re^4: Why the Create method keep failing using Office 2007 OCR API?
by ZJ.Mike.2009
in thread Why the Create method keep failing using Office 2007 OCR API?
by ZJ.Mike.2009
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |