graphics/dspdfviewer: Fix builds in 13.3 and 14.1.
(cherry picked from commit e56cb1f7a29ed63d9939da158b3e05298523ccda)