Hi Mohd,
Please add below CSS in your screen as per below link -
https://www.outsystems.com/forums/discussion/69691/need-help-in-exporting-entire-webpage-to-pdf/
/* CSS for Reactive Printing */
@media all {
.page-break {
display: none;
}
}
@media print {
html, body {
height: initial !important;
overflow: initial !important;
-webkit-print-color-adjust: exact;
}
}
@media print {
.page-break {
margin-top: 1rem;
display: block;
page-break-before: auto;
}
}
@page {
size: auto;
margin: 20mm;
}

I have created a sample and its working.
https://personal-itafqtdv.outsystemscloud.com/PdfSample/Home
Thanks
Vinod