PdfDocument can be used to create Pdf files with one or more pages. Example: 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 DimoutAsOutputStream = File.OpenOutput(File.DirRootExternal, "1.pdf", False)
pdf.WriteToStream(out)
out.Close pdf.Close
Returns the canvas that is used to draw on the current page. Note that you should not use DIP units with this canvas. Canvas.Bitmap will return a stub bitmap.
Close
Closes the document.
FinishPage
Finalizes the page drawings.
Initialize
StartPage (WidthAsInt, HeightAsInt)
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).
The printer object allows printing bitmaps, html strings and WebView content using the system printing feature. This is an 'Activity Object', it cannot be declared under Sub Process_Globals.
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.