dotnet / dotnet/docfx

[Bug] In 2.78.x PDF Footer search box appear when search is enable in docfx.json

Open
#10,414 8 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 9m
Merged PRs (30d)
11

Description

**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
```



/


```
3. **Build** the site with **docfx 2.78.1**
pdf file have a searchbox on the footer

![Image](https://github.com/user-attachments/assets/34a8f8a9-95dc-423b-b104-c9ad35a38fc6)

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

1. **pdfFooterTemplate** content
```

@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;
}
}



--- docfx 2.78.1 2024 © --- /

```

![Image](https://github.com/user-attachments/assets/61453f19-6feb-4b93-86e2-f6d63e8d2041)

**Context (please complete the following information):**
- OS: Windows 11
- Docfx version: [2.78.1]

**Additional context**
Add any other context about the problem here.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.