Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

467
Views
How to open blobURL and print automatically?

I have the codes to open the blobURL in a new window but I want it to open the print window automatically without having to click on the print button. Please advise. The current code is now printing the old window which is not what I want to print. Id want to print the new window which is the pdf file.

                    var pdfExpComplete = (args) => {
                        args.promise.then((e) => {
                            var blobURL = URL.createObjectURL(e.blobData);
                            window.open(blobURL);
                            window.print(blobURL);
                    });

                   $scope.pdfExpComplete = function (args) {
                      args.promise.then(function (e) {
                      var blobURL = URL.createObjectURL(e.blobData);
                      window.open(blobURL);
                      });
                   };
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

We can open the bloburl and print the document automatically by using the below code snippet, please try the below code and let us know the result.

var blobURL = URL.createObjectURL(e.blobData);
window.open(blobURL).print();

https://www.syncfusion.com/kb/11941/how-to-open-a-pdf-in-a-new-tab-or-download-a-pdf-document-using-ajax-call

Note: I work for Syncfusion.

Regards,

Gowthamraj K

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!