Yes, I do it all the time.
You can check out this video: 5CS TBX PDF and Pandoc Publishing: Libraries and Templates (Video).
The easiest way to do this is to set up a run command that sends your files to a command-line app like weasyprint. The key is to pass the exported string to the command line.
Here is a simple file.
TBX_SimplePDFExport_5Cs.tbx (154.0 KB)
If you do a lot of this, there are tons of edge cases to consider (note names, paths, outline depths, style sheets, header footers, and more), which my 5Cs library addresses, or you can deal with these manually using the SimplePDFExport_5Cs file I’ve supplied.
In this setup you’ll want to install Homebrew, use this from the command line /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
. Once Homebrew is installed, you’ll want to install weasyprint, i.e., run brew install weasyprint
. You then run which weasyprint
from the terminal to get is path, probably: /opt/homebrew/bin/weasyprint
if your are on Apple Silicon. You’ll also want to setup an export path (see the stamp).
This way you can export to PDF without leaving Tinderbox.
Whole setup process could take less than 10 minutes.