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 standards font (Courier, Helvetica, Times, Symbol and Zapfdingbats), style (Normal, Bold, Italic, Underline and StrikeThrough), encoding cp1252 draw text : single line of text at position x, y draw text flow... draw images (only PNG, all format that can be loaded with xui.loadbitmap) use pdf commands directly... Share My Creation [Web] [Tool] PDF-Lib XY Position Pointer - Precision Tool for Exact PDF Layouts - Mashiane    Sep 19, 2025   (3 reactions) Hi Fam If you are using PDF-Lib to create and update PDF documents, you will find this very invaluable, especially when you have to edit existing pdf documents. Open your pdf document and mouse over or click to find the co-ordinates. For PDF-Lib (0,0) is at bottom left. https://pdf-lib-pointer.vercel.app/ 167061 Why... In the realm of PDF document manipulation, precision is paramount... within a PDF requires accurate coordinate mapping. The PDF-Lib Pointer tool addresses this need... B4J Code Snippet [PyBridge] Create pdf with fpdf2 - Erel    Mar 26, 2025   (13 reactions) https://py-pdf.github.io/fpdf2/index.html This is a console app, based on the console template... HtmlToPDF (Html As Object, img As Object) As PyWrapper Dim Code As String = $" import fpdf def HtmlToPDF (Html, img): pdf = fpdf.FPDF() pdf.add_page() if not img is None: pdf.image(img, x=0, y=0, w=210, h=297) pdf.write_html(Html) return pdf.output() "$ Return Py.RunCode("HtmlToPDF", Array(Html, img), Code) End Sub 162922... Share My Creation make with B4J and openPDF - Gianni M    May 13, 2025   (8 reactions) a little example with openPDF class code coming soon... Share My Creation PDFBoxWrapper Class Module - show PDF-document in B4J - knutf    Mar 2, 2020   (27 reactions)   tags: Libraries, B4J PDF PDFBoxWrapper Cla PDFBoxWrapper is a Class Module that use PDFBox to view PDF-documents. The PDFBoxWrapper Class module need a Pane and a layout to show the PDF-document in the Pane. The Pane and the name of the layout must be specified as parameters to the initialize routine of the class. The layout must contain..." Button rotate pages 90degrees clockwise, named ButtonRotate Label for showing loaded PDF-document... libraries folder The PDFBoxWrapper Class module and a working layout for the PDF-viewer can be obtained... B4J Tutorial [XLUtils] Generate PDF reports - Erel    May 27, 2021   (16 reactions) 114085 XLUtils v1.13 adds support for converting workbooks to PDF. This is a Windows only feature and it relies on Excel being installed on the computer. Exporting to PDF is a matter of calling: Wait For (xl.PowerShellConvertToPdf(WorkbookFile, OutputPDF, SheetIndex, True)) Complete (Success As Boolean) You can also set the print area with Sheet.PrintArea and the print scaling with Sheet... converts it to a PDF document.... 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/
... B4i Tutorial Reading and Writing PDF Documents - Erel    Dec 17, 2014   (11 reactions)   tags: PDF reading and writing PDF documents. The Canvas object allows us to display existing PDF documents and to create new PDF documents. Displaying a PDF document First we need to load the PDF file. This is done with PDFDocument object: Dim pdf As PDFDocument pdf.Initialize(File.DirAssets, "example.pdf") The next step is to draw one of the pages with Canvas.DrawPDF: cvs.DrawPDF(pdf, 1... as the view's size. Note that the first page number is 1. That's it. A simple PDF reader... 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 library but I don't see combination of these code so I have made a lot of trials and errors and finally come out with a working example. GitHub: https://github.com/pyhoon/WebViewSharePDF-B4A... Page: 1   2   3   4   5   6   7   |