FLUTTER ECOSYSTEM

NicolaVerbeeck/dart_pdf_reader

純粋なDartでのPDFリーダーライブラリ

dart_pdf_reader のプロジェクト画像
Stars
27
Forks
6
最終プッシュ(UTC)
2026/03/03
プロジェクト状態
公開中
Nicola Verbeeck GitHub avatar
GITHUB User

Nicola Verbeeck ↗

ChimerappsBelgium
言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 8 件

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Version codecovOpenSSF Scorecard

Features

'Simple' PDF reader package. Does not do a lot of interpretation of the data that is being read, but it does provide a way to read the data from a PDF file

Getting started

  1. Create RandomAccessStream from either bytes ByteStream or file FileStream
  2. Create PDFParser using the stream from step 1
  3. Read the PDF file using the PDFParser from step 2 await parser.parse()

Example

final stream = ByteStream(File(inputFile).readAsBytesSync());
final doc = await PDFParser(stream).parse();

final catalog = await doc.catalog;
final pages = await catalog.getPages();
final outlines = await catalog.getOutlines();
final firstPage = pages.getPageAtIndex(0);