New issue
Advanced search Search tips

Issue 840455 link

Starred by 16 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 3
Type: Feature



Sign in to add a comment

Provide an option to generate a TOC out of <h1><h2> etc. when generating a PDF

Reported by ognian.t...@ogi-it.com, May 7 2018

Issue description

Chrome Version       : 	68.0.3423.0 (Offizieller Build) canary (64-Bit)
OS Version: Mac OS X 10.13.4
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari: FAIL
    Firefox: FAIL
    IE/Edge: FAIL

What steps will reproduce the problem?
1.Select Print Dialog
2.Select Save as PDF
3.Select More Options

What is the expected result?
Find an Option to generate a TOC (Table of contents) out of the Headings(h1-h7)

What happens instead of that?
There is no such option

Please provide any additional information below. Attach a screenshot if
possible.

For a discussion about why this feature is really needed see https://github.com/GoogleChrome/puppeteer/issues/1778
Sorry for posting this as a BUG but I couldn't find any suitable template. Actually me and other people from the linked puppeteer issue try to make this happen and we try to find the right upstream (sub)project where we could find a solution...
Thanks
Ognian

 
Components: Internals>Printing
Cc: halcanary@chromium.org
Labels: Needs-Triage-M68
Labels: -Type-Bug -Pri-3 Triaged-ET M-68 FoundIn-68 Target-68 OS-Linux OS-Mac OS-Windows Pri-2 Type-Feature
Status: Untriaged (was: Unconfirmed)
As per comment #0, it seems to be a feature request as the user want to have an Option to generate a TOC (Table of contents) out of the Headings(h1-h7) at print dialog.
Hence, marking it as untriaged for further inputs from dev team.

Thanks...!!
Cc: dmazz...@chromium.org

Comment 6 by weili@chromium.org, May 23 2018

Labels: -Pri-2 -M-68 -Triaged-ET -Target-68 -Needs-Triage-M68 Pri-3
Status: Available (was: Untriaged)
This is a non-regression feature request.
I'm using Puppeteer as a pdf generator in my project, this option can be helpful.
Here's the status of this:  SkPDF [*] now lets you add this information to the PDF.  Chrome does not yet use this new API.

[*] https://skia.googlesource.com/skia/+/master/include/docs/SkPDFDocument.h
Now the question is who should be populating the StructureElementNode tree. Blink? Printing code?

Comment 10 by halcanary@google.com, Today (18 hours ago)

Cc: -halcanary@chromium.org halcanary@google.com

Sign in to add a comment