-
Notifications
You must be signed in to change notification settings - Fork 166
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
Switching underlying PDF viewer #36
Conversation
@mkoo21 is it ready to be used/merged? |
I have been using it for a while now without noticing any issues (android only, since react-native-quick-look takes care of document rendering in ios very well) |
I've tested it - and now the app isn't crashing, but nor its rendering the pdf (this behavior only happens for one of the pdf files, but I can open it in other pdf apps or ios). |
did the old lib work better for you? |
nop, I got a crash in that specific file in the old lib (PDF is corrupted..) |
any idea/suggestion? |
Haven't run into the issue myself so not really sure what to say. Does it look similar to this issue? If there really isn't anything special about your file maybe ask there and see if you get a better response |
Indeed its similar. |
@mkoo21 I finally found the problem. |
Sure, glad you got it resolved and sorry I wasn't able to help more |
@mkoo21 @andrejunges any updates about the PR? |
Issue #39 has nothing to do with this PR (you'll get it with the old lib as well), so it's been the same as always |
@mkoo21 can you rebase your fork on top of current master so I can check if it works? And them we can probably ask to merge it. |
done |
@mkoo21 thank you! Will try it next week and report my results. |
Nice work, the new PDF rendering library seems to work better. Found a couple of issues though:
|
@mkoo21 sorry for long response. Here my coworker tried your branch and reported some issues. |
Thanks for the feedback, will take a look when I get home |
Hello @mkoo21! Do you have any updates? |
Yes, sorry, I added some minor changes as requested but haven't really had a chance to test them yet. You are welcome to try these 'unstable' changes if you would like, otherwise I will hopefully get back to you by the end of the week |
Thanks for the changes, seem to work nicely. I think we'll take these changes in use in our application. Hopefully they will soon be merged into the main repository too. |
@@ -109,7 +109,7 @@ public void setAsset(PDFView view, String ast) { | |||
@ReactProp(name = "pageNumber") | |||
public void setPageNumber(PDFView view, Integer pageNum) { | |||
//view.setPageNumber(pageNum); | |||
if (pageNum > 0){ | |||
if (pageNum > -1){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be clearer to do pageNum >= 0
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I can do that if it helps
@sibelius it seems like we haven't had any issues while using version in this PR. Should we maybe merge it then? |
@gyzerok could u please upgrade the example project to the latest version of React Native? So I can test against your branch and merge it |
@sibelius updated example |
it does look good, thanks for the awesome work |
Switching the pdf renderer from an old deprecated library to a newer, better maintained library per #34.
Using the newer library will resolve some pixelation issues when zooming in android 6. It also lets you use the Apache License 2.0 rather than GPL.