nextcloud / nextcloud/text

printing to pdf: no table of content automatically created

Open
#7,554 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature: printing
Dominant language
JavaScript
Stars
659
Forks
133
Avg merge
1d 20h
Merged PRs (30d)
110

Description

To Reproduce
Steps to reproduce the behavior:

  1. have multi-page markdown document with different headings and -levels
  2. ctrl + p
  3. print to pdf
  4. in a pdf reader, go to sidebar > contents, see that no content overview is created, only page previews

Expected behavior

  • using the headings, a table of contents inside the pdf is automatically created (most pdf viewers show this in the left sidebar)

Server details:

  • Nextcloud version: "31.0.8"
  • cloud.nextcloud.com

Client details:

  • OS: Linux Mint
  • Browser: Firefox 141.0.3
  • Device: laptop

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue provides a browser reproduction using a multi-page Markdown document and Firefox's print-to-PDF flow, but it names no source files or tests. Start by reproducing the missing PDF contents outline, then trace the document printing flow. Done means headings produce a navigable contents outline in the generated PDF.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.