logo
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
mkachala  
#1 Posted : Thursday, February 2, 2017 2:32:42 AM(UTC)
mkachala

Rank: Newbie

Groups: Registered
Joined: 2/2/2017(UTC)
Posts: 2

Thanks: 1 times
Hi!

I wrote the simplest WPF app to test "image to searchable PDF" scenario (with trial version from Nuget package).
I get the OcrException with "Unexpected error code" on api.ProcessPages() call. I saw several similar issues on this forum, and tried all proposed solutions, but nothing helps in my case.
What's strange is that basically the same Console app works fine for me. I only have issue in WPF app.

Could you please help me to resolve the issue? I've attached the sample project (without Nuget package installed).

Thank you,
Mikhail

WpfOcrTest.zip (123kb) downloaded 25 time(s).
Paul Rayman  
#2 Posted : Sunday, February 5, 2017 12:01:28 AM(UTC)
Paul Rayman

Rank: Administration

Groups: Administrators
Joined: 1/5/2016(UTC)
Posts: 1,138

Thanks: 10 times
Was thanked: 133 time(s) in 130 post(s)
Looks like pdf.ttf cannot be loaded.
Please check that the file is copied into output folder.
Its properties should be set as following.
Also please note to "Build Action"
pdf.ttf.png (7kb) downloaded 325 time(s).

Edited by user Monday, February 6, 2017 6:13:04 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
mkachala on 2/5/2017(UTC)
mkachala  
#3 Posted : Sunday, February 5, 2017 11:34:02 PM(UTC)
mkachala

Rank: Newbie

Groups: Registered
Joined: 2/2/2017(UTC)
Posts: 2

Thanks: 1 times
Thank you, this helped!
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.