makeSearchablePdf method
Make a PDF searchable using OCR
file
PDF file to make searchable
options
OCR options
Implementation
Future<ApiResponse> makeSearchablePdf(
File file, {
OcrOptions? options,
}) async {
options ??= OcrOptions();
return client.uploadFile(
'/api/ocr-pdf',
'file',
file,
fields: {...options.toParams(), 'createSearchablePdf': 'true'},
);
}