james_sgp Active Member Licensed User Longtime User Apr 26, 2023 #1 Hi, I`m loading a PDF into a Cavas in a WebView; however, the PDF opens (page appears) ...but then immediately disappears! I have attached a sample showing the issue. I can`t find the issue, can someone pls advise? James Attachments PDF Test 3.zip 494.7 KB · Views: 258
Hi, I`m loading a PDF into a Cavas in a WebView; however, the PDF opens (page appears) ...but then immediately disappears! I have attached a sample showing the issue. I can`t find the issue, can someone pls advise? James
Erel B4X founder Staff member Licensed User Longtime User Apr 27, 2023 #2 1. You should use a panel with Canvas. Not WebView. 2. Call Canvas.Resize instead of initializing it in B4XPage_Resize. Upvote 0
1. You should use a panel with Canvas. Not WebView. 2. Call Canvas.Resize instead of initializing it in B4XPage_Resize.
james_sgp Active Member Licensed User Longtime User Apr 27, 2023 #3 Erel, thanks...I wanted to use Webview as i want to be able to Zoom. I can load the PDF directly into a Webview, but it asks for a password (the PDF`s are secured, as a requirement by the client) Last edited: Apr 27, 2023 Upvote 0
Erel, thanks...I wanted to use Webview as i want to be able to Zoom. I can load the PDF directly into a Webview, but it asks for a password (the PDF`s are secured, as a requirement by the client)
Erel B4X founder Staff member Licensed User Longtime User Apr 27, 2023 #4 I never tried putting a canvas inside WebView. Might work. Anyway, you should initialize the canvas once and later resize it. Upvote 0
I never tried putting a canvas inside WebView. Might work. Anyway, you should initialize the canvas once and later resize it.