B4A Question How to save a PDF file from WebView? - Star-Dust (first post)    
Aug 6, 2017But will this print the entire web page, or only the part that is visible (like a screen capture)?
Entire page...
link: )?
If targetSdkVersion>=21,
WebView.CaptureBitmap use this method: https://www.b4x.com/android/forum...
link: library would resolve.
PDF.addImage (fromLeftAsInt, fromBottomAsInt, bitmapAsandroid.graphics.Bitmap...
B4A Tutorial [B4X] TextEditor - Save and load external files - Erel    
Sep 10, 2023   
(38 reactions).
B4A
Load external files, including online files, using ContentChooser.
Save to an external target...-list-of-other-related-methods.129897/#content
Allow other apps to view text files using this app... external files, including online files, using DocumentPickerViewController: https://www.b4x.com... with ActivityViewController: https://www.b4x.com/android/forum/threads/share-data-from-your-app-with-activityviewcontroller.73159/#content
This also allows saving the text with the Files app.
Allow...
B4A Code Snippet SaveAs - Let the user select a target folder + list of other related methods - Erel    
Nov 1, 2024   
(47 reactions) the simpler version of ExternalStorage. Allows the user to choose the place where the file will be saved... for the example.
Wait For (SaveAs(File.OpenInput(File.DirInternal, "test.txt"...("File saved successfully? " & Success)
End Sub
If not using B4XPages, replace GetBA...B4A + B4i example: https://www.b4x.com/android/forum/threads/b4x-texteditor-save-and-load-external-files.132731/#post-838166
List of classes or libraries that can be used to access secondary storages...
B4A Question Download files from WebView (local storage) - max123    
Jul 10, 2024   
(1 reaction) things, the question here is just one, how to download a file from a WebView, how to handle it so when... There is a WebView, when I press the TabHost page2 the HTML file is saved to DirRootInternal, then loaded inside a WebView where the 3D scene is rendered.
To be more precise I recreated the threejs... AllowUniversalAccessFromFileURLs(wv As WebView)
Dim jo As JavaObject = wv
Dim settings... the root where HTML file is, but I need to manage a WebView to do downloads. I've tried in a lots...
B4A Question web view problem ! - MicroDrie (first post)    
Sep 24, 2023Use the search function in this forum
save a PDF file from WebView
And what do you think of post 5?...
B4A Code Snippet Upload files with WebView - Erel    
Jun 9, 2022   
(16 reactions)   
tags: Upload files with WebView, WebserverCode requires Android 5+
1. Set a custom WebViewChromeClient. It is implemented with inline Java code.
2. The ShowFile_Chooser event is raised when the user clicks on a "browse" button.
3. You need to get the file URI with FileProvider and call SendResult.
Example based on ContentChooser.
Sub ShowFile_Chooser (FilePathCallback As Object, FileChooserParams As Object)
cc.Initialize("CC")
cc.Show("*/*", "Choose File")
Wait For CC_Result (Success...
B4A Class [B4X] PDF Generator - B4X Cross Platform - Class 100% B4X Code - spsp    
Jan 3, 2024   
(57 reactions)Hi,
This class cPDF.bas (version 0.6 - 2024-01-03) generate PDF File with limited fonctionnalities (but enough for me)
Add pages with different paper size (use constants or custom size)
PDF...
draw images (only PNG, all format that can be loaded with xui.loadbitmap)
use pdf commands directly
save to file with/without compression
Source full commented, example for B4J and B4A, I don't... support for :
PNG image wih colorspace = 6
JPG image
loading font from file
137882
137554
137555...
B4A Library Printing and Pdf creation - Erel    
May 18, 2020   
(55 reactions)   
tags: print, pdf, pdf print, Printing and Pdf
The Printer object can print bitmaps, html documents, WebView content and PDF documents.
Example...="${WebViewAssetFile("smiley.png")}"/>"$)
End Sub
Sub WebViewAssetFile (FileName...("getUnpackedVirtualAssetFile", Array As Object(FileName)))
End If
End Sub
The WebViewAssetFile... As OutputStream = File.OpenOutput(File.DirInternal, "1.pdf", False)
pdf.WriteToStream(out)
out.Close....DrawText.
4. Call FinishPage.
5. Repeat the above 3 steps for each page.
6. Save the document to a file...
B4A Example Getting file info using uri from content chooser or from received shared file - example - Nokia    
May 4, 2020   
(24 reactions)example of getting file property information from uri provided by content chooser or received file shared to the app. Curtesy of Erel’s example: Received Share. Shows File name, Mime Type, date modified, file size and a list of all columns from that particular content provider. updated code to show information from Gallery content....
B4A Question Images loaded in webviews are not displayed in mode “debug (rapid)” B4A 3.50 version - bgsoft    
Mar 18, 2014.
There is a simple example to check this:
Sub Globals
Dim WebV As WebView
End Sub
Sub Activity_Create(FirstTime AsBoolean)
Activity.LoadLayout("Layout1")
WebV.Initialize("WebV")
Activity.AddView(WebV, 0dip, 0dip, 100%x, 100%y)
WebV.LoadHtml("<html><body background='file:///android_asset/image.jpg'></body></html>")
End...In the new Basic4Android 3.50 version, I realised that images loaded in webviews are not displayed...
Page: 1  
2  
3  
4  
5  
6  
7