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

Notification

Icon
Error

2 Pages12>
Options
Go to last post Go to first unread
rahul12.kumar  
#1 Posted : Tuesday, January 12, 2016 4:10:44 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Hi ,
I have a project requirement where i need to build a share point event receiver where in a document library when user add a document we need to get the OCRed searchable pdf .
Although , I have running code at my local development environment but when i am trying to deploy (sandbox) to the share point farm i am getting error:
"This assembly does not have a strong name for GAC" .
Please let me know if you people can help me on this.
Paul Rayman  
#2 Posted : Tuesday, January 12, 2016 5:17:06 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)
The assembly should be signed to add it into the GAC.
I am made a new release in which all assemblies are signed. Please, update to version 1.4.0.341

http://forum.patagames.com/posts/t68-Version-1-4-0-341-was-released-on-Jan-12--2016

Edited by user Tuesday, January 12, 2016 5:17:52 AM(UTC)  | Reason: Not specified

thanks 1 user thanked Paul Rayman for this useful post.
rahul12.kumar on 1/12/2016(UTC)
rahul12.kumar  
#3 Posted : Tuesday, January 12, 2016 5:33:37 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Hi Paul,
Thank you for your quick !!
Yes , this is working now but i am facing below error now for "tesseract.dll";
Error occurred in deployment step 'Add Solution': Could not load file or assembly 'C:\Users\test.user\AppData\Local\Temp\solution-0ba222e2-6009-4ec7-9862-c8be9718eeb5\cab\tesseract.dll' or one of its dependencies. The module was expected to contain an assembly manifest
Please help !!
Paul Rayman  
#4 Posted : Tuesday, January 12, 2016 5:46:16 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)
hmm. The tesseract.dll is placed in the specified path?
rahul12.kumar  
#5 Posted : Tuesday, January 12, 2016 5:50:51 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Well , i am using SharePoint sandbox deployment using Visual Studio 2015 , so i added both these assemblies "Patagames.ocr" and the "tesseract.dll" using sharepoint, package ->add existing libraries and select the path where these library is.
Paul Rayman  
#6 Posted : Tuesday, January 12, 2016 5:58:58 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)
please note that tesseract.dll it is not a .net assembly. it is a native windows dll. So that it should be deployed in another way I guess.
rahul12.kumar  
#7 Posted : Tuesday, January 12, 2016 6:43:25 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Ok, if you know how to deploy this , please let me know . I am new in these technologies ,I am a java and big data developer , I have critical client requirement for share point integration OCR , so I choose patagames library for searchable PDF.
Paul Rayman  
#8 Posted : Tuesday, January 12, 2016 5:03:17 PM(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)
Try do not use deploy tool for Tesseract.dll. Just copy it to the server manually, and then specify the path to tesseract.dll as described here: http://forum.patagames.com/posts/t14-Unable-to-load-DLL--tesseract-dll

rahul12.kumar  
#9 Posted : Tuesday, January 12, 2016 11:48:07 PM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Thanks Paul,
But i need to package my project and deploy it to client sharepoint site , do you any other alternative so that i can all the dependent dlls and the data folder (tessdata) to deploy on share point 2010.
rahul12.kumar  
#10 Posted : Thursday, January 14, 2016 1:04:43 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Hi Paul,
Thanks for your prompt answer , well do this as suggested!
can you help me one issue with respect to Patagames , can we take pdf as a input and convert it to searchable pdf ? From the api i got only image(tif/png etc) to searchable pdf.
Please help.
Paul Rayman  
#11 Posted : Thursday, January 14, 2016 2:53:17 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)
You can use the Pdfium.Net SDK to convert the PDF document to an images and then use these images with Tesseract

Edited by user Thursday, January 14, 2016 2:54:25 AM(UTC)  | Reason: Not specified

rahul12.kumar  
#12 Posted : Tuesday, January 19, 2016 5:29:43 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Thanks paul,
I am facing issue while create a OCRApi object , My application is deployed on share point 2010server and as you suggested i am following http://forum.patagames.c...-load-DLL--tesseract-dll you give the path of tesseract.dll and i have also first check the required x64 or x86 path that to use but i am still facing issue .
Please help me as earlier as possible.
rahul12.kumar  
#13 Posted : Tuesday, January 19, 2016 7:36:32 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Hi Paul,

Please help on this !!!
rahul12.kumar  
#14 Posted : Tuesday, January 19, 2016 8:47:02 PM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Hi Paul,
I am sorry but if you guyz not interested to help me , i can't buy you product , thank you !!
Paul Rayman  
#15 Posted : Tuesday, January 19, 2016 11:50:14 PM(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)
what kind of issue you are talking about?
You didn't write anything about it.
rahul12.kumar  
#16 Posted : Wednesday, January 20, 2016 2:50:22 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Hi Paul,
I have deployed my application to share point and as you suggested i am passing the tesseract.dll path manually
OcrApi.PathToEngine = <mypath>+ Path.DirectorySeparatorChar + "x86" + Path.DirectorySeparatorChar + "tesseract.dll"; (i have check my Os and application is of 32 bit)
But when i am creating the object OcrApi ocrApi = OcrApi.Create() - 15 out of one time its created and in rest time it stuck and don't throw any exception as well.

please help as earlier as possible , please give any suggestion
Paul Rayman  
#17 Posted : Wednesday, January 20, 2016 4:33:21 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)
This is normal behavior. The Create() method shows a nag-screen sometimes. You saw it in your developer environment when develop the app I guess. The nag-screen is shown in trial mode only.


tesstrial.png (28kb) downloaded 575 time(s).
rahul12.kumar  
#18 Posted : Wednesday, January 20, 2016 4:36:38 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Thanks , but when i deploy it on my share point server id didn't get any such type of image , although when i run my application in console application and debug mode then only i got this.
rahul12.kumar  
#19 Posted : Wednesday, January 20, 2016 4:40:38 AM(UTC)
rahul12.kumar

Rank: Member

Groups: Registered
Joined: 1/12/2016(UTC)
Posts: 16
India
Location: Gurgaon

Thanks: 1 times
Ok , so you said it comes sometime but it appear at my development env. only .Paul is there is any way so that we can stop it for short while to test my app.
Paul Rayman  
#20 Posted : Wednesday, January 20, 2016 6:02:11 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)
Please contact with me at support@patagames.com
Users browsing this topic
Guest
2 Pages12>
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.