Here it is:
try {
String inputFile = “path/dummy.pdf”;
byte[] imageBytes = convertPDFToTiffAllPages(inputFile);
AsposeOCR ocrApi = new AsposeOCR()
StringBuilder sb = new StringBuilder();
// Initialize OCR engine
I…...Converting PDF to tiff, then trying to OCR it fails with "Unknown... I am converting a PDF to a tiff to be able to perform OCR text...