Hi ArunKumar,
use @media Print{
add the required classes or particular div name here which you need to print aswhat are the contents you are passing in the pdf document.
}
You can do the stylings aswell in the particular @media print function as the styles for it only applicable when you print the document itself it wont be affected in the application.
checkout the link for the more practical knowledge.
https://codepen.io/christopherkade/pen/XLzgEp
hope this helps.