I found this repository and wanted to give it a try:
https://github.com/LanceMcCarthy/CustomMauiExamples/tree/main?tab=readme-ov-file#printing
I cloned the Project to my visual studio 2022 and ruan the project, it can print in Windows Platform.
Then I tried to run on Android (tested on both emulator and my local smartphone), when I try printing it breaks and throw this exception:
System.IO.DirectoryNotFoundException: ‘Could not find a part of the path ‘/data/user/0/com.companyname.documentprinting/files/Documents/pdfvieweroverview.pdf’.’
sounds like the PDF File (residing in resourcesraw) can not seen for android! is there anyway to overcome this issue? any help is highly appreciated.
Cheers!