_       _       
  (_) ___ | |_ ____
  | |/ _ \| __|_  /
  | | (_) | |_ / / 
 _/ |\___/ \__/___|
|__/               

Converting a JessyInk presentation to PDF

The exported zip file contains a set of PDF files (one per slide). First, we unpack the individual PDF files:

unzip TU805_guest_lecture_23Feb2024.zip

We'll be using Ghostscript to combine the individual PDFs into a single multi-page PDF document. To put together the requires "gs" command line, we need to generate a list of the PDF filenames in the correct order and with any space characters within filenames escaped with backslashes. This turned out to be a little bit tricky, but in the end I used this:

echo `ls -t -r -b`

which produced the following text...

Faraday\ Xmas\ Lecture.pdf Standard\ Model.pdf History\ Book.pdf Faraday\ Lab.pdf Maxwell.pdf Maxwell\ Eqns.pdf Static\ Cat.pdf Power\ Information.pdf Three\ Gorges\ Dam.pdf Fugaku.pdf Control.pdf Rocket.pdf Neural\ Net.pdf FinTech.pdf CEOs.pdf Tony\ Stark.pdf Gene\ Cernan.pdf Lego\ ZX\ Spectrum.pdf London\ Calling.pdf NRH\ new\ building.pdf Natterbox.pdf Accelerometer\ photo.pdf Accelerometer\ signals.pdf Wii\ and\ Smartphone.pdf Instrumentation\ Amp.pdf Biopotential\ breadboard.pdf Neuron.pdf Biopotential\ recording\ system.pdf Lead\ I\ ECG.pdf Noisy\ ECG.pdf EOG\ electrodes\ and\ graph.pdf TPV.pdf Rotext.pdf Eye\ piano.pdf EEG\ signals.pdf VEP\ signal\ and\ checker.pdf JB\ stimulus.pdf Smartphone\ and\ Kinect.pdf

I copied and pasted that text into a Ghostscript command to merge the PDF pages into a single document:

gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=OUTPUT.pdf Faraday\ Xmas\ Lecture.pdf Standard\ Model.pdf History\ Book.pdf Faraday\ Lab.pdf Maxwell.pdf Maxwell\ Eqns.pdf Static\ Cat.pdf Power\ Information.pdf Three\ Gorges\ Dam.pdf Fugaku.pdf Control.pdf Rocket.pdf Neural\ Net.pdf FinTech.pdf CEOs.pdf Tony\ Stark.pdf Gene\ Cernan.pdf Lego\ ZX\ Spectrum.pdf London\ Calling.pdf NRH\ new\ building.pdf Natterbox.pdf Accelerometer\ photo.pdf Accelerometer\ signals.pdf Wii\ and\ Smartphone.pdf Instrumentation\ Amp.pdf Biopotential\ breadboard.pdf Neuron.pdf Biopotential\ recording\ system.pdf Lead\ I\ ECG.pdf Noisy\ ECG.pdf EOG\ electrodes\ and\ graph.pdf TPV.pdf Rotext.pdf Eye\ piano.pdf EEG\ signals.pdf VEP\ signal\ and\ checker.pdf JB\ stimulus.pdf Smartphone\ and\ Kinect.pdf

Finally, rename and view:

mv OUTPUT.pdf TU805_guest_lecture_23Feb2024.pdf
atril TU805_guest_lecture_23Feb2024.pdf