Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pdf disappear #112

Open
sahmirzali opened this issue Oct 18, 2020 · 12 comments
Open

pdf disappear #112

sahmirzali opened this issue Oct 18, 2020 · 12 comments

Comments

@sahmirzali
Copy link

sahmirzali commented Oct 18, 2020

When i close phone's navigate, pdf is disappear, how can i solve this problem ? why this problem is happen ?

problem explain : https://youtu.be/Z_69P6dK81k

@endigo i also try in example project : https://youtu.be/pKo28y47WhY

@sahmirzali
Copy link
Author

@endigo i'm sorry for upset you, but could you please answered my question ?

@endigo Do you have this issue in your example ? could you please try (run) in your pc ?

@endigo
Copy link
Owner

endigo commented Oct 20, 2020

@Shahmirzali I did run my example project but I don't have any solution.

You could run through AndroidPdfViewer source code.

If you find a solution, please create PR because there are issues that wait for very long time.

Thanks

@LuisDeLaValie
Copy link

I have the same problem I put a textfile to jump from page and from saparese, it also disappears when I flip the phone.

this is one of the messages that I get in both cases
D / jniPdfium (8057): Destroy FPDF library

@jdeltoft
Copy link

jdeltoft commented Feb 9, 2021

I have this problem when I open a soft keyboard on another page. I'm using another page to enter user info (name, phone etc). The moment the soft keyboard is raised I get the "Destore FPDF library" message as well.

See here for others with the same issue. Their fix didn't help for me.

arnaudelub/flutter_fullpdfview#2

@sahmirzali
Copy link
Author

@LuisDeLaValie @jdeltoft Did you find any solutions ?

@jdeltoft
Copy link

I moved to using a different pdf lib unfortunately. @sahmirzali . For my situation I got this one for the free community license:

syncfusion_flutter_pdfviewer: ^18.4.42-beta

@raunak-many-ac
Copy link

syncfusion_flutter_pdfviewer doesn't have dark mode

@lcyper
Copy link

lcyper commented Feb 18, 2022

I found that this append when the pdf is resized.
Currently the package is using a vitual view, if we change to hibryd view it will fix? @endigo what do you think?

@raunak-many-ac
Copy link

@lcyper whenever pdf disappears in debug console we can see a message:

FPDF destroyed

Possibly being printed from method channel.

If this can be catched in dart then developers can reload the pdf.

@lcyper
Copy link

lcyper commented Feb 18, 2022

@raunak-many-ac how you reload the pdf? (changing the key of the widget)

in this file you can see an aproach to that using this function: (that package is the base for this package, but does not implement that part, and i discover that his aproach does not work well, the best is to reload the widget)
onDetachedFromWindow()

@raunak-many-ac
Copy link

@lcyper that's right.

My sense was we can do anything to reload either by reloading the widget or restarting the screen.

@myselfuser1
Copy link

This will help https://www.youtube.com/watch?v=gAUVz0U7eyA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants