You can export an entire notebook as a PDF document ready for printing. There are two ways depending on how you run WLJS Notebook:
Navigate to the file menu and click Print, or locate it from the command palette:
Export your notebook as an HTML File, open it, and use the browser's native printing option.
Page Breaks
To manually insert page breaks, use the PageBreakAbove or PageBreakBelow symbols inside Markdown cells, for example:
.md
<PageBreakAbove/>
Export Slides
Use the dedicated option for rendering presentations (slides) into a single PDF document: Slides
Export Individual Graphs and Expressions
To export individual expressions, use the default Export function with a PDF extension in the file name:
Plot[x, {x, 0,1}];
Export["filename.pdf", %]
Options
For the PDF format, there are a few extra options you can provide:
"Crop"- by default isTrue, which trims white regions"Window"- by default isCurrentWindow[], which specifies the window object where to render"ExposureTime"- time delay to wait before capturing (to let the layout settle), the default is 2.5 seconds"Landscape"- printing mode, by default isTrue
When Export is used with "PDF" it internally uses blocking functions. Avoid using it in timers like SetTimeout, external event handlers such as InputButton or Button, or within AsyncFunction. Use ExportAsync