Generation of PDF of images for one year
Posted by mholmes on 09 Oct 2018 in Activity log
AC needed to generate a printable document of pages for a specific year, for the encoders to use. Got a list of images from the SQL XML dump like this:
let $images := //table_data[@name='poems']/row[starts-with(field[@name='po_date'], '1820')]/field[@name='po_images']/tokenize(., '\s+') return string-join($images, '
')
Then used wget to pull down the images from the server, and generated the PDF:
img2pdf -o 1820.pdf *.jpg