tika_client 1.0.1+1

Dart native js
Flutter Android iOS web

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).

Dart Tika client #

tika_client is a Dart client library for accessing the Apache Tika Server API.

Run Tika server as docker image #

docker run --rm -p 9998:9998 logicalspark/docker-tikaserver:1.18

Usage #

A simple usage example:

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
90
pub points
8%
popularity

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

Documentation

API reference

Uploader

istvan.soos@gmail.com

License

BSD (LICENSE)

Dependencies

http_client

More

Packages that depend on tika_client