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

TOC superimposed on PDF output [Bug] #9653

Open
AndyEdmonds opened this issue Jan 25, 2024 · 3 comments
Open

TOC superimposed on PDF output [Bug] #9653

AndyEdmonds opened this issue Jan 25, 2024 · 3 comments
Labels
bug A bug to fix pdf Produce PDF as the output format

Comments

@AndyEdmonds
Copy link

Describe the bug
The output generated contains the table of contents data superimposed on each page.

To Reproduce
Steps to reproduce the behavior:

  1. ...
  2. ...

Expected behavior
Table of contents occurs once at start of doc.
Context (please complete the following information):

  • OS: Windows 11
  • Docfx version: 2.75.1

Additional context
Add any other context about the problem here.
docfx.json
badPdf

@AndyEdmonds AndyEdmonds added the bug A bug to fix label Jan 25, 2024
@yufeih yufeih added the pdf Produce PDF as the output format label Jan 26, 2024
@yufeih
Copy link
Contributor

yufeih commented Jan 27, 2024

What template are you using? Seems like a template problem. Did you see the same PDF output if you visit and print the HTML page as PDF?

@AndyEdmonds
Copy link
Author

I Hadn't specified a template. my docfx.json is uploaded. If I specify the modern template then the problem goes. Still a bug, though.

@evooki
Copy link

evooki commented Feb 29, 2024

I have the same issue! If I want to build the pdf of my generated website with the default template then I get this superimposed pdf documentation (current toc superimposed with content)! I changed the template section in my docfx.json file to default and modern then the pdf generation works as expected!

wrong pdf generation with docfx.json like:
"template": [ "default", ],

right pdf generation with docfx.json like:
"template": [ "default", "modern" ],

is there a fix in the next time?

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