You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
It is a bit beyond me and I cannot figure out what it is that I am doing or how to go about it. I want to utilize the PdfPageImageTexture.
I am trying to get the PDF and create a slideshow of all the pages. Whilst I can achieve that using just PDF view, it want to make it as efficient as possible.
Future<List<int>> pdfToTexids(String url) async {
final file =awaitDefaultCacheManager().getSingleFile(url);
final doc =awaitPdfDocument.openFile(file.path);
finalint pages = doc.pageCount;
finalList<int> imageTexids = [];
for (var i =1; i <= pages; i++) {
final imageTexture =awaitPdfPageImageTexture.create(pdfDocument: doc, pageNumber: i);
imageTexids.add(imageTexture.texId);
imageTexture.dispose();
}
doc.dispose();
return imageTexids;
}
It is a bit beyond me and I cannot figure out what it is that I am doing or how to go about it. I want to utilize the PdfPageImageTexture.
I am trying to get the PDF and create a slideshow of all the pages. Whilst I can achieve that using just PDF view, it want to make it as efficient as possible.
I use this inside a Future Builder like this:
I only get a black box with the notification in debuG console for:
E/IMGSRV ( 463): :0: IsTextureConsistent: IMGEGLImage is not consistent
What am I doing wrong?
The text was updated successfully, but these errors were encountered: