0

Im building SPA with React&Firebase ,

Im using Firebase storage to save the images that the user is sending.

how can i print the images ? can i do it directly from Firebase console or there is any extension that can help me in this situation ?

  • 2
    "how can i print the images ?" - **you can't**. Websites cannot unilaterally send print-jobs to the user's printer(s) for what should be very obvious reasons. You can only trigger the print-preview window (and only if the user interacts with your web-page at least once after it loads). – Dai Nov 16 '21 at 13:39
  • Hi Dai thank you for the comment , Can you suggest me maybe another service ? the SPA is very simple . the user is uploading a photo (maybe couple of photos) and then i print the photo and send him the photo – Liad Ohayon Nov 16 '21 at 15:32
  • There is no alternative: it's a safety and security limitation built-in to the web. – Dai Nov 16 '21 at 16:37
  • @Dai , I thought about a solution , i will render all the images and then use Javascript to print . I noticed about interesting answers here : https://stackoverflow.com/questions/2909033/using-javascript-to-print-images – Liad Ohayon Nov 17 '21 at 16:03

0 Answers0