Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] PDF Header/Footer template path parsing #10193

Open
levitvas opened this issue Sep 6, 2024 · 1 comment
Open

[Bug] PDF Header/Footer template path parsing #10193

levitvas opened this issue Sep 6, 2024 · 1 comment
Labels
bug A bug to fix pdf Produce PDF as the output format

Comments

@levitvas
Copy link

levitvas commented Sep 6, 2024

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

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
@levitvas levitvas added the bug A bug to fix label Sep 6, 2024
@filzrev
Copy link
Contributor

filzrev commented Sep 7, 2024

The reported problem appears to be the same as #9990.
It's fixed by #10099, but not included in the latest released (v2.77.0) version.

@yufeih yufeih added the pdf Produce PDF as the output format label Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A bug to fix pdf Produce PDF as the output format
Projects
None yet
Development

No branches or pull requests

3 participants