-
Is it possible to convert base64string to a pdf file and print it on a local network printer from uno? Also this might not be the brightest question but do I have to save the file on the device or can I just create it in the memory and print it? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
So, I think I asked the question too early without doing enough research, however if anyone needs to print pdf documents from winui, these are the articles that you need: To briefly summarize, you need to create a pdf document from a stream, then create a bitmap image from every single page in the pdf and after that you can create Image controls from these bitmap images and print them according to the Microsoft article I mentioned above. |
Beta Was this translation helpful? Give feedback.
-
Have you ever print it on wasm? @DavidM29 |
Beta Was this translation helpful? Give feedback.
So, I think I asked the question too early without doing enough research, however if anyone needs to print pdf documents from winui, these are the articles that you need:
Printing from winui
Display pdf in xaml
To briefly summarize, you need to create a pdf document from a stream, then create a bitmap image from every single page in the pdf and after that you can create Image controls from these bitmap images and print them according to the Microsoft article I mentioned above.