dotnet / dotnet/docfx

[Bug] PDF Header/Footer template path parsing

Open
#10,193 1 comment 0 reactions 0 assignees View on GitHub
pdf
Dominant language
C#
Stars
4.4k
Forks
890
Avg merge
2h 11m
Merged PRs (30d)
10

Description

When specifiying a relative path to an HTML file containing the footer/header path, it instead puts the path string itself as the header/footer in the PDF.

My file structure:
```
/Docfx
├── docfx.json
├── pdf_templates/
│ └── header.html
└── _site/
```

Image of the bug:
![image](https://github.com/user-attachments/assets/b5c7a2f0-2a75-4432-b29b-02815f24ef1d)

**To Reproduce**
Steps to reproduce the behavior:
1. Create an HTML template
2. Link it in the docfx.json ("pdfHeaderTemplate": "pdf_templates/header.html")
3. Open the PDF and see

**Expected behavior**
Expected to see the provided Footer/Header template

**Context**
- OS: Windows
- Docfx version: Nugget 2.77.0

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.