Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
Html2PDF table spacing issue after export as pdf

I am using these options for exporting html to pdf of html2pdf.

html2pdf(document.getElementById('pm-pdf'), {
      margin:       10,
      filename:     'PM.pdf',
      image:        { type: 'jpeg', quality: 0.98 },
      html2canvas:  { scale: 2, logging: true, dpi: 192, letterRendering: true },
      jsPDF:        { unit: 'mm', format: 'a3', orientation: 'portrait' }
    });

and this is the view of table in my application. and you can see its well designed. Before export in pdf

But when i export it as pdf it get padding from top as you can see in the picture.after export in pdf

Solutions I already tried.

  1. removed all classes except 'row' and 'col'
  2. removed table and implemented with simple label and adding border on it.
  3. html2canvas.

*table code only

<table class="table table-bordered">
            <tbody>
            <tr class="prnt" *ngFor="let component of routineJobData.pmComponents[title]; let i=index">
              <td>{{component.label}}:</td>
              <td>{{component.value}}</td>
            </tr>
            </tbody>
          </table>
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda