Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 1.42 KB

pdfviewer-remove-print-header.md

File metadata and controls

34 lines (27 loc) · 1.42 KB
title description type page_title slug tags res_type ticketid
Remove Printed Page Header
Learn how to remove the header/footer information when printing a PDF document in PDFViewer for Blazor.
how-to
How to Remove the Header Label
pdfviewer-kb-remove-print-header
pdfviewer, print, headers, footers
kb
1681329, 1617601,

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:

  1. Click on the Print button in PDFViewer to open the print dialog.
  2. In the print dialog, click on More settings.
  3. 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.