Nutrient Flutter SDK web PDF viewer
Nutrient Flutter SDK includes a PDF rendering engine for web apps. You can embed a configurable PDF viewer in web, iOS, or Android applications from a single codebase.
Review key capabilities
Nutrient Flutter SDK supports the following viewer capabilities:
- Configurable UI — Hide or add buttons and match your app design.
- Client-side processing — Run processing on the client without a server.
- PDF and image viewing — Open PDF, TIFF, PNG, and JPG files.
- Accessibility features — Use built-in features for assistive technologies.
- Document tools — Add annotations, editing tools, and forms.
Check PDF file type support
Nutrient Flutter SDK supports the following file types:
- TIFF (multipage)
- JPG
- PNG
Choose CDN or self-hosted asset loading
By default, Nutrient Flutter SDK loads the Nutrient Web SDK assets from a content delivery network (CDN). To self-host the assets, set useCDN to false in a WebViewConfiguration. Pass WebViewConfiguration as the configuration’s webConfig. Self-host assets when you’re in an air-gapped environment or need to comply with Content Security Policies.
NutrientDocumentView( documentPath: 'path/to/document.pdf', configuration: NutrientViewConfiguration( webConfig: WebViewConfiguration( useCDN: false, ), ),)When you set useCDN to false, the SDK loads assets from local paths instead of the CDN. Setting baseUrl to a custom asset location overrides useCDN.
You can also use the useCDN option in WebViewConfiguration with NutrientInstantView.
Get started with Nutrient Flutter SDK in your project.