extractImagesFromPdf static method
Extracts images from the given PDF document.
This method takes a PDF file and extracts its pages as individual images. Parameters can include the PDF file path and extraction settings.
Implementation
static Future<List<String>?> extractImagesFromPdf(
ExtractImagesFromPdfParams params) async {
try {
var result = await SharedCalls.invoke(
channel, 'extractImagesFromPdf', params.toJson());
final decoded = jsonDecode(result);
if (decoded is List) {
return List<String>.from(decoded);
}
return null;
} catch (e) {
Logger.root.severe(e);
rethrow;
}
}