@@ -140,13 +141,42 @@ class _PdfPreviewState extends State<PdfPreview> {
Uint8List_doc;
if(!info.canRaster){
assert((){
if(kIsWeb){
FlutterError.reportError(FlutterErrorDetails(
exception:Exception(
'Unable to find the `pdf.js` library.\nPlease follow the installation instructions at https://github.com/DavBfr/dart_pdf/tree/master/printing#installing'),
library:'printing',
context:ErrorDescription('while rendering a PDF'),