PlutoPDF.jl icon indicating copy to clipboard operation
PlutoPDF.jl copied to clipboard

Don't let your printer miss out on the fun

PlutoPDF.jl

Export Pluto notebooks to PDF automatically!

Installation

From the Julia REPL, PlutoPDF.jl can be installed with the following:

import Pkg; Pkg.add("PlutoPDF")

Usage

From within Julia:

import PlutoPDF
PlutoPDF.pluto_to_pdf("notebook.jl")

Screenshots

You can also use PlutoPDF to take screenshots of all notebook cells!

import PlutoPDF
pdf_path = "notebook.pdf"
screenshots_dir = "notebook_screenshots"

PlutoPDF.pluto_to_pdf("notebook.jl", pdf_path, screenshots_dir)

Development

When developing, it's nice to have the node_modules folder locally. Navigate to the node directory and run npm install.

If you don't have npm, then run julia --project and then

import PlutoPDF
PlutoPDF.build_node(joinpath(pwd(), "node"))