Package-level declarations
Types
A PrintDocumentAdapter that prints a composable function. The composable content is paginated as best-effort to avoid cutting off composables in the middle (see Paged).
A PrintDocumentAdapter that exposes onLayout and onWrite functions as suspend functions that will automatically invoke the correct callback methods.
After the first frame of a Paged is committed, the breakpoints and page offsets are calculated and passed to a callback via an instance of this interface.
Provides the print method to trigger printing Printable composables. Create one by calling rememberPrintableController.
Functions
Returns a Modifier that will hide the composable it's applied to when printing.
Divides a composable into discreet pages. The content is measured with unbounded height, and then displayed using the current constraints, starting at pageIndex (the content is translated up). The bottom of the content is clipped, but a best-effort attempt is made to not cut any individual composables off in the middle. When the initial "pagination" measurement is complete, onPageLayout is invoked with the total page count.
Renders content as-is, and will allow the content to be printed with PrintableController. To start a print job, call PrintableController.print.
Creates and remembers a PrintableController that can be passed to Printable to start print jobs.
Properties
Returns true if a Printable is being used to print the composition somewhere up in the tree.