in printing/src/main/java/com/zachklipp/richtext/ui/printing/ComposePrintAdapter.kt [57:69]
override suspend fun onLayout(
oldAttributes: PrintAttributes?,
newAttributes: PrintAttributes,
extras: Bundle?
): PrintDocumentInfo {
pdfDocument = PrintedPdfDocument(activity, newAttributes)
// Don't bother trying to calculate the page count. The print manager will automatically get
// the count from the initial preview.
return PrintDocumentInfo.Builder(documentName)
.setContentType(CONTENT_TYPE_DOCUMENT)
.build()
}