How to extract the unstrctured pdf using Google DOC AI and without using any python code?

here i know how to extract the pdf using in google Doc Ai but without using pyhton can i able solve it

@Naveen_Kanike,

Any specific reason not not using UiPath ML extractor which is out of the box solution for PDF extraction.

Still if you want to use Google Doc AI, you can do it via API. Use API call through HTTP Request activity.

Thanks,
Ashok :slight_smile:

@Naveen_Kanike

Api is the only way you have anyways even if it is python or UiPath

Also if you have ai center enabled in UiPath then you have multiple models available for the same

cheers

my client does not requires python so

@Naveen_Kanike,

Ok then only way is API.

Thanks,
Ashok :slight_smile:

without using python is it possible to achevie

@Naveen_Kanike,

Yes definitely. Use HTTP Request activity. This will require only authentication and endpoints. No need of Python scripts.

Thanks,
Ashok :slight_smile:

I came to know in chat gpt that below code :-

now DateTime.UtcNow exp now.AddHours(1) jwtHeader Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("{\"alg\":\"RS256\",\"typ\":\"JWT\"}")).Replace("=", "").Replace("/", "_").Replace("+", "-") jwtPayload Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("{\"iss\":\"YOUR_SERVICE_ACCOUNT_EMAIL\",\"sub\":\"YOUR_SERVICE_ACCOUNT_EMAIL\",\"aud\":\"https://oauth2.googleapis.com/token\",\"iat\":" + (DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1))).TotalSeconds.ToString() + ",\"exp\":" + (exp.Subtract(new DateTime(1970, 1, 1))).TotalSeconds.ToString() + ",\"scope\":\"https://www.googleapis.com/auth/cloud-platform\"}")).Replace("=", "").Replace("/", "_").Replace("+", "-") unsignedJwt jwtHeader + "." + jwtPayload Dim rsa As New System.Security.Cryptography.RSACryptoServiceProvider() rsa.FromXmlString(privateKey) Dim sha256 As New System.Security.Cryptography.SHA256CryptoServiceProvider() Dim unsignedJwtBytes As Byte() = System.Text.Encoding.UTF8.GetBytes(unsignedJwt) Dim signature As Byte() = rsa.SignData(unsignedJwtBytes, sha256) signedJwt = Convert.ToBase64String(signature).Replace("=", "").Replace("/", "_").Replace("+", "-") jwt unsignedJwt + "." + signedJwt grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion={jwt} accessToken JObject.Parse(tokenResponse)("access_token").ToString()

@Naveen_Kanike,

It’s VB.Net code. You will have to go step by step.

Thanks,
Ashok :slight_smile:

Sequence.txt (3.0 KB)
please go through it onces will work mean i can able say to my client then he will buy the google doc ai

@Naveen_Kanike,

I would advise to have a Document Understanding and Google Doc AI comparison in terms of accuracy, cost, compatibility, support and all possible parameters before you consult the client.

If I was in your situation, I would have preferred Document Understanding as it have GenAI support also which would be best in class as of now.

Thanks,
Ashok :slight_smile:

yea! but my client is not ready to buy DU so we suggested him google DOC AI

can you suggest me the best ocr in google
doc ai

@ashokkarale ,

In order to use rest api does we requires the curl installation to communicate with http in UiPath

Hi @Naveen_Kanike

Check if this can help

Hope this helps :slight_smile:

@Naveen_Kanike,

Not needed. UiPath activity is sufficient.

Thanks,
Ashok :slightly_smiling_face:

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.