Problem converting a PDF page with OCR, help please!

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
Post Reply
CliveO
User
Posts: 5
Joined: Fri Nov 29, 2019 7:24 am

Problem converting a PDF page with OCR, help please!

Post by CliveO »

Hi All,

I am new to this forum and I am hoping this might be an easy fix for the experts.
I have found a few posts that have assisted in using OCR feature of the API, but mothing to help with this problem.
I have also searched the FullDemo C# solution, but it doesn't seem to cover the OCR feature at all.
If you look at the image below, you can see the the code runs all the way to the 'AsyncDoAndWaitForFinish", but then an unhandled exception occurs.
Any help appreciated.

Regards,
Clive
DocCon5.jpg
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Problem converting a PDF page with OCR, help please!

Post by Sasha - Tracker Dev Team »

Hello Clive,

Was the operation itself created successfully? Maybe you are passing the null pointer to the Async method?

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
CliveO
User
Posts: 5
Joined: Fri Nov 29, 2019 7:24 am

Re: Problem converting a PDF page with OCR, help please!

Post by CliveO »

Hi Alex,

It does look like the Op was successfully created.
Although I do see lots of exceptions thrown in the input class.
And also the Inst class is slightly different.
Another point of interest, my company also use the desktop PDF-XChange editor, and I can OCR documents successfully.

Regards,
Clive
DocCon6.jpg
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Problem converting a PDF page with OCR, help please!

Post by Sasha - Tracker Dev Team »

Hello Clive,

Please refer to these topics - they should help:
viewtopic.php?f=66&t=30356
viewtopic.php?f=66&t=33535

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
CliveO
User
Posts: 5
Joined: Fri Nov 29, 2019 7:24 am

Re: Problem converting a PDF page with OCR, help please!

Post by CliveO »

Thank you Alex.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am
Contact:

Re: Problem converting a PDF page with OCR, help please!

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply