Table of Contents

TTMSFNCPrinter Class

Cross-platform printer that sends paginated content to the system print spooler or platform PDF renderer. Used internally by TTMSFNCGraphicsPrintIO to deliver print jobs across Windows, macOS, iOS, and Android targets.

API unit family: TMSFNCPrinters

Syntax

TTMSFNCPrinter = class

Properties

Name Description
DPI Resolution of the active printer in dots per inch. Use this value to convert logical coordinates to physical page units.
Device Name of the active printer or output device. Returns the system default printer name on platforms where no explicit device is selected.
Graphics Drawing canvas for the current print page. Render text, shapes, and images to this TTMSFNCGraphics context to produce page content.
Orientation Page orientation for the print job. Set before calling BeginDoc; changing after BeginDoc has no effect on the current job.
PageHeight Height of the printable area in device pixels at the current DPI. Use this value to calculate vertical page boundaries.
PageNumber One-based index of the current page within the active print document. Increments automatically after each NewPage call.
PageWidth Width of the printable area in device pixels at the current DPI. Use this value to calculate horizontal page boundaries.
PrintCompleted True when the iOS print interaction controller has finished delivering the document to the system print subsystem. Read this from the completion handler to confirm the job was submitted.
PrintJobName Display name shown for this job in the Android print queue. Set this before calling BeginDoc to identify the document in the system print manager.
PrintSize Paper size for the print job on Android. Maps to standard ISO, JIS, and NA paper size identifiers exposed by the Android print framework.

Methods

Name Description
BeginDoc Starts a new print document and prepares the print context. Call before drawing any page content or calling NewPage. Must be paired with a matching EndDoc call.
EndDoc Completes the current print document and submits it to the system print spooler or PDF renderer. Call after the last page's content has been drawn.
NewPage Advances to the next page within an active print document. Call after drawing the current page's content and before drawing content for the next page.

Events

Name Description
OnDrawContent Callback invoked by the printer to draw page content. Assign a procedure that renders content via the Graphics property; called once per page during the print job.

Used by