// Scanned multipage PDF Path
String fullPath = "multi_page.pdf";

// Initialize AsposeOcr class object
AsposeOCRPdf api = new AsposeOCRPdf();

DocumentRecognitionSettings settings = new DocumentRecognitionSettings(0,1);

// Recognize images from PDF           
ArrayList<RecognitionResult> res = api.RecognizePdf(fullPath, settings);

// Save result as Searchable PDF
AsposeOCR.SaveMultipageDocument("output.pdf", Format.Pdf, res);