-
Notifications
You must be signed in to change notification settings - Fork 5
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
Invalid canvas size #54
Comments
@SiddhantSadangi I did some tests and the issue seems to be related to the fact that you're calling the I did not find why exactly why this is happening yet, I'm still investigating and is quite time consuming. |
Thanks for looking into this @lfoppiano . If it was an underlying issue with the component itself, the popup would show for any PDF. |
@SiddhantSadangi indeed, that's a good point. if I remove the alert after catching an exception, it will works as if nothing have happened, showing all the PDF correctly, but I want to do a few more tests before that. |
I have been having this same issue. I thought it was the PDF size, but it still appears to be happening when I reduce the width to something very small. I appreciate the support on this! |
@ehenry09 could you share the PDF and the code that you used (or a similar example)? |
I played around with this a little bit this morning, and I ** think ** I am only getting this error when I try to render a PDF in the context of a tab. This is the PDF file: https://www.dropbox.com/sh/wty3w9kl7v8u40t/AADbg8ITc8ZUpcatDAaLB-8sa/Current%20Rule%20Book/1.2%20Final?dl=0&preview=Rulebook+1p2+Final+Version+02-27-23+Optimized.pdf&subfolder_nav_tracking=1 Here is an example of code that I used to reproduce it.
|
This issue should be solved in #58. I tested with the PDFWorkbench in local, and it seems fine, but there might be other bugs around the corner. I needed to change the behavior, now I don't try to occupy all the space, but I try to keep the proportions on the PDF. It would be good if someone could test it before I make the release. The process is not too complicated but may take some steps:
Let me know |
@lfoppiano - I am on Windows (yes, I know) and don't have npm installed. Will be happy to test if you can push a pre-release version to PyPI :) |
Thanks @SiddhantSadangi no problem. Let's see if someone else can test it, meanwhile I need to fix the tests and add a few more before I can attempt a pre-release. I keep you posted. |
I am happy to test, though am on vacation until next week. I am also running in a docket container, not sure if that impacts how I should test it out. |
I've released the version 0.0.15. It's not yet officially published, but it's on pypi. Could you please give it a try? |
@lfoppiano - I just tested 0.0.16, and it works great! Thanks 🎉 Please let us know once a stable version is released on PyPI |
I just tested it as well. Thanks for the update :D Will let you know if I have any further issues. |
The new version is released. If works fine feel free to close this issue. Thanks! |
@lfoppiano - works fine for me, thanks a ton! 🫶 |
Using this PDF in here lead to "invalid canvas size" popup.
The text was updated successfully, but these errors were encountered: