Open Al-Krause-ex opened 2 years ago
for me too
for me too
me too!
Me too
me too, is there any fix ?
I am using this PDFDocument.fromURL(documentURL)
and getting the same issue with my Android device. iOS device works well.
me too
Same Here
Any update? I am getting the same issue too.
I have same issues...
I have same issues with fromURL()
same issues!
same issues!
any update
Same here
Any update on this issue?.
Same here
same problem here!
so am I
same
same here
did any one find the solution for this issue?
I changed the lib pdf_viewer
to pdf_render
same issue
I use the previous version (2.0.0) as this Stackoverflow answer, then it work https://stackoverflow.com/a/71226926/566360
same issue
Seems like Version 2.0.2 solved the issue for me. I posted what I did here.
When I load a pdf file from assets, my application crashes. The PDF file is 2 MB.
The code:
import 'package:advance_pdf_viewer/advance_pdf_viewer.dart';
import 'package:flutter/material.dart';
class PdfPage extends StatefulWidget { const PdfPage({Key? key}) : super(key: key);
@override
_PdfPageState createState() => _PdfPageState();
}
class _PdfPageState extends State<PdfPage> {
PDFDocument? doc;
var isLoading = false;
@override
void initState() {
isLoading = true;
loadDoc();
super.initState();
}
Future loadDoc() async { doc = await PDFDocument.fromAsset('assets/pdfs/screen.pdf'); setState(() { isLoading = false; }); }
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: isLoading
? const CircularProgressIndicator()
: PDFViewer(document: doc!),
));
}
}
Mistake: