ComposePrintAdapter
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).
Long blocks of text and subcompositions are not fully supported: the paginator will try to not split them, but if they don't fit on a page, they will be split arbitrarily.
See composeToPdf for details on how the composable is actually written to the PDF.
Parameters
The ComponentActivity used to create various printing resources.
The file name that will be reported to the printing system, e.g. to use as the default for the Save to PDF virtual printer.
A Modifier that will be applied to each individual page of the printed content. responsivePadding is a good choice.
The resolution to use for the Density
of the composable.
If true, horizontal lines are drawn at each breakpoint for debugging. False by default.
The CoroutineContext to interact with the composable and view system on.