Does anyone have a pointer as to why this happens ?
edit: Can overcome it with rendering html, then opening in chrome and manual printing (from the xaringan-wiki) - but still curious about the reasoning behind..Thanks!
I believe this is because you are using a relative like based on a folder in the parent directory. build_pdf() will serve your document before printing (it uses pagedown::chrome_print(), but the root folder serve must be the folder of the document by default, this means that the image in the parent folder cannot be reached.
You can try serving the presentation yourself using server::httpd() and choose the parent folder as root. You would then be able to pass the local http URL to print.
Otherwise, you need to organize you file and project differently so that resources are copied in the prez folder, or just not stored in parent directory.
If you want xaringanBuilder::build_pdf() to handle that for you, you could open a FR in there repo maybe