v2.2.0
dart_pdf_reader
用于解析PDF文件的小型纯Dart库。支持读取所有PDF结构
31喜欢 4.4万近 30 天下载160Pub 分数
AndroidiOSWebmacOSWindowsLinux
纯 Dart 编写的 PDF 阅读器库
以下为英文项目原文快照,最新内容请访问 GitHub。
Version codecovOpenSSF Scorecard
'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
RandomAccessStream from either bytes ByteStream or file FileStreamPDFParser using the stream from step 1PDFParser from step 2 await parser.parse()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);