The problem can be reproduced with the following file: Doc00008.pdf (84.5 KB)
The conversion is done using the follwoing code:
Aspose.OCR.DocumentRecognitionSettings rs = new Aspose.OCR.DocumentRecognitionSettings();
rs.PagesNumber = 0;
rs.Language = Aspose.OCR.Language.Deu;
rs.LinesFiltration = true;
Aspose.OCR.AsposeOcr api = new Aspose.OCR.AsposeOcr();
List<Aspose.OCR.RecognitionResult> res1 = api.RecognizePdf(sourceFilePath, rs);
Aspose.OCR.AsposeOcr.SaveMultipageDocument(ocredPdfFilePath, Aspose.OCR.SaveFormat.Pdf, res1);
The filesize of the created PDF Doc00008_OCRed.pdf (1.4 MB)
is huge compared to the source PDF - and Adobe Acrobat Reader DC complains, that the generated PDF is invalid.