Remove Printed Page Header
Environment
Product | PDFViewer for Blazor |
Description
When printing a PDF file using the PDFViewer for Blazor, an "about:blank" title appears at the top and bottom of the printed paper. This article demonstrates how to remove the "about:blank" label and any other header or footer information from the print output.
Solution
The PDFViewer component utilizes the standard browser printing engine, which includes an option to hide the header and footer. These sections often contain the application's name, printing timestamp, page numbers, and the URL, including "about:blank". To remove this information, perform the following steps upon initiating a print:
- Click on the Print button in PDFViewer to open the print dialog.
- Select More settings in the print dialog.
- Uncheck the box labeled Headers and footers.
By unchecking the Headers and footers option, you will remove the "about:blank" label and any other default header or footer information from your printed output.