- _ocrDocument.Pages.Recognize(null);
- DocumentWriter docWriter = _ocrDocument.Engine.DocumentWriterInstance;
- PdfDocumentOptions pdfOptions = docWriter.GetOptions(DocumentFormat.Pdf) as PdfDocumentOptions;
- pdfOptions.DocumentType = PdfDocumentType.Pdf;
- pdfOptions.ImageOverText = true;
- pdfOptions.PageRestriction = DocumentPageRestriction.Relaxed;
- _ocrDocument.Save(fileName, DocumentFormat.Pdf, null);
复制代码 用的这段代码保存的还是保存不了 |