Aspose.OCR for Python via Java API docs
Loading...
Searching...
No Matches

Public Member Functions

 __getitem__ (self, index)
 
 __iter__ (self)
 
 __len__ (self)
 
 add_result (self, result)
 
 save (self, str fullFileName, Format format)
 Saves the document in the plain text or other document format.
 
 save_pdf (self, str fullFileName, str embeddedFontPath, PdfOptimizationMode optimizePdf)
 Save all recognition results into a searchable PDF file, with the original images set as the background.
 

Public Attributes

 results
 

Member Function Documentation

◆ __getitem__()

__getitem__ (   self,
  index 
)

◆ __iter__()

__iter__ (   self)

◆ __len__()

__len__ (   self)

◆ add_result()

add_result (   self,
  result 
)

◆ save()

save (   self,
str  fullFileName,
Format  format 
)

Saves the document in the plain text or other document format.

Parameters
fullFileNameFilename with a path for saving recognition result.
formatDocument format enum type of Format.

◆ save_pdf()

save_pdf (   self,
str  fullFileName,
str  embeddedFontPath,
PdfOptimizationMode  optimizePdf 
)

Save all recognition results into a searchable PDF file, with the original images set as the background.

Parameters
fullFileNameFilename with a path for saving recognition result.
embeddedFontPathFull path to the user font.
optimizePdfReduce the PDF file size by lowering the quality of background images. By default, the original image quality is preserved.

Member Data Documentation

◆ results

results