B4A Library Printing and Pdf creation - Erel    May 18, 2020   (55 reactions)   tags: print, pdf, pdf print, Printing and Pdf This is an Android 4.4+ (API 19+) library. Its two main features are: 1. Creating Pdf documents with the PdfDocument object. 2. Printing with the Printer object. Lets start with PdfDocument. Dim pdf As PdfDocument pdf.Initialize pdf.StartPage(595, 842) 'A4 size pdf.Canvas.DrawLine(2, 2, 593 , 840, Colors.Blue, 4) pdf.Canvas.DrawText("Hello", 100, 100, Typeface.DEFAULT_BOLD, 30 / GetDeviceLayoutValues.Scale , Colors.Yellow, "CENTER") pdf.FinishPage Dim out... B4A Class [B4X] PDF Generator - B4X Cross Platform - Class 100% B4X Code - spsp    Jan 3, 2024   (56 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... B4A Code Snippet [B4X] [B4Xpages] PDF to Image (B4XBitmap) - Star-Dust    Aug 2, 2023   (10 reactions) I often needed to turn a PDF into an image, most of the time to have it printed on a thermal... an image with Windows / Android / iOs from a PDF file
NB. For Windows it is necessary to download.../android/forum/threads/pdfrenderer-v0-10-beta-create-your-own-pdf-viewer.49103/
... B4A Example WebViewSharePDF - aeric    Feb 20, 2025   (8 reactions) There are some examples on this forum for
1. saving Webview content as Bitmap,
2. creating PDF file using Printing library and
3. opening or sharing the PDF file to WhatsApp using FileProvider... B4A Code Snippet [B4X] Open PDF - Lucas Siqueira    Feb 19, 2025   (8 reactions)
Sub OpenPDF(dirFile As String, nameFile As String)
Try
#If B4A
' Platform...
' Configure the Intent to open the PDF
Dim docIntent As Intent
docIntent...)
docIntent.SetType("application/pdf")
docIntent.Flags = Bit.Or(1, 2) '... B4A Question Find out if the user's device has a PDF viewer? - Sergey_New    Apr 28, 2023 Please tell me how to find out if there is a PDF viewer on the user's device?... B4A Question How to insert Image in pdf file as 1.pdf? - Theera    Jul 6, 2025 For this line code as belows, Is there way inserting Image to be a part of 1.pdf, or not?
printer.PrintHtml("job", $"<img src="${WebViewAssetFile("smiley.png"... B4A Example Share a PDF with a specific WhatsApp number. - Zirfer    May 15, 2023   (14 reactions) from a client. I needed to send a PDF to a specific number in whats app. After two days, i finally... cPDF for create the PDF file. 'These are my functions that im currently using Sub savePDF(apdf As cPDF,afile As String,acompress As Int) Dim folder As String folder=Starter.fFileProvider.SharedFolder apdf.saveToFile(folder,afile,acompress) End Sub Sub openPDF(afile As String....ResolverActivity") in.SetType("application/pdf") StartActivity(in) End Sub Sub sharePDF... B4A Question Photo to PDF - AlpVir    Apr 5, 2025 it) a PDF document that includes only and exclusively this photo.
There are no problems with the photo but the part that transforms the jpg image into PDF is unknown to me. Which of the many libraries... B4A Question Selecting an application for viewing pdf files. - Sergey_New    Mar 24, 2025 I check which applications installed on the device can view pdf files:
Sub openPdf
Private in As Intent
in.Initialize(in.ACTION_VIEW, "file://")
in.SetType("application/pdf... Page: 1   2   3   4   5   6   7   |