The optical character recognition (OCR) service quickly and accurately converts any image-based document into an editable text file or searchable PDF.
Convert a PDF into a Searchable PDF (limit 10mb)
Install-Package Accusoft.PrizmDocServerSDK --version 1.0.0-beta.*
dotnet add package Accusoft.PrizmDocServerSDK --version 1.0.0-beta.*
using System;
using System.IO;
using System.Threading.Tasks;
using Accusoft.PrizmDocServer;
namespace Demos
{
class Program
{
static void Main(string[] args)
{
MainAsync().GetAwaiter().GetResult();
}
static async Task MainAsync()
{
var prizmDocServer = new PrizmDocServerClient("https://api.accusoft.com", "YOUR_API_KEY");
// OCR an image-only PDF, creating a new PDF:
ConversionResult result = await prizmDocServer.OcrToPdfAsync("scanned.pdf");
await result.RemoteWorkFile.SaveAsync("output.pdf");
// OCR a collection of JPEG scans, creating a single output PDF:
ConversionResult result = await prizmDocServer.OcrToPdfAsync(new ConversionSourceDocument[]
{
"scan-page-1.jpg",
"scan-page-2.jpg",
"scan-page-3.jpg"
});
await result.RemoteWorkFile.SaveAsync("output.pdf");
}
}
}
Want more info on our PrizmDoc Server SDK? View our SDK Documentation to learn more.Not using .NET? View our API Documentation to use our advanced features with other languages.