It's enough to have a space character in the name of the space, page or image file.
Images are missing in generated PDF
PDF Export does not contain images when using SSO
Scaled image attachments don't appear in the PDF export
Fully allow using XWiki when cookies are turned off