LEADTOOLS Support
Document
Document SDK Questions
OCR .pdf and saving it as .doc in console application using C++
#1
Posted
:
Wednesday, November 18, 2015 7:49:43 AM(UTC)
Groups: Registered
Posts: 1
I would like to ask for a sample code using the basic methods of the OCR engine using the C++ console application. Since all the examples are kinda hard to read since they are all made for Form applications and I am having some trouble generating the console application by myself I decided I should come here and ask for some minor help. :? I would appreciate any help but will really be happy if I am given a code example :) Thank you in advance!
#2
Posted
:
Thursday, November 19, 2015 10:06:53 AM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 71
Was thanked: 4 time(s) in 3 post(s)
Hi,
Here is a link that explains the basic methods you will need to use to OCR a PDF file and save it out as a DOC file in a console application:
https://www.leadtools.com/help/leadtools/v19/ocr/api/programmingwithleadtoolsocradvantage.html
Note that this example uses our Advantage engine, but the engine can be changed in the L_OcrEngineManager_CreateEngine call. The example also takes in a TIF file and saves it out as a PDF, but you can load in the your PDF file in the L_LoadBitmap call and save to DOC by changing the document format in the L_OcrDocument_Save call to DOCUMENTFORMAT_DOC.
Aaron Brasington
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Document
Document SDK Questions
OCR .pdf and saving it as .doc in console application using C++
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.