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

292
Views
Angular- html2pdf is not working in firefox

I was trying to make a pdf generator for my dashboard. It was working fine in chrome, but in firefox and IE, the graphs break. Also, I am unable to view certain images. What could be the reason? This is in Chrome and This is in Firefox

this is my code:

download(){
     const value = this.routes.url;
     const segment = /\/portal\/vc-portal\/(.+)/.exec(value)[1];
     const filename = segment.replace('/', '_').replace('-', '_');

     const element = document.getElementById('router') as HTMLElement;
     const opt = {
     pagebreak:    {mode:['avoid-all']},
     filename:     filename + '.pdf',
     image:        { type: 'jpeg', quality: 1},
     html2canvas:  { scale: 2 },
     jsPDF:        { unit: 'pc', format: 'a3', orientation: 'portrait' }
     };

    html2pdf().set(opt).from(element).save();

    }

How could something, work so good in one browser not work in the other?

This is the code of the circle-progress:

        <div class="progress-custom">
                <svg class="progress-circle" width="220px" height="200px" xmlns="http://www.w3.org/2000/svg">
                    <circle class="progress-circle-back"
                            cx="85" cy="85" r="80"></circle>
                    <circle class="progress-circle-prog" [ngClass]="{'progress-color-purple': showInPurple}"
                            cx="85" cy="85" r="80" [ngStyle]="{'stroke-dasharray': progress * 5.04 + ', ' + 999}"></circle>
                </svg>
                  <div class="progress-text">
                        <ng-content select="[ktCircleProgressBody]"></ng-content>
                  </div>
            </div>
</div>
about 4 years ago · Juan Pablo Isaza
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!