1.06 anywheresoftware.b4a.objects.PdfDocumentWrapper PdfDocument PdfDocument can be used to create Pdf files with one or more pages. Example:<code> 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, Colors.Yellow, "CENTER") pdf.FinishPage Dim out As OutputStream = File.OpenOutput(File.DirRootExternal, "1.pdf", False) pdf.WriteToStream(out) out.Close pdf.Close</code> process Initialize void Close Closes the document. void WriteToStream Writes the document to the output stream. void out java.io.OutputStream FinishPage Finalizes the page drawings. void StartPage Starts a new page. Make sure to call FinishPage when you are done drawing. Width / Height - Page dimension measured in Postscript (1/72th of an inch). void Width int Height int Canvas anywheresoftware.b4a.objects.drawable.CanvasWrapper Returns the canvas that is used to draw on the current page. Note that you <b>should not</b> use DIP units with this canvas. Canvas.Bitmap will return a stub bitmap. anywheresoftware.b4a.objects.PdfDocumentWrapper.Printer Printer The printer object allows printing bitmaps, html strings and WebView content using the system printing feature. activity Finish Initialize void ba anywheresoftware.b4a.BA EventName java.lang.String PrintWebView Prints the WebView content. Make sure to wait for the PageFinished event. void JobName java.lang.String WebView android.webkit.WebView PrintHtml Prints the provided html string. void JobName java.lang.String Html java.lang.String PrintBitmap Prints a bitmap. The system printing dialog will appear. JobName - The print job name. Bitmap - Bitmap to print. Fit - If true then the bitmap will be scaled to fit, otherwise it will be scaled to fill and will be cropped. void JobName java.lang.String Bitmap android.graphics.Bitmap Fit boolean PrintSupported boolean 1.0 com.android.support:support-v4