dotnet / docfx

Static site generator for .NET API documentation.
https://dotnet.github.io/docfx/
MIT License
4.09k stars 867 forks source link

[Bug] PDF Footer search box appear #10414

Open JM2K69 opened 1 day ago

JM2K69 commented 1 day ago

Describe the bug In my docfx.json file

      "pdfCoverPage":"./pdf/cover.html",
      "pdfFooterTemplate":"./pdf/footer.html"

To Reproduce Steps to reproduce the behavior:

  1. pdfFooterTemplate content
    <div style="width: 100%; font-size: 12px;">
    <div style="float: right; padding: 0 2em">
    <span class="pageNumber"></span> / <span class="totalPages"></span>
    </div>
    </div>
  2. Build the site with docfx 2.78.1 pdf file have a searchbox on the footer

Image

The cover page works but not the footer. I was able to add image

  1. pdfFooterTemplate content

    <style>
    @media print {
        @page {
            margin: 0 !important;
        }
    
        body {
            -webkit-print-color-adjust: exact;
            -moz-print-color-adjust: exact;
            -ms-print-color-adjust: exact;
            print-color-adjust: exact;
        }
    }
    </style>
    <div style="width: 100%; font-size: 12px;">
    <div style="text-align: center; padding: 0 2em"><img
            src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFgAAAAfCAYAAABjyArgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAekSURBVGhD7Zlba1VXEMf3c6nBV7GgUFuTgEUttpQWFewHsE8tBVtLaemDtKJVahuvRMUqlaC1KmhqBSnejuaiuZkTTTR3k3h7VfDBvomfYLp+s/ecrLOyz86JCkp04M9Ze2bW7Oz/mjXrkkhEKqIoktd4/nDifpKH5rYmudxxSVo7W6Tjart0dnfK1etd0t3XLTcGrkvfUK/0D/fL4M0BGRoZlKHRoRiuPTgyIAPOhg++Pa4PffMuBrFaO1s1Nu9obGmQi5cvyIXmnJxvOifnGs8qzjackTMXT08bGK9KsJHblm+VK9c6pKsnL92915Ss/uE+JfDm2LCM3h6RsTujcuvuLbl9LwbtsTtjasNn0BFOH/oSo+t6XmMSOyQ513y+QDIET1OSo2JyXeaRgb2DvZqtkAaptTtrZcWnK2RGxQx/dBTosNXuqlXfm7du6qCQ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--- docfx 2.78.1 2024 © ---</b> <span class="pageNumber"></span> / <span class="totalPages"></span></div>

Image

Context (please complete the following information):

Additional context Add any other context about the problem here.