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.

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


With Regards,

Sandeep.

PrintFunctionality.oap

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


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.

Hi,

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

Read the question again

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.

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


With Regards,

Sandeep.

PrintFunctionality.oap

Simple and effective solution.

 Best Regards

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.