B4A Code Snippet [B4X] Open PDF - Lucas Siqueira    Jan 08, 2025   (5 reactions) #Else If B4J
' Platform: Desktop
' Check if the file exists
If File.Exists(dirFile, nameFile) = False Then
Log("B4J - Error: PDF file not found in " & dirFile & "/" & nameFile)
Return
End If
' Open the PDF using JFX
Private fx B4i Question Open PDF - Robert Valentino    Apr 06, 2022 I have downloaded a file from Firebase storage to File.DirDocuments and am trying to open it with no success
I've tried ActivityViewController and DocumentInteraction but I never see the file open (using a iPad 9th)
Dim mp As Page = xPage
B4A Question Open PDF - DonManfred (first post)    Mar 29, 2021   (1 reaction) Use FileProvider to share a file to another app. B4A Question Open Pdf problem with intent - DonManfred (first post)    Jul 23, 2020   (2 reactions) You are not using filepprovider correctly.
you are creating a shareuri for a file in the shared folder.
The pdf you are writing in 1. line is a totally another pdf...
Adapt your code, check the FileProvider tutorial again on how it should be. B4J Question open pdf after sending parameters with HttpJob - DonManfred (first post)    Mar 14, 2022   (1 reaction) Why you do not return the generated pdf when your php-script is called?
Or return a url to the file.
See this example:
https://www.b4x.-pdf-with-b4a-and-php.40863/#post-244779
Please note the use of File.DirRootExternal in this (OLD) Example.
Just use a path you have access to here... B4A Question Open PDF in External application - eps (first post)    Aug 04, 2017   (1 reaction) Something like this, using intents?
https://www.b4x.com/android/forum/threads/how-to-open-pdf-file-by-specific-intent.74132/#post-471419 B4i Question [Solved] Open PDF with DocumentInteraction - roumei (first post)    Jan 12, 2021   (2 reactions) Don't anchor the DocumentInteraction to a RootPanel. Use another view instead:
di.OpenFile(Button1) B4A Question open file pdf in folder DirAssets - walterf25 (first post)    Jul 01, 2015   (1 reaction) I don't think you can open a file from the File.DirAssets folder, you may want to copy the file to either the internal folder or your package name folder.
Cheers,
Walter B4A Question open pdf from dirRootExternal - bernardR    Jan 13, 2022 Hello,
I have an app no-google for Android 10 with permission WRITE_EXTERNAL_STORAGE.
I have read:
https://www.b4x.-pdf-file.132421/
https://www.b4x.-fileprovider-share-files.97865/
and I have modified the manifest for fileProvider
I need open the file test.pdf in DirRootExternal.
It not works.
B4J Question Open a pdf file directly in a browser using streaming output - a.consorti (first post)    May 15, 2023 I tried this:
Sub Handle(req As ServletRequest, resp As ServletResponse)
Dim fileData() As Byte = File.ReadBytes(File.DirTemp,"temp.pdf")
Response.ContentType= "application/pdf"
Response.OutputStream.WriteBytes(fileData,0,fileData.Length)
End Sub Page: 1   2   3   4   5   6   7   Powered by ColBERT |