
Add a flag to request that a pdf document outline be generated from content headers when printing a pdf in headless mode. This also adds a generateDocumentOutline argument to Page.printToPDF in the devtools protocol. Skia support for emitting the outline landed in https://skia.googlesource.com/skia/+/5075f1572bfe4a70cf5423bf14baa005e33ec1e0 Bug: chromium:840455 Change-Id: Idb722ceac5d383d0191cae34b2004c3190a097f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5026474 Reviewed-by: Peter Kvitek <kvitekp@chromium.org> Reviewed-by: Alex Rudenko <alexrudenko@chromium.org> Reviewed-by: Lei Zhang <thestig@chromium.org> Reviewed-by: Dominic Farolino <dom@chromium.org> Commit-Queue: Ben Wagner <bungeman@chromium.org> Reviewed-by: Dmitry Gozman <dgozman@chromium.org> Cr-Commit-Position: refs/heads/main@{#1226110}
//pdf
contains the PDF plugin, its Blink-based replacement, as well as PDF
utility functions that leverage PDFium. It can use low-level components that
live below the content layer, as well as other foundational code like
//printing
. It should not use //content
or anything in //components
that
lives above the content layer. Code that lives above the content layer should
live in //components/pdf
, or in the embedder. All the code here should run in
sandboxed child processes.
TODO(crbug.com/1220865): Remove existing //content
dependencies.