tika_client 1.0.1+1 copy "tika_client: ^1.0.1+1" to clipboard
tika_client: ^1.0.1+1 copied to clipboard

Dart bindings for Tika server REST API. Apache Tika detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF).

example/example.dart

import 'dart:io';

import 'package:http_client/console.dart';
import 'package:tika_client/tika_client.dart';

main() async {
  final httpClient = new ConsoleClient();
  final tikaClient = new TikaClient('http://localhost:9998/', httpClient);

  final file = new File('example.pdf');
  final buffer = await file.readAsBytes();

  final html = await tikaClient.parseBufferAsHtmlText(buffer);
  print(html);

  await httpClient.close();
}
0
likes
40
pub points
8%
popularity

Publisher

unverified uploader

Dart bindings for Tika server REST API. Apache Tika detects and extracts metadata and text from over a thousand different file types (such as PPT, XLS, and PDF).

Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

http_client

More

Packages that depend on tika_client