i have print function in angular the number of pages shown in print modal is two when i…
- User
i have print function in angular the number of pages shown in print modal is two when i download it as pdf it saved as 3 pages why i want 2 page as in print popup
- Assistant
The discrepancy between the number of pages shown in the print modal and the number of pages saved in the PDF could be due to differences in the way the content is rendered for printing versus saving as a PDF.
When you print a document in the browser, it may adjust the layout and page breaks to fit the content within the printable area of the page. This could result in fewer pages being displayed in the print modal compared to when the same content is saved as a PDF, as the PDF may preserve the original page breaks and layout of the content.
To ensure that the PDF saved matches the layout and number of pages displayed in the print modal, you may need to adjust the page size, margins, and layout of the content in your Angular application to ensure consistency between the print and PDF output. Additionally, you may want to check if there are any styling or formatting differences that could be affecting the way the content is displayed in the print modal versus the saved PDF.