Solved by XWIKI-23728, which enabled tagged PDF generation: the image alternative text is now stored in the PDF as the /Alt of each Figure element. Added a test in https://github.com/xwiki/xwiki-platform/pull/6532.