performOcr method

Future<ApiResponse> performOcr(
  1. File file, {
  2. OcrOptions? options,
})

Perform OCR on a PDF file

file PDF file to process options OCR options

Implementation

Future<ApiResponse> performOcr(File file, {OcrOptions? options}) async {
  options ??= OcrOptions();

  return client.uploadFile(
    '/api/ocr',
    'file',
    file,
    fields: options.toParams(),
  );
}