Need help in Noprint Macro

I need help in developing a macro in confluence cloud which hides text from printed output in confluence cloud.
I have managed to develop a text input macro as shown in the screenshot below:


All I want is to set the functionality of hiding the print option after publishing the page and I am calling it as a noprint macro
I tried to search the functionality but could not be able to finf any solution/workaround/option for confluence cloud

Any guidance would be appreciated.
Thanks

“Print” as in not display the macro contents in a PDF export?

I haven’t played with it but there’s an export function from which you could return a blank <div/>: https://developer.atlassian.com/platform/forge/manifest-reference/modules/macro/

@AshaGoyal did you ever manage to develop this macro?

I am searching everywhere for a simple tutorial, how to add a text area and set the DIV to NoPrint, but all I find are people asking for help or third party plugin sellers.

I did the example tutorials from Atlassian (https://developer.atlassian.com/platform/forge/build-a-hello-world-app-in-confluence/) but I get into issues when trying to add Custom UI/parsing .css.