Can i get code for Pdf to searchable PDF

Hi,
Can i get sample code pdf to searchable pdf, here i get online conversion from Aspose site

Regards
Aravind

@bpanchu

Could you please specify your development environment? Are you looking for .NET variant of the API/code or Java?

i am looking in vb or c#

@bpanchu

Please take a look at this Convert PDF to Searchable PDF in C#. However, in case of any back-end API related issue, please feel free to post on Aspose forum.

Hi
I am getting this error " System.outofmemory.exception" , here i attach error screenshot
https://prnt.sc/Bz8wNE1NyNtP

This is my code in vb

Imports System.IO
Imports Aspose.OCR

Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim ocr As AsposeOcr = New AsposeOcr()
Dim riText As String = ocr.RecognizeImage(“E:\Data\scansmpl.pdf”)
File.WriteAllText(“E:\Data\1410.pdf”, riText)
End Sub
End Class

I am using Windows 11 and Aspose.Ocr version is 22.9.0

Regards
Aravind

This topic has been moved to the related forum: Can i get code for Pdf to searchable PDF - Free Support Forum - aspose.com