Why html2pdf generator is leaving gap and generating 1 extra page upon print

Viewed 582
1 Answers

For the first problem, you don't need to add CSS class for A4.vue. Rather then, you can add this CSS for A4 page :


@page {
  size: A4 portrait;
  margin: 16mm;
  font-family: Arial, sans-serif;
  font-size: 10pt;
}
@page landscape {
  size: A4 landscape;
}

@page portrait {
  size: A4 portrait;
}

For the 2nd problem, I don't get your question properly. I think you might not include the full A4_no2.vue

See the sandbox. It may help you.

Related