178
Views
11
Comments
Solved
How to Send PDF file to Printer?
Question
Application Type
Reactive

Hi ,

I need to send a file(PDF) to Printer, I'm getting Base64 data from API so I'm converting it to Binary Data now I need to send this to printer as PDF, if it's in window we can print it easily using window.print, but how to do the same with the file having in hand.


Thanks,

Sai.

2025-03-19 01-45-51
Sandeep Kumar Kolli
Solution

Hi attaching a sample OAP , take a look & let us know if this fulfills your requirement or not.


With Regards,

Sandeep.

PrintFunctionality.oap
2021-09-21 09-26-31
Aadhavan Shanmugam

Hi @Jeevan Sai,

For this, you can use PDF Viewer plugin to view pdf on the current screen. Then it is easy for you to print the current page using OnReady javascript (window.print()).

https://www.outsystems.com/forge/component-overview/10420/pdf-viewer-reactive

https://www.outsystems.com/forge/component-overview/10220/pdf-viewer-binary

https://www.outsystems.com/forge/component-overview/7529/pdfjs-viewer-reactive

Thanks, Aadhavan S


2025-03-19 01-45-51
Sandeep Kumar Kolli

Hello Sai,

So your requirement is like, you'll be having a button on the page and up on clicking the button the binary data already having will be sent to printer directly without showing it on the web page or Preview in web page, right?



With Regards,

Sandeep.

2021-09-21 09-26-31
Aadhavan Shanmugam

Hi,

He clearly mentioned "if it's in window we can print easily"

Read the question again

2021-06-26 17-42-52
Jeevan Sai Sabbavarapu

Yeah that's my requirement, and the above links are not for direct use case of print instead showing preview of PDF file.


Thanks,

Sai.

2025-03-19 01-45-51
Sandeep Kumar Kolli
Solution

Hi attaching a sample OAP , take a look & let us know if this fulfills your requirement or not.


With Regards,

Sandeep.

PrintFunctionality.oap
2021-06-26 17-42-52
Jeevan Sai Sabbavarapu
UserImage.jpg
Fedrick Satria

Hi Sandeep,

would you provide the oml for traditional web version please... very appreciate it


Thanks and Regards

2014-10-21 20-15-17
Alberto Ferreira

Simple and effective solution.

 Best Regards

2025-03-19 01-45-51
Sandeep Kumar Kolli

Thanks Alberto Ferreira.


With Regards,

Sandeep.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.