package Ġuk . gov . just ice . digital . h mp ps . manager ec alls api . documents . recall notification Ċ Ċ import Ġorg . springframework . beans . factory . annotation . Autowired Ċ import Ġorg . springframework . stereotype . Service Ċ import Ġreactor . core . publisher . Mono Ċ import Ġuk . gov . just ice . digital . h mp ps . manager ec alls api . documents . ImageData . Companion . recall Image Ċ import Ġuk . gov . just ice . digital . h mp ps . manager ec alls api . documents . Pdf Document Generation Service Ċ import Ġuk . gov . just ice . digital . h mp ps . manager ec alls api . documents . Re call Image . H mp ps Logo Ċ Ċ @ Service Ċ class ĠLetter To Prob ation Service ( ĊĠ Ġ@ Autowired Ġprivate Ġval Ġletter To Prob ation Generator : ĠLetter To Prob ation Generator , ĊĠ Ġ@ Autowired Ġprivate Ġval Ġpdf Document Generation Service : ĠPdf Document Generation Service , Ċ ) Ġ{ ĊĠ Ġfun Ġgenerate Pdf ( recall Notification Context : ĠRe call Notification Context ): ĠMono < ByteArray > Ġ= ĊĠĠĠ Ġpdf Document Generation Service . generate Pdf ( ĊĠĠĠĠĠ Ġletter To Prob ation Generator . generate Html ( recall Notification Context . get Letter To Prob ation Context ()), ĊĠĠĠĠĠ Ġrecall Image ( H mp ps Logo ) ĊĠĠĠ Ġ) Ċ } Ċ