pdf_image_renderer 使用本机渲染器将PDF渲染为位图。 用法 有关完全正常工作的颤振示例,请参见示例文件夹。 class MyApp extends StatefulWidget { @override _MyAppState createState () => _MyAppState (); } class _MyAppState extends State { Uint8List image; void renderPdfImage () async { // Get a path from a pdf file (we are using the file_picker package (https://pub.dev/packages/file_picker)) String path = await File