Skip to main content

pdf_page

Function pdf_page 

Source
pub fn pdf_page(path: &str, page: usize) -> Vec<String>
Expand description

What the tab runs to draw page page (counted from 1) of the PDF at path, a path inside the container.

poppler renders the page to a PNG on standard output and chafa draws that the way picture draws a picture. Two programs piped into each other need a shell to join them, and that is all the shell does: its script is the same for every file and every page, and the page ($1) and the path ($2) reach it as positional arguments, so no shell ever reads the file’s name as part of a command.