outline_pdf: Extract the outline from pdf toc, and output as Markdown

Description Usage Arguments Value Examples

View source: R/experimental.R

Description

Extract the outline from pdf toc, and output as Markdown

Usage

1
outline_pdf(input_toc)

Arguments

input_toc

Character. The table of contents (TOC) of a pdf file, extracted by pdftools::pdf_toc().

Value

Character, showing the TOC in Markdown.

Examples

1
2
3
input <- file.path(R.home(), "doc/manual/R-intro.pdf")
input_toc <- pdftools::pdf_toc(input)
outline_pdf(input_toc)

pzhaonet/mindr documentation built on Nov. 23, 2021, 7:24 p.m.