# pdf_js_viewer
**Repository Path**: AMuMuSir/pdf_js_viewer
## Basic Information
- **Project Name**: pdf_js_viewer
- **Description**: a pdf viewer base pdf.js for flutter
- **Primary Language**: JavaScript
- **License**: MIT
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2024-07-11
- **Last Updated**: 2024-07-15
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
## Features
**only support android and iOS**,
Based on the PDF file browser encapsulated in **pdf.js**, this plugin can help you find out how the PDF you are using cannot display relevant information such as signatures.
## Getting started
```dart
import 'package:pdf_js_viewer/pdf_js_viewer.dart';
```
## iOS config ATS for info.plist file
```
NSAppTransportSecurity
NSAllowsArbitraryLoads
```
## android config
AndroidManifest.xml requires configuring HTTP access permissions
```
```
```
createState() => _PdfViewerPageState();
}
class _PdfViewerPageState extends State {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: const Text('PDF Detail'),),
// body: PDFViewerWidget.data(data),
// body: PDFViewerWidget.file(path),
// body: PDFViewerWidget.network(path),
// body: PDFViewerWidget.assets(path),
);
}
}
```