performOcr method
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(),
);
}