PrintJobSettings constructor

PrintJobSettings({
  1. bool? animated = true,
  2. bool? canSpawnSeparateThread = true,
  3. bool? collate,
  4. PrintJobColorMode? colorMode,
  5. int? copies = 1,
  6. bool? detailedErrorReporting = false,
  7. PrintJobDuplexMode? duplexMode,
  8. String? faxNumber,
  9. int? firstPage,
  10. double? footerHeight,
  11. String? footerUri,
  12. PrintJobRenderingQuality? forceRenderingQuality,
  13. bool? handledByClient = false,
  14. bool? headerAndFooter = true,
  15. double? headerHeight,
  16. String? headerTitle,
  17. PrintJobPaginationMode? horizontalPagination,
  18. bool? isHorizontallyCentered = true,
  19. bool? isVerticallyCentered = true,
  20. PrintJobDisposition? jobDisposition,
  21. String? jobName,
  22. WebUri? jobSavingURL,
  23. int? lastPage,
  24. EdgeInsets? margins,
  25. double? maximumContentHeight,
  26. double? maximumContentWidth,
  27. PrintJobMediaSize? mediaSize,
  28. bool? mustCollate,
  29. int? numberOfPages,
  30. PrintJobOrientation? orientation,
  31. PrintJobOutputType? outputType,
  32. double? pageHeight,
  33. PrintJobPageOrder? pageOrder,
  34. String? pageRanges,
  35. double? pageWidth,
  36. int? pagesAcross,
  37. int? pagesDown,
  38. int? pagesPerSide,
  39. String? paperName,
  40. PrintJobDialogKind? printDialogKind,
  41. String? printerName,
  42. PrintJobResolution? resolution,
  43. double? scalingFactor,
  44. bool? shouldPrintBackgrounds,
  45. bool? shouldPrintHeaderAndFooter,
  46. bool? shouldPrintSelectionOnly,
  47. bool? showUI = true,
  48. bool? showsNumberOfCopies = true,
  49. bool? showsPageRange = true,
  50. bool? showsPageSetupAccessory = true,
  51. bool? showsPaperOrientation = true,
  52. bool? showsPaperSelectionForLoadedPapers = false,
  53. bool? showsPaperSize = true,
  54. bool? showsPreview = true,
  55. bool? showsPrintPanel = true,
  56. bool? showsPrintSelection = true,
  57. bool? showsProgressPanel = true,
  58. bool? showsScaling = true,
  59. int? time,
  60. PrintJobPaginationMode? verticalPagination,
})

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Windows WebView2

Implementation

PrintJobSettings({
  this.animated = true,
  this.canSpawnSeparateThread = true,
  this.collate,
  this.colorMode,
  this.copies = 1,
  this.detailedErrorReporting = false,
  this.duplexMode,
  this.faxNumber,
  this.firstPage,
  this.footerHeight,
  this.footerUri,
  this.forceRenderingQuality,
  this.handledByClient = false,
  this.headerAndFooter = true,
  this.headerHeight,
  this.headerTitle,
  this.horizontalPagination,
  this.isHorizontallyCentered = true,
  this.isVerticallyCentered = true,
  this.jobDisposition,
  this.jobName,
  this.jobSavingURL,
  this.lastPage,
  this.margins,
  this.maximumContentHeight,
  this.maximumContentWidth,
  this.mediaSize,
  this.mustCollate,
  this.numberOfPages,
  this.orientation,
  this.outputType,
  this.pageHeight,
  this.pageOrder,
  this.pageRanges,
  this.pageWidth,
  this.pagesAcross,
  this.pagesDown,
  this.pagesPerSide,
  this.paperName,
  PrintJobDialogKind? printDialogKind,
  this.printerName,
  this.resolution,
  this.scalingFactor,
  this.shouldPrintBackgrounds,
  this.shouldPrintHeaderAndFooter,
  this.shouldPrintSelectionOnly,
  this.showUI = true,
  this.showsNumberOfCopies = true,
  this.showsPageRange = true,
  this.showsPageSetupAccessory = true,
  this.showsPaperOrientation = true,
  this.showsPaperSelectionForLoadedPapers = false,
  this.showsPaperSize = true,
  this.showsPreview = true,
  this.showsPrintPanel = true,
  this.showsPrintSelection = true,
  this.showsProgressPanel = true,
  this.showsScaling = true,
  this.time,
  this.verticalPagination,
}) : printDialogKind = printDialogKind ?? PrintJobDialogKind.BROWSER;