Coder Social home page Coder Social logo

Comments (7)

SergeShkurko avatar SergeShkurko commented on July 23, 2024

I have an idea what could be the problem. The plugin is not yet able to simultaneously process a large number of pages. As a workaround, you can use: https://pub.dev/packages/synchronized

from packages.flutter.

RenanDelfanti avatar RenanDelfanti commented on July 23, 2024

@SergeShkurko Do you have an example how to use synchronized to prevent this issue?

from packages.flutter.

RenanDelfanti avatar RenanDelfanti commented on July 23, 2024

solved the problem by placing a one second splash screen on a stack widget

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on July 23, 2024

@RenanDelfanti you cant try use native_pdf_renderer 1.7.0

from packages.flutter.

RenanDelfanti avatar RenanDelfanti commented on July 23, 2024

@SergeShkurko I have same error.

E/AndroidRuntime(16771): FATAL EXCEPTION: Thread-15
E/AndroidRuntime(16771): Process: br.com.bmtcloud.jasaudeanimal, PID: 16771
E/AndroidRuntime(16771): java.lang.IllegalStateException: Current page not closed
E/AndroidRuntime(16771): at android.graphics.pdf.PdfRenderer.throwIfPageOpened(PdfRenderer.java:269)
E/AndroidRuntime(16771): at android.graphics.pdf.PdfRenderer.openPage(PdfRenderer.java:224)
E/AndroidRuntime(16771): at io.scer.pdf.renderer.document.Document.openPage(Document.kt:30)
E/AndroidRuntime(16771): at io.scer.pdf.renderer.NativePDFRendererPlugin$openPageHandler$1.run(NativePDFRendererPlugin.kt:129)
E/AndroidRuntime(16771): at java.lang.Thread.run(Thread.java:764)
D/EGL_emulation(16771): eglMakeCurrent: 0xe673f1c0: ver 3 1 (tinfo 0xd7ecf2a0)

from packages.flutter.

RenanDelfanti avatar RenanDelfanti commented on July 23, 2024

My pubspec:

native_pdf_view: ^2.1.1
native_pdf_renderer: ^1.7.0

from packages.flutter.

SergeShkurko avatar SergeShkurko commented on July 23, 2024

@Tahaan , @RenanDelfanti

native_pdf_view: ^2.2.0
native_pdf_renderer: ^1.8.1

from packages.flutter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.